Answer the question
In order to leave comments, you need to log in
How to fix redirect error in Django 1.9?
An error occurs while redirecting:
Could not import 'product.urls'. View is not callable.
from django.conf.urls import patterns, url, include
from django.contrib import admin
from tovary import urls
admin.autodiscover()
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^category/', 'tovary.urls'),
]
from django.conf.urls import url,patterns
from tovary import views
urlpatterns = [
url(r'^1/', 'tovary.views.page1')
]
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