There is an error when i add url to url.py. The url.py file is as follow-
from django.contrib import admin
from django.urls import path, include


urlpatterns = [
    path('admin/', admin.site.urls),
    path('polls/', include('polls.urls')),
]
when i run the code in terminal : 'python manage.py runserver' ; then the 
follwing error is displayed in the terminal -

django.core.exceptions.ImproperlyConfigured: The included URLconf '<module 
'polls.urls' from 
'C:\\Users\\Administrator\\PycharmProjects\\website2\\mysite\\polls\\urls.py'>' 
does
 not appear to have any patterns in it. If you see valid patterns in the file 
then the issue is probably caused by a circular import.

Please help me to solve the error

Regards, 
Django user

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e77ae50b-dbdb-447a-9e91-b04e996197c9%40googlegroups.com.

Reply via email to