[PATCH 1/2] settings: Add django.contrib.staticfiles to the project
Damien Lespiau
damien.lespiau at intel.com
Sun Nov 9 02:58:29 AEDT 2014
This is needes to serve the admin static files.
Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
---
apps/settings.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/apps/settings.py b/apps/settings.py
index e663c48..f23fd92 100644
--- a/apps/settings.py
+++ b/apps/settings.py
@@ -94,9 +94,13 @@ INSTALLED_APPS = (
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
+ 'django.contrib.staticfiles',
'patchwork',
)
+STATIC_URL = '/static/'
+STATIC_ROOT = os.path.join(ROOT_DIR, 'static')
+
DEFAULT_PATCHES_PER_PAGE = 100
DEFAULT_FROM_EMAIL = 'Patchwork <patchwork at patchwork.example.com>'
--
1.8.3.1
More information about the Patchwork
mailing list