Add map app and modified settings.py

This commit is contained in:
Livvy Mackintosh 2017-05-19 02:23:40 +02:00
parent b5f56effbf
commit 00f162099b
9 changed files with 24 additions and 1 deletions

View File

View File

View File

@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.

View File

@ -0,0 +1,5 @@
from django.apps import AppConfig
class MapConfig(AppConfig):
name = 'map'

View File

View File

@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

View File

@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

View File

@ -0,0 +1,3 @@
from django.shortcuts import render
# Create your views here.

View File

@ -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',