#5732: urls.py import error
-----------------------+----------------------------------------------------
Reporter: ChCh | Owner: nobody
Status: new | Component: Uncategorized
Version: SVN | Keywords:
Stage: Unreviewed | Has_patch: 1
-----------------------+----------------------------------------------------
I've forgotten to create urls.py, but included it in.
Strange errors were happened (single request after server restart - error,
next requests - url tag does not work).
After some work on this problem I have made this patch for
django/core/urlresolvers.py :
---------------------------------
{{{
*** urlresolvers.py.ORIG Wed Oct 10 20:13:21 2007
--- urlresolvers.py Wed Oct 10 20:38:57 2007
***************
*** 253,256 ****
--- 253,259 ----
# Invalid urlconf_name, such as "foo.bar." (note
trailing period)
raise ImproperlyConfigured, "Error while importing
URLconf %r: %s" % (self.urlconf_name, e)
+ except ImportError, e:
+ # URL file not exist
+ raise ImproperlyConfigured, "Error while importing
URLconf %r: %s" % (self.urlconf_name, e)
return self._urlconf_module
urlconf_module = property(_get_urlconf_module)
}}}
---------------------------------
and have got verbose error info.
Andrey Chichak
--
Ticket URL: <http://code.djangoproject.com/ticket/5732>
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
-~----------~----~----~----~------~----~------~--~---