Answer the question
In order to leave comments, you need to log in
Why is django redirecting request to wrong url?
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)
admin.autodiscover()
urlpatterns = patterns('',
url(r'^login/', 'django.contrib.auth.views.login', {'template_name': 'login.html'},),
)
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.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question