Add map app and modified settings.py
This commit is contained in:
parent
b5f56effbf
commit
00f162099b
0
ojusomap/apps/__init__.py
Normal file
0
ojusomap/apps/__init__.py
Normal file
0
ojusomap/apps/map/__init__.py
Normal file
0
ojusomap/apps/map/__init__.py
Normal file
3
ojusomap/apps/map/admin.py
Normal file
3
ojusomap/apps/map/admin.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
from django.contrib import admin
|
||||||
|
|
||||||
|
# Register your models here.
|
5
ojusomap/apps/map/apps.py
Normal file
5
ojusomap/apps/map/apps.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
from django.apps import AppConfig
|
||||||
|
|
||||||
|
|
||||||
|
class MapConfig(AppConfig):
|
||||||
|
name = 'map'
|
0
ojusomap/apps/map/migrations/__init__.py
Normal file
0
ojusomap/apps/map/migrations/__init__.py
Normal file
3
ojusomap/apps/map/models.py
Normal file
3
ojusomap/apps/map/models.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
from django.db import models
|
||||||
|
|
||||||
|
# Create your models here.
|
3
ojusomap/apps/map/tests.py
Normal file
3
ojusomap/apps/map/tests.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
from django.test import TestCase
|
||||||
|
|
||||||
|
# Create your tests here.
|
3
ojusomap/apps/map/views.py
Normal file
3
ojusomap/apps/map/views.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
from django.shortcuts import render
|
||||||
|
|
||||||
|
# Create your views here.
|
@ -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'
|
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!
|
# 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()
|
ALLOWED_HOSTS = os.getenv('ALLOWED_HOSTS', 'localhost').split()
|
||||||
|
|
||||||
@ -31,6 +31,7 @@ ALLOWED_HOSTS = os.getenv('ALLOWED_HOSTS', 'localhost').split()
|
|||||||
# Application definition
|
# Application definition
|
||||||
|
|
||||||
INSTALLED_APPS = [
|
INSTALLED_APPS = [
|
||||||
|
'ojusomap.apps.map',
|
||||||
'django.contrib.admin',
|
'django.contrib.admin',
|
||||||
'django.contrib.auth',
|
'django.contrib.auth',
|
||||||
'django.contrib.contenttypes',
|
'django.contrib.contenttypes',
|
||||||
@ -70,9 +71,14 @@ TEMPLATES = [
|
|||||||
|
|
||||||
WSGI_APPLICATION = 'ojusomap.wsgi.application'
|
WSGI_APPLICATION = 'ojusomap.wsgi.application'
|
||||||
|
|
||||||
|
# Admins
|
||||||
|
# https://docs.djangoproject.com/en/1.11/ref/settings/#admins
|
||||||
|
|
||||||
|
ADMINS = [('Livvy Mackintosh', 'livvy@base.nu')]
|
||||||
|
|
||||||
# Database
|
# Database
|
||||||
# https://docs.djangoproject.com/en/1.11/ref/settings/#databases
|
# https://docs.djangoproject.com/en/1.11/ref/settings/#databases
|
||||||
|
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
'default': {
|
'default': {
|
||||||
'ENGINE': 'django.contrib.gis.db.backends.postgis',
|
'ENGINE': 'django.contrib.gis.db.backends.postgis',
|
||||||
|
Loading…
Reference in New Issue
Block a user