#14606: import inside project urls.py import application module twice
---------------------------+------------------------------------------------
Reporter: rlz | Owner: nobody
Status: new | Milestone:
Component: Uncategorized | Version: 1.2
Keywords: | Stage: Unreviewed
Has_patch: 0 |
---------------------------+------------------------------------------------
I use Django 1.2.3.
I've created a new django project testproject and a new django application
test.
I've put the allication inside settings.py, then put only one line of code
in test/__init__.py:
{{{
#!python
print 'loaded'
}}}
And import the applicaton module from application urls.py:
{{{
#!python
import test
}}}
In result the line 'loaded' was printed twice.
This behaviour lead to error in my real project.
--
Ticket URL: <http://code.djangoproject.com/ticket/14606>
Django <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.