Skip to content

Commit 36fec66

Browse files
committed
ref(rootfs): remove django admin and static serving
1 parent b54e9b2 commit 36fec66

2 files changed

Lines changed: 6 additions & 63 deletions

File tree

rootfs/api/static/500.html

Lines changed: 0 additions & 35 deletions
This file was deleted.

rootfs/deis/settings.py

Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -57,30 +57,10 @@
5757
# Examples: "http://example.com/media/", "http://media.example.com/"
5858
MEDIA_URL = ''
5959

60-
# Absolute path to the directory static files should be collected to.
61-
# Don't put anything in this directory yourself; store your static files
62-
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
63-
# Example: "/var/www/example.com/static/"
64-
STATIC_ROOT = os.path.abspath(os.path.join(__file__, '..', '..', 'static'))
65-
66-
# URL prefix for static files.
67-
# Example: "http://example.com/static/", "http://static.example.com/"
60+
# Static files (CSS, JavaScript, Images)
61+
# https://docs.djangoproject.com/en/1.9/howto/static-files/
6862
STATIC_URL = '/static/'
6963

70-
# Additional locations of static files
71-
STATICFILES_DIRS = (
72-
# Put strings here, like "/home/html/static" or "C:/www/django/static".
73-
# Always use forward slashes, even on Windows.
74-
# Don't forget to use absolute paths, not relative paths.
75-
)
76-
77-
# List of finder classes that know how to find static files in
78-
# various locations.
79-
STATICFILES_FINDERS = (
80-
'django.contrib.staticfiles.finders.FileSystemFinder',
81-
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
82-
)
83-
8464
# Manage templates
8565
TEMPLATES = [
8666
{
@@ -96,7 +76,6 @@
9676
"django.template.context_processors.i18n",
9777
"django.template.context_processors.media",
9878
"django.template.context_processors.request",
99-
"django.template.context_processors.static",
10079
"django.template.context_processors.tz",
10180
"django.contrib.messages.context_processors.messages"
10281
],
@@ -106,8 +85,9 @@
10685

10786
MIDDLEWARE_CLASSES = (
10887
'corsheaders.middleware.CorsMiddleware',
109-
'django.middleware.common.CommonMiddleware',
88+
'django.middleware.security.SecurityMiddleware',
11089
'django.contrib.sessions.middleware.SessionMiddleware',
90+
'django.middleware.common.CommonMiddleware',
11191
'django.contrib.auth.middleware.AuthenticationMiddleware',
11292
'django.contrib.messages.middleware.MessageMiddleware',
11393
'django.contrib.sites.middleware.CurrentSiteMiddleware',
@@ -123,21 +103,19 @@
123103
WSGI_APPLICATION = 'deis.wsgi.application'
124104

125105
INSTALLED_APPS = (
126-
'django.contrib.admin',
127106
'django.contrib.auth',
128107
'django.contrib.contenttypes',
129108
'django.contrib.humanize',
130109
'django.contrib.messages',
131110
'django.contrib.sessions',
132111
'django.contrib.sites',
133-
'django.contrib.staticfiles',
134112
# Third-party apps
113+
'corsheaders',
135114
'guardian',
136-
'jsonfield',
137115
'gunicorn',
116+
'jsonfield',
138117
'rest_framework',
139118
'rest_framework.authtoken',
140-
'corsheaders',
141119
# Deis apps
142120
'api'
143121
)

0 commit comments

Comments
 (0)