django-1.10 पर टैग किए गए जवाब

4
Django URL TypeError: शामिल करने के मामले में देखने के लिए एक कॉल करने योग्य या सूची / टपल होना चाहिए ()
Django 1.10 में अपग्रेड करने के बाद, मुझे त्रुटि मिलती है: TypeError: view must be a callable or a list/tuple in the case of include(). मेरा urls.py इस प्रकार है: from django.conf.urls import include, url urlpatterns = [ url(r'^$', 'myapp.views.home'), url(r'^contact/$', 'myapp.views.contact'), url(r'^login/$', 'django.contrib.auth.views.login'), ] पूर्ण ट्रेसबैक है: Traceback (most …
हमारी साइट का प्रयोग करके, आप स्वीकार करते हैं कि आपने हमारी Cookie Policy और निजता नीति को पढ़ और समझा लिया है।
Licensed under cc by-sa 3.0 with attribution required.