#8596: Error while importing URLconf 'mysite.urls': No module named models
--------------------------------------+-------------------------------------
Reporter: tolano | Owner: nobody
Status: new | Milestone: 1.0
Component: Admin interface | Version: SVN
Resolution: | Keywords:
Stage: Unreviewed | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
--------------------------------------+-------------------------------------
Comment (by tolano):
The import is failing but the web should run anyway, so I think this patch
is good enough, just to be prevented.
When you enter the admin and don't see the app there, you know there is a
problem.
In my case the problem was that there were some files in the dir that
shouldn't be there like: models.py.~1~ and so on. After deleting those
files the app appeared in the admin again.
IMHO the patch should be there either failing silently or raising an
exception. In the last case, the exception must be useful and well
documented.
--
Ticket URL: <http://code.djangoproject.com/ticket/8596#comment:8>
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
-~----------~----~----~----~------~----~------~--~---