python - Django-dash /account/login not found error 404 -


i trying build dashboard using django-dash. have followed instructions per website. when run dashboard (localhost:8000/dashboard), url gets redirected localhost:8000/accounts/login/?next=/dashboard/ , 404 error. not able understand how redirection /accounts/login happens. cannot find in urls.py. accounts/login supposed in-built within django-dash? if should check this?

my urls.py looks this: url(r'^dashboard/', include('dash.urls'))

dash.urls looks this:

from django.conf.urls import url django.utils.translation import ugettext_lazy _  .views import (     add_dashboard_entry,     clone_dashboard_workspace,     copy_dashboard_entry,     create_dashboard_workspace,     cut_dashboard_entry,     dashboard,     dashboard_workspaces,     delete_dashboard_entry,     delete_dashboard_workspace,     edit_dashboard,     edit_dashboard_entry,     edit_dashboard_settings,     edit_dashboard_workspace,     paste_dashboard_entry,     plugin_widgets, )  __title__ = 'dash.urls' __author__ = 'artur barseghyan <artur.barseghyan@gmail.com>' __copyright__ = '2013-2017 artur barseghyan' __license__ = 'gpl 2.0/lgpl 2.1' __all__ = ('urlpatterns',)   urlpatterns = [     # paste dashboard entry     url(_(r'^entry/paste/(?p<placeholder_uid>[\w_]+)/'           r'(?p<workspace>[\w_\-]+)/pos/(?p<position>\d+)/$'),         view=paste_dashboard_entry,         name='dash.paste_dashboard_entry'),     url(_(r'^entry/paste/(?p<placeholder_uid>[\w_]+)/pos/(?     p<position>\d+)/$'),     view=paste_dashboard_entry,     name='dash.paste_dashboard_entry'),  # cut dashboard entry url(_(r'^entry/cut/(?p<entry_id>\d+)/$'),     view=cut_dashboard_entry,     name='dash.cut_dashboard_entry'),  # copy dashboard entry url(_(r'^entry/copy/(?p<entry_id>\d+)/$'),     view=copy_dashboard_entry,     name='dash.copy_dashboard_entry'),  # add dashboard entry. url(_(r'^entry/add/(?p<placeholder_uid>[\w_]+)/(?p<plugin_uid>[\w_\-]+)/'       r'ws/(?p<workspace>[\w_\-]+)/pos/(?p<position>\d+)/$'),     view=add_dashboard_entry,     name='dash.add_dashboard_entry'), url(_(r'^entry/add/(?p<placeholder_uid>[\w_]+)/(?p<plugin_uid>[\w_\-]+)/'       r'ws/(?p<workspace>[\w_\-]+)/$'),     view=add_dashboard_entry,     name='dash.add_dashboard_entry'), url(_(r'^entry/add/(?p<placeholder_uid>[\w_]+)/(?p<plugin_uid>[\w_\-]+)/'       r'pos/(?p<position>\d+)/$'),     view=add_dashboard_entry,     name='dash.add_dashboard_entry'), url(_(r'^entry/add/(?p<placeholder_uid>[\w_]+)/'       r'(?p<plugin_uid>[\w_\-]+)/$'),     view=add_dashboard_entry,     name='dash.add_dashboard_entry'),  # edit dashboard entry. url(_(r'^entry/edit/(?p<entry_id>\d+)/$'),     view=edit_dashboard_entry,     name='dash.edit_dashboard_entry'),  # delete dashboard entry. url(_(r'^entry/delete/(?p<entry_id>\d+)/$'),     view=delete_dashboard_entry,     name='dash.delete_dashboard_entry'),  # *************************************************************** # ********************** edit dashboard ************************* # *************************************************************** # edit dashboard. url(_(r'^edit/(?p<workspace>[\w_\-]+)/$'),     view=edit_dashboard,     name='dash.edit_dashboard'), url(_(r'^edit/$'),     view=edit_dashboard,     name='dash.edit_dashboard'),  # *************************************************************** # ********************** widgets dashboard entries ********** # *************************************************************** url(_(r'^plugin-widgets/(?p<placeholder_uid>[\w_]+)/'       r'(?p<workspace>[\w_\-]+)/pos/(?p<position>\d+)/$'),     view=plugin_widgets,     name='dash.plugin_widgets'), # workspace should not named `pos`. add check. todo. url(_(r'^plugin-widgets/(?p<placeholder_uid>[\w_]+)/pos/'       r'(?p<position>\d+)/$'),     view=plugin_widgets,     name='dash.plugin_widgets'), url(_(r'^plugin-widgets/(?p<placeholder_uid>[\w_]+)/'       r'(?p<workspace>[\w_\-]+)/$'),     view=plugin_widgets,     name='dash.plugin_widgets'), url(_(r'^plugin-widgets/(?p<placeholder_uid>[\w_]+)/$'),     view=plugin_widgets,     name='dash.widgets'),  # *************************************************************** # ********************** dashboard workspace ******************** # *************************************************************** # list workspaces. url(_(r'^workspaces/(?p<workspace>[\w_\-]+)/$'),     view=dashboard_workspaces,     name='dash.dashboard_workspaces'), url(_(r'^workspaces/$'),     view=dashboard_workspaces,     name='dash.dashboard_workspaces'),  # create dashboard workspace. url(_(r'^workspace/create/$'),     view=create_dashboard_workspace,     name='dash.create_dashboard_workspace'),  # edit dashboard workspace. url(_(r'^workspace/edit/(?p<workspace_id>\d+)/$'),     view=edit_dashboard_workspace,     name='dash.edit_dashboard_workspace'),  # delete dashboard workspace. url(_(r'^workspace/delete/(?p<workspace_id>\d+)/$'),     view=delete_dashboard_workspace,     name='dash.delete_dashboard_workspace'),  # clone dashboard workspace. url(_(r'^workspace/clone/(?p<workspace_id>\d+)/$'),     view=clone_dashboard_workspace,     name='dash.clone_dashboard_workspace'),  # view dashboard workspace. url(_(r'^workspace/(?p<workspace>[\w_\-]+)/$'),     view=dashboard,     name='dash.dashboard'),  # edit dashboard settings. url(_(r'^settings/edit/$'),     view=edit_dashboard_settings,     name='dash.edit_dashboard_settings'),  # view default dashboard (no workspace selected == default workspace used). url(_(r'^$'),     view=dashboard,     name='dash.dashboard'), ]` 

the indentation may have gone haywire during copy paste can original file here : https://github.com/gitabhinav/django-dash/tree/master/src/dash


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -