Permalink
Browse files

fix django admin statics

  • Loading branch information...
1 parent 9114436 commit 18028cba8e35e6e514a230d78e0e4262915c32f7 @groovecoder groovecoder committed Mar 29, 2013
Showing with 5 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +1 −0 puppet/files/etc/apache2/conf.d/mozilla-kuma-apache.conf
  3. +1 −0 scripts/update_site.py
  4. +2 −0 settings.py
View
@@ -19,6 +19,7 @@ build.py
media/uploads
media/attachments
media/sitemap*
+static/
locale
xfers/*
puppet/cache/*
@@ -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/"
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'),
]
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',

0 comments on commit 18028cb

Please sign in to comment.