diff --git a/dncore/urls.py b/dncore/urls.py index aab6521..e4dbd30 100644 --- a/dncore/urls.py +++ b/dncore/urls.py @@ -7,6 +7,7 @@ urlpatterns = [ url(r'^$', dncore_views.dashboard, name='dashboard'), url(r'^login/$', auth_views.login, name='login'), + url(r'^login/$', auth_views.login, name='register'), url(r'^logout/$', auth_views.logout, {'next_page': '/'}, name='logout'), url(r'^profile/$', dncore_views.profile, name='profile'), ] diff --git a/dncore/views.py b/dncore/views.py index 90ff661..5053ab1 100644 --- a/dncore/views.py +++ b/dncore/views.py @@ -7,7 +7,7 @@ def profile(request): @login_required def dashboard(request): - pass + return render(request, "dncore/dashboard.html", {}) def index(request): return render(request, "index.html", {}) diff --git a/dnmgmt/urls.py b/dnmgmt/urls.py index 94c98dd..dac152e 100644 --- a/dnmgmt/urls.py +++ b/dnmgmt/urls.py @@ -22,8 +22,8 @@ import whoisdb.urls urlpatterns = [ - url(r'^$', dncore.views.index), - url(r'^dashboard/$', dncore.views.dashboard), + url(r'^$', dncore.views.index, name='index'), + url(r'^dashboard/$', dncore.views.dashboard, name='dashboard'), url(r'^admin/', admin.site.urls), url(r'^user/', include(dncore.urls, namespace='user')), diff --git a/templates/base.html b/templates/base.html index 9ff0196..d86a4ad 100644 --- a/templates/base.html +++ b/templates/base.html @@ -35,29 +35,34 @@ - Darknet Mgmt + Darknet Mgmt
diff --git a/templates/dncore/dashboard.html b/templates/dncore/dashboard.html new file mode 100644 index 0000000..24acbdd --- /dev/null +++ b/templates/dncore/dashboard.html @@ -0,0 +1,15 @@ +{% extends "base.html" %} + +{% block content %} +- Don't have an account? Register here! + Don't have an account? Register here!
-