Skip to content

Commit 8efb373

Browse files
author
Gabriel Monroy
committed
purge cruft from django settings #37
1 parent e0b3724 commit 8efb373

1 file changed

Lines changed: 3 additions & 11 deletions

File tree

deis/settings.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -86,17 +86,15 @@
8686
STATICFILES_FINDERS = (
8787
'django.contrib.staticfiles.finders.FileSystemFinder',
8888
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
89-
# 'django.contrib.staticfiles.finders.DefaultStorageFinder',
9089
)
9190

9291
# Make this unique, and don't share it with anybody.
93-
SECRET_KEY = None
92+
SECRET_KEY = None # @UnusedVariable
9493

9594
# List of callables that know how to import templates from various sources.
9695
TEMPLATE_LOADERS = (
9796
'django.template.loaders.filesystem.Loader',
9897
'django.template.loaders.app_directories.Loader',
99-
# 'django.template.loaders.eggs.Loader',
10098
)
10199

102100
TEMPLATE_CONTEXT_PROCESSORS = (
@@ -136,8 +134,6 @@
136134
)
137135

138136
INSTALLED_APPS = (
139-
'django.contrib.admin',
140-
'django.contrib.admindocs',
141137
'django.contrib.auth',
142138
'django.contrib.contenttypes',
143139
'django.contrib.messages',
@@ -147,13 +143,10 @@
147143
# Third-party apps
148144
'allauth',
149145
'allauth.account',
150-
'allauth.socialaccount',
151-
'allauth.socialaccount.providers.github',
152146
'djcelery',
153147
'celerytasks',
154148
'json_field',
155149
'rest_framework',
156-
'rest_framework.authtoken',
157150
# Deis apps
158151
'api',
159152
'web',
@@ -178,15 +171,14 @@
178171

179172
REST_FRAMEWORK = {
180173
'DEFAULT_MODEL_SERIALIZER_CLASS':
181-
'rest_framework.serializers.ModelSerializer',
174+
'rest_framework.serializers.ModelSerializer',
182175
'DEFAULT_PERMISSION_CLASSES': (
183176
'rest_framework.permissions.IsAuthenticated',
184177
),
185-
'PAGINATE_BY': 10,
186178
'DEFAULT_AUTHENTICATION_CLASSES': (
187-
'rest_framework.authentication.TokenAuthentication',
188179
'rest_framework.authentication.SessionAuthentication',
189180
),
181+
'PAGINATE_BY': 10,
190182
}
191183

192184
# URLs that end with slashes are ugly

0 commit comments

Comments
 (0)