X-Git-Url: https://git.sommitrealweird.co.uk/sommitrealweird.git/blobdiff_plain/4ad54bc9a9429a2c5c288192c663f75ae1e7aad9..HEAD:/sommitrealweird/settings.py diff --git a/sommitrealweird/settings.py b/sommitrealweird/settings.py index 70594da..6eb539f 100644 --- a/sommitrealweird/settings.py +++ b/sommitrealweird/settings.py @@ -14,6 +14,7 @@ ADMINS = ( ALLOWED_HOSTS = [ "www.sommitrealweird.co.uk", "www.sommitrealweird.co.uk.", + "10.0.3.191", ] MANAGERS = ADMINS @@ -40,11 +41,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 = { @@ -54,7 +56,7 @@ CACHES = { } } -MIDDLEWARE_CLASSES = ( +MIDDLEWARE = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', @@ -73,6 +75,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', @@ -94,6 +97,7 @@ INSTALLED_APPS = ( 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', + 'django.contrib.messages', 'bpcms', 'generic', 'blog',