]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blobdiff - sommitrealweird/settings.py
Changes to make it work with django 1.11 and python3
[sommitrealweird.git] / sommitrealweird / settings.py
index 70594da3096d7a5ff2c51baf8121f3864c086549..67b8f32b369f57abdd147862443ae3edb8ac4e88 100644 (file)
@@ -40,11 +40,12 @@ USE_I18N = True
 MEDIA_ROOT = os.path.join(topdir, 'media') + os.sep
 MEDIA_URL = '/media/'
 
+STATIC_ROOT = '/usr/lib/python3/dist-packages/django/contrib/admin/static/'
 STATIC_URL = '/static/'
 
 import random
 import string
-key_chars = "%s%s%s" % (string.letters, string.digits, '+-()_#~')
+key_chars = "%s%s%s" % (string.ascii_letters, string.digits, '+-()_#~')
 SECRET_KEY = [random.choice(key_chars) for a in range(0,50)]
 
 CACHES = {
@@ -73,6 +74,7 @@ TEMPLATES = [
         'OPTIONS': {
             'context_processors': [
                 'django.contrib.auth.context_processors.auth',
+                'django.contrib.messages.context_processors.messages',
                 'django.template.context_processors.debug',
                 'django.template.context_processors.i18n',
                 'django.template.context_processors.media',