urls:
admin.autodiscover()
urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls)),
url(r'^accounts/', include('accounts.urls')),
) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
accounts.urls
admin.autodiscover()
urlpatterns = patterns('',
url(r'^login/', 'django.contrib.auth.views.login', {'template_name': 'login.html'},),
)
В таком виде accounts/login/ работает правильно, но если добавить в главный urls
url(r'^/', include('site_info.urls')),
выдаёт
The included urlconf '<module 'site_info.urls' from '/home/basil/pure-pro/pureproonline/site_info/urls.pyc'>' 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.
Что я делаю не так?