Skip to content

Instantly share code, notes, and snippets.

View theofanislekkas's full-sized avatar

Theo Lekkas theofanislekkas

View GitHub Profile
@theofanislekkas
theofanislekkas / secret_key.md
Created October 23, 2015 20:56
A simple way to generate a SECRET_KEY for Django

SECRET_KEY Script

I had cloned an existing repo to build a simple app in Django and reliazed that I needed a SECRET_KEY. Since the SECRET_KEY is generate when running django-admin startproject I needed to create one myself. A friend wisely mentioned that I shouldn't be using any online service to do this, so he dropped me a simple approach:

import random
import string

''.join(random.choice(string.letters + string.digits) for x in xrange(50))
Verifying that +tdl is my blockchain ID. https://onename.com/tdl