django-urls-10

Last Updated :
Discuss
Comments

An ImproperlyConfigured from ROOT_URLCONF points to wrong module; what fix in settings.py, and why restart server after?

Set ROOT_URLCONF = 'project.urls'; restart clears cache for new patterns.


Set ROOT_URLCONF = 'app.urls'; no restart, as configs load dynamically.

Add to INSTALLED_APPS; restart for view imports only.

Run makemigrations; restart for DB sync.

Tags:
Share your thoughts in the comments