Skip to content

Commit 73e5945

Browse files
author
Joe Stubbs
committedDec 11, 2014
Moving to new project structure.
1 parent 399814f commit 73e5945

File tree

4 files changed

+14
-16
lines changed

4 files changed

+14
-16
lines changed
 

‎agave_clients/service/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from common.error import Error
2020
from common.responses import error_dict, success_dict, error_response, success_response
2121

22-
from service.models import IdnOauthConsumerApps, AmApplicationKeyMapping
22+
from agave_clients.service.models import IdnOauthConsumerApps, AmApplicationKeyMapping
2323

2424

2525

‎agave_clients/settings.py

+12-6
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@
66

77
# sensitive settings:
88
try:
9-
from local_settings import *
9+
from deployment_settings import *
1010
except:
11-
pass
11+
try:
12+
from local_settings import *
13+
except:
14+
from local_settings_example import *
1215

1316
# ---------------
1417
# AUTHENTICATION
@@ -150,7 +153,7 @@
150153
ROOT_URLCONF = 'agave_clients.urls'
151154

152155
# Python dotted path to the WSGI application used by Django's runserver.
153-
WSGI_APPLICATION = 'wsgi.application'
156+
WSGI_APPLICATION = 'agave_clients.wsgi.application'
154157

155158
TEMPLATE_DIRS = (
156159
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
@@ -167,7 +170,7 @@
167170
'django.contrib.sites',
168171
'django.contrib.messages',
169172
'django.contrib.staticfiles',
170-
'service',
173+
'agave_clients.service',
171174
'django.contrib.admin',
172175
'rest_framework',
173176
'corsheaders',
@@ -217,6 +220,9 @@
217220

218221
# sensitive settings:
219222
try:
220-
from local_settings import *
223+
from deployment_settings import *
221224
except:
222-
pass
225+
try:
226+
from local_settings import *
227+
except:
228+
from local_settings_example import *

‎agave_clients/wsgi.py

-7
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@
1212
1313
"""
1414
import os
15-
import sys
16-
HERE = os.path.dirname(os.path.realpath(__file__))
17-
for idx, p in enumerate(sys.path):
18-
if p == HERE:
19-
sys.path.pop(idx)
20-
21-
sys.path.append(os.path.abspath(os.path.join(HERE,'..')))
2215

2316
# We defer to a DJANGO_SETTINGS_MODULE already in the environment. This breaks
2417
# if running multiple sites in the same mod_wsgi process. To fix this, use

‎agave_clients/manage.py ‎manage.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
import sys
44

55
if __name__ == "__main__":
6-
# sys.path.append(os.path.abspath(os.path.join(os.getcwd(),'..')))
7-
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
6+
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "agave_clients.settings")
87

98
from django.core.management import execute_from_command_line
109

0 commit comments

Comments
 (0)
Please sign in to comment.