#9005: url templatetag incorrectly assumes settings.SETTINGS_MODULE is not set
to
None
-----------------------------+----------------------------------------------
Reporter: metzen | Owner: nobody
Status: new | Milestone: post-1.0
Component: Template system | Version: SVN
Keywords: | Stage: Unreviewed
Has_patch: 0 |
-----------------------------+----------------------------------------------
When rolling your own config using conf.settings.configure() instead of
the DJANGO_SETTINGS_MODULE environment variable, settings.SETTINGS_MODULE
gets set to None. Any code which assumes that settings.SETTINGS_MODULE
has been set to a string would be incorrect.
I've attached a patch to fix an occurrence of this issue in the url
templatetag which currently causes an {{{AttributeError: 'NoneType' object
has no attribute 'split'.}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/9005>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---