﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
8240	settings no longer availiable in urls.py	mackenzie@…	nobody	"the edit of /django/core/management/__init__.py in [8282]
has made it so that settings are no longer available in a urls.py 

settings.py

{{{
MEDIA_ROOT = '/media/'
}}}

urls.py

{{{
from django.conf.urls.defaults import *
from django.conf import settings

urlpatterns = patterns('',
    (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
)
}}}

this setup will always give a 404 when you try to view the static media. It is not the view but settings.MEDIA_ROOT is not accessible. any of the settings can not be accessed."		closed	Uncategorized	dev		invalid			Unreviewed	0	0	0	0	0	0
