X-Git-Url: https://git.sommitrealweird.co.uk/sommitrealweird.git/blobdiff_plain/2f8f1efa5214444b2e867bde2a6f5297d1f3caea..refs/heads/django-4.2:/sommitrealweird/settings.py?ds=inline diff --git a/sommitrealweird/settings.py b/sommitrealweird/settings.py index 67b8f32..0f8dae9 100644 --- a/sommitrealweird/settings.py +++ b/sommitrealweird/settings.py @@ -14,6 +14,9 @@ ADMINS = ( ALLOWED_HOSTS = [ "www.sommitrealweird.co.uk", "www.sommitrealweird.co.uk.", + "10.0.3.191", + "127.0.0.1", + "localhost", ] MANAGERS = ADMINS @@ -25,6 +28,11 @@ DATABASES = { } } +DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField" + +DEBUG = True + + TIME_ZONE = 'Europe/London' LANGUAGE_CODE = 'en-gb' @@ -40,7 +48,7 @@ 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_ROOT = '/home/brettp/python-envs/django/lib/python3.11/site-packages/django/contrib/admin/static/' STATIC_URL = '/static/' import random @@ -55,13 +63,12 @@ CACHES = { } } -MIDDLEWARE_CLASSES = ( +MIDDLEWARE = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', - 'django.contrib.admindocs.middleware.XViewMiddleware', ) ROOT_URLCONF = 'urls' @@ -73,6 +80,7 @@ TEMPLATES = [ 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ + 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'django.template.context_processors.debug', @@ -96,6 +104,7 @@ INSTALLED_APPS = ( 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', + 'django.contrib.messages', 'bpcms', 'generic', 'blog',