use static files

This commit is contained in:
Thomas NOËL 2012-04-29 16:59:01 +02:00
parent af814c77d8
commit 419abfc0e0
2 changed files with 6 additions and 4 deletions

View File

@ -56,10 +56,7 @@ MEDIA_ROOT = ''
# Examples: "http://media.lawrence.com", "http://example.com/media/"
MEDIA_URL = ''
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
# Examples: "http://foo.com/media/", "/media/".
ADMIN_MEDIA_PREFIX = '/media/'
STATIC_URL = '/static/'
# Make this unique, and don't share it with anybody.
SECRET_KEY = 'zfo3_!k*ypj=2v)pte6(&_7=6up#fr@gpa-=t#%4vtsq%gre%s'
@ -96,5 +93,6 @@ INSTALLED_APPS = (
'django.contrib.messages',
'django.contrib.admin',
'django.contrib.admindocs',
'django.contrib.staticfiles',
'base',
)

View File

@ -15,3 +15,7 @@ urlpatterns = patterns('',
(r'^all.atom$', AoFeed()),
(r'^mark.atom$', AoFeedMark()),
)
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
urlpatterns += staticfiles_urlpatterns()