diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-08-25 18:54:57 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-08-25 18:54:57 +0200 |
commit | ef44d89b1a256bf391158bb6b08bf9a793b84d8e (patch) | |
tree | dcf341e6eee2834ac3eab1c6198f146bac766389 /example_project | |
parent | 5d53cf65e24253c9be82f04e646164511d51f81f (diff) | |
download | Ishtar-ef44d89b1a256bf391158bb6b08bf9a793b84d8e.tar.bz2 Ishtar-ef44d89b1a256bf391158bb6b08bf9a793b84d8e.zip |
Fix messup between static and media files
Diffstat (limited to 'example_project')
-rw-r--r-- | example_project/local_settings.py.sample | 3 | ||||
-rw-r--r-- | example_project/settings.py | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/example_project/local_settings.py.sample b/example_project/local_settings.py.sample index 763dcb938..901c7d3a8 100644 --- a/example_project/local_settings.py.sample +++ b/example_project/local_settings.py.sample @@ -24,7 +24,8 @@ DATABASES = { } ROOT_URLCONF = 'example_project.urls' -MEDIA_URL = 'http://mydomain/static/' +STATIC_URL = 'http://mydomain/static/' +MEDIA_URL = 'http://mydomain/media/' DEBUG = False DEBUG_TOOLBAR = False diff --git a/example_project/settings.py b/example_project/settings.py index 718c6c31b..983339ee5 100644 --- a/example_project/settings.py +++ b/example_project/settings.py @@ -83,6 +83,7 @@ TEMPLATE_CONTEXT_PROCESSORS = ( "django.core.context_processors.debug", "django.core.context_processors.i18n", "django.core.context_processors.media", + "django.core.context_processors.static", ) ROOT_URLCONF = 'example_project.urls' |