Skip to content

Commit

Permalink
modify setting.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwang0516 authored and rapirent committed Aug 13, 2017
1 parent 9cbc650 commit 9ac1aa8
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
1 change: 1 addition & 0 deletions smart_campus/app/admin.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
from django.contrib import admin

# Register your models here.
18 changes: 18 additions & 0 deletions smart_campus/app/migrations/0002_delete_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-08-12 17:53
from __future__ import unicode_literals

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('app', '0001_initial'),
]

operations = [
migrations.DeleteModel(
name='Test',
),
]
1 change: 0 additions & 1 deletion smart_campus/app/models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from django.contrib.gis.db import models

# Create your models here.

7 changes: 4 additions & 3 deletions smart_campus/smart_campus/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def get_env_variable(var_name):
try:
return os.environ[var_name]
except KeyError:
error_msg = 'Environment variable "{var_name}" should be set!'
error_msg = 'Environment variable {} should be set!'.format(var_name)
raise ImproperlyConfigured(error_msg)


Expand Down Expand Up @@ -48,11 +48,12 @@ def get_env_variable(var_name):
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
#app
# app
'app.apps.AppConfig',
#postgis
# postgis
'django.contrib.gis',
]

MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
Expand Down

0 comments on commit 9ac1aa8

Please sign in to comment.