No reload on file change #3

Closed
alendit opened this Issue Feb 21, 2013 · 2 comments

Comments

Projects
None yet
2 participants
@alendit
Contributor

alendit commented Feb 21, 2013

Since runserver is started by an atexit-hook, the application module is not in sys.modules.

Specifying no_atexit=True and starting server in a if __name__ == "__main__"-clause _handle_management_command("runserver") works as intended.

As awesome as I find the atexit idea, I am not sure, if a more flasky approach with explicit app start would be more useful (and, maybe, more pythonic).

amitu added a commit that referenced this issue Feb 21, 2013

@amitu

This comment has been minimized.

Show comment Hide comment
@amitu

amitu Feb 21, 2013

Owner

I tried removing atexit, and I do say it feels lot more pythonic now. :-) Does solve reloading issue too.

You like the d.do() and d.main() methods?

Owner

amitu commented Feb 21, 2013

I tried removing atexit, and I do say it feels lot more pythonic now. :-) Does solve reloading issue too.

You like the d.do() and d.main() methods?

@alendit

This comment has been minimized.

Show comment Hide comment
@alendit

alendit Feb 22, 2013

Contributor

Like it very much!

Contributor

alendit commented Feb 22, 2013

Like it very much!

@alendit alendit closed this Feb 22, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment