3 ms·
Django does the same thing. urls.py are imported automatically at startup, even if you run a regular manage.py command that doesn't run the server.
by sametmax 9y ago
Django does the same thing. urls.py are imported automatically at startup, even if you run a regular manage.py command that doesn't run the server.
- ris 9y agoThat's not remotely the same thing. In django, one specific file is looked for and imported if it exists, django then looking for an `urlpatterns` in it. No side effects anywhere. Just a default place to look for something, much like it does with models.py.