Menu
  • HOME
  • TAGS

django directory structure of module for commands

django,django-models,django-commands

a option, put the code modude out of django project ├── analysis_module ├── test ├── django_project │   ├── app │   │   ├── __init__.py │   │   ├── admin.py │   │   ├── management │   │   │   ├── __init__.py │   │   │   └── commands │   │   │   ├── __init__.py │   │  ...

Why is run called twice in the Django dev server?

python,django,django-manage.py,django-commands

The auto-reloader process turned out to be the culprit; turns out the autoreload process gets the same arguments, and goes through the same initialization process, as the original. The solution was to have the pre-server code execute only if it's not running in the process spawned by the autoreloader, which...