Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix django admin statics

  • Loading branch information...
commit 18028cba8e35e6e514a230d78e0e4262915c32f7 1 parent 9114436
luke crouch groovecoder authored
1  .gitignore
View
@@ -19,6 +19,7 @@ build.py
media/uploads
media/attachments
media/sitemap*
+static/
locale
xfers/*
puppet/cache/*
1  puppet/files/etc/apache2/conf.d/mozilla-kuma-apache.conf
View
@@ -33,6 +33,7 @@ WSGISocketPrefix /var/run/wsgi
</Directory>
Alias /media/ "/vagrant/media/"
+ Alias /static/ "/vagrant/static/"
Alias /uploads/ "/home/vagrant/uploads/"
Alias /admin-media/ "/vagrant/vendor/src/django/django/contrib/admin/media/"
1  scripts/update_site.py
View
@@ -89,6 +89,7 @@ def update_site(env, debug):
(CHDIR, os.path.join(here)),
(EXEC, 'python2.6 vendor/src/schematic/schematic migrations/'),
(EXEC, 'python2.6 manage.py migrate'),
+ (EXEC, 'python2.6 manage.py collectstatic'),
(EXEC, 'LANG=en_US.UTF-8 python2.6 manage.py compress_assets'),
]
2  settings.py
View
@@ -293,6 +293,7 @@ def lazy_language_deki_map():
# Examples: "http://media.lawrence.com", "http://example.com/media/"
MEDIA_URL = '/media/'
STATIC_URL = '/static/'
+STATIC_ROOT = path('static')
SERVE_MEDIA = False
@@ -408,6 +409,7 @@ def lazy_language_deki_map():
'django.contrib.messages',
'django.contrib.admin',
'django.contrib.sitemaps',
+ 'django.contrib.staticfiles',
# BrowserID
'django_browserid',
Please sign in to comment.
Something went wrong with that request. Please try again.