From ef44d89b1a256bf391158bb6b08bf9a793b84d8e Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sun, 25 Aug 2013 18:54:57 +0200 Subject: Fix messup between static and media files --- example_project/local_settings.py.sample | 3 ++- example_project/settings.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'example_project') 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' -- cgit v1.2.3