Так выглядит urls.py проекта:
from django.conf.urls import include,url
from django.contrib import admin
urlpatterns = [
url(r'^admin/', admin.site.urls),
#url(r'^posts/$', "controlPanel.views.post_home"),
url(r'^posts/', include('controlPanel.urls')),
]
urls.py приложения:
from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.post_home),
]
при запуске сервера, выводит ошибку
The included URLconf '' 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.
В чем ошибка, не понимаю?