On Thu, Nov 6, 2008 at 6:43 PM, project2501 <[EMAIL PROTECTED]> wrote:

>
> Hi,
>  I'm new to django and have a couple questions.
>
> I have a __init__.py in my app and try to declare a simple module wide
> variable. I noticed __init__.py is called twice when I run "python
> manage.py runserver". Is this normal?
>

The may be caused by runserver's default autoreloader.  If you try runserver
with --noreload and don't see your __init__.py code getting called twice
than that is what is causing it.  You generally want to run with the
autoreloader, though, so that code changes are automatically picked up by
the running server (unless you are running under a debugger, where the
reloading prevents breakpoints from working).

Karen

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to