Add map app and modified settings.py
This commit is contained in:
@ -23,7 +23,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
SECRET_KEY = 'r3vwfrawmnwh3kzp4(p#sg0!y%!jg80k06(j@p!y(q^h@5y*lw'
|
||||
|
||||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = True
|
||||
DEBUG = bool(int(os.getenv('DEBUG', False)))
|
||||
|
||||
ALLOWED_HOSTS = os.getenv('ALLOWED_HOSTS', 'localhost').split()
|
||||
|
||||
@ -31,6 +31,7 @@ ALLOWED_HOSTS = os.getenv('ALLOWED_HOSTS', 'localhost').split()
|
||||
# Application definition
|
||||
|
||||
INSTALLED_APPS = [
|
||||
'ojusomap.apps.map',
|
||||
'django.contrib.admin',
|
||||
'django.contrib.auth',
|
||||
'django.contrib.contenttypes',
|
||||
@ -70,9 +71,14 @@ TEMPLATES = [
|
||||
|
||||
WSGI_APPLICATION = 'ojusomap.wsgi.application'
|
||||
|
||||
# Admins
|
||||
# https://docs.djangoproject.com/en/1.11/ref/settings/#admins
|
||||
|
||||
ADMINS = [('Livvy Mackintosh', 'livvy@base.nu')]
|
||||
|
||||
# Database
|
||||
# https://docs.djangoproject.com/en/1.11/ref/settings/#databases
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.contrib.gis.db.backends.postgis',
|
||||
|
Reference in New Issue
Block a user