|
57 | 57 | # Examples: "http://example.com/media/", "http://media.example.com/" |
58 | 58 | MEDIA_URL = '' |
59 | 59 |
|
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/ |
68 | 62 | STATIC_URL = '/static/' |
69 | 63 |
|
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 | | - |
84 | 64 | # Manage templates |
85 | 65 | TEMPLATES = [ |
86 | 66 | { |
|
96 | 76 | "django.template.context_processors.i18n", |
97 | 77 | "django.template.context_processors.media", |
98 | 78 | "django.template.context_processors.request", |
99 | | - "django.template.context_processors.static", |
100 | 79 | "django.template.context_processors.tz", |
101 | 80 | "django.contrib.messages.context_processors.messages" |
102 | 81 | ], |
|
106 | 85 |
|
107 | 86 | MIDDLEWARE_CLASSES = ( |
108 | 87 | 'corsheaders.middleware.CorsMiddleware', |
109 | | - 'django.middleware.common.CommonMiddleware', |
| 88 | + 'django.middleware.security.SecurityMiddleware', |
110 | 89 | 'django.contrib.sessions.middleware.SessionMiddleware', |
| 90 | + 'django.middleware.common.CommonMiddleware', |
111 | 91 | 'django.contrib.auth.middleware.AuthenticationMiddleware', |
112 | 92 | 'django.contrib.messages.middleware.MessageMiddleware', |
113 | 93 | 'django.contrib.sites.middleware.CurrentSiteMiddleware', |
|
123 | 103 | WSGI_APPLICATION = 'deis.wsgi.application' |
124 | 104 |
|
125 | 105 | INSTALLED_APPS = ( |
126 | | - 'django.contrib.admin', |
127 | 106 | 'django.contrib.auth', |
128 | 107 | 'django.contrib.contenttypes', |
129 | 108 | 'django.contrib.humanize', |
130 | 109 | 'django.contrib.messages', |
131 | 110 | 'django.contrib.sessions', |
132 | 111 | 'django.contrib.sites', |
133 | | - 'django.contrib.staticfiles', |
134 | 112 | # Third-party apps |
| 113 | + 'corsheaders', |
135 | 114 | 'guardian', |
136 | | - 'jsonfield', |
137 | 115 | 'gunicorn', |
| 116 | + 'jsonfield', |
138 | 117 | 'rest_framework', |
139 | 118 | 'rest_framework.authtoken', |
140 | | - 'corsheaders', |
141 | 119 | # Deis apps |
142 | 120 | 'api' |
143 | 121 | ) |
|
0 commit comments