Django urls.py error on migration
I get the following error whenever I try to run makemigrations in my Django project
raise ImproperlyConfigured(msg.format(name=self.urlconf_name)) from e
django.core.exceptions.ImproperlyConfigured: The included URLconf '<module 'dashboard.urls' from 'C:\\Users\\EliteBook 840-G1\\Desktop\\ALL FOLDERS\\new things\\Programming projects\\zee-ecommerce\\backend\\dashboard\\urls.py'>' does not appear to have any patterns in it. If you see the 'urlpatterns' variable with valid patterns in the file then the issue is probably caused by a circular import.
Admin
2023-01-24
This error is due to absence of urls.py file in your app. Create one and add a urlpattern to it.
Similar Content
- How to setup Whitenoise for a Django project
- Django error value too long for type character varying(50)
- How to access inputed values of model fields before creation in Django admin dashboard
- Migrating your PostgreSQL database from one hosting platform to another (e.g Heroku to Supabase)
- How to setup environment variables for Django projects
Privacy Policy
By using our website,
you agree that devmaesters can store cookies on your device and disclose information in accordance with our privacy policy.