TypeError: view must be a callable or a list/tuple in the case of include(). in urls.py

2016-09-05 Thread arun kumar
Hi, I'm working in Django 1.10 and I got the type error in the below file at this line "* url(r'^$', views.dashboard, name = 'dashboard'),*" *from django.conf.urls import include, url* *from . import views* *urlpatterns = [* *#preview login view* *#url(r'^login/$',views.user_login,

Re: TypeError: view must be a callable or a list/tuple in the case of include(). in urls.py

2016-09-05 Thread 'Abraham Varricatt' via Django users
Not sure what the issue is without more info about the error, but is the regular expression for that view correct? Assuming that you want to divert folks to the root of your site can you try the following? url(r'^/$', views.dashboard, name = 'dashboard') NOTE: if the error still persists, it w

Re: TypeError: view must be a callable or a list/tuple in the case of include(). in urls.py

2016-09-05 Thread James Schneider
On Sep 5, 2016 6:06 AM, "arun kumar" wrote: > > Hi, > >I'm working in Django 1.10 and I got the type error in the below file at this line " url(r'^$', views.dashboard, name = 'dashboard')," > > from django.conf.urls import include, url > from . import views > > urlpatterns = [ > #preview