diff options
author | ankitjavalkar | 2016-04-18 12:04:05 +0530 |
---|---|---|
committer | ankitjavalkar | 2016-04-18 12:04:05 +0530 |
commit | 32b8712249d7fa7891576b5c15c902c6604ee3d5 (patch) | |
tree | fad1c66150da512716d5654419e0098590119025 /tbc | |
parent | 8876df52d088a1de0ea769a46b82ad6fb0682a80 (diff) | |
parent | dd0e366a19d89a249257e5e3f5bd61ad020a0430 (diff) | |
download | Python-TBC-Interface-32b8712249d7fa7891576b5c15c902c6604ee3d5.tar.gz Python-TBC-Interface-32b8712249d7fa7891576b5c15c902c6604ee3d5.tar.bz2 Python-TBC-Interface-32b8712249d7fa7891576b5c15c902c6604ee3d5.zip |
Merge pull request #26 from maheshgudi/master
Adding Commenting and Error detection apps
Diffstat (limited to 'tbc')
-rwxr-xr-x | tbc/templates/base.html | 1 | ||||
-rw-r--r-- | tbc/templates/tbc/admin-tools.html | 17 | ||||
-rw-r--r-- | tbc/urls.py | 4 | ||||
-rwxr-xr-x | tbc/views.py | 9 |
4 files changed, 29 insertions, 2 deletions
diff --git a/tbc/templates/base.html b/tbc/templates/base.html index 84e7136..a1b4c8f 100755 --- a/tbc/templates/base.html +++ b/tbc/templates/base.html @@ -133,6 +133,7 @@ <li><a href="{% url 'tbc:GetCertificate' %}">Get Certificate</a></li> <li><a href="{% url 'tbc:UpdateProfile' %}">Update Profile</a></li> <li><a href="{% url 'tbc:UpdatePassword' %}">Update Password</a></li> + <li><a href="{% url 'tbc:admin_tools' %}">Admin Tools </a></li> <li><a href="{% url 'tbc:UserLogout' %}">Logout</a></li> </ul> </li> diff --git a/tbc/templates/tbc/admin-tools.html b/tbc/templates/tbc/admin-tools.html new file mode 100644 index 0000000..1c46b64 --- /dev/null +++ b/tbc/templates/tbc/admin-tools.html @@ -0,0 +1,17 @@ +{% extends "base.html" %} +{% block title %} Admin Tools {% endblock %} +{% block content %} + +<body> + +{% csrf_token %} + +<h4> Hi, {{ user }} </h4> + +<p></p> +<p></p> +<p><a href = "{% url 'commentingapp.views.commenting' %}"> Commenting </a></p> +<p><a href = "{% url 'tbc_error_page.views.error' %}"> Error Page </a></p> +<p><a href = "{% url 'tbc_error_page.views.broken' %}"> Broken Page </a></p> + +{% endblock %} diff --git a/tbc/urls.py b/tbc/urls.py index 747a77d..6d3cc17 100644 --- a/tbc/urls.py +++ b/tbc/urls.py @@ -12,8 +12,8 @@ urlpatterns = patterns('', url(r'^profile/$', 'tbc.views.UserProfile', name='UserProfile'), url(r'^update-profile/$', 'tbc.views.UpdateProfile', name='UpdateProfile'), url(r'^forgot-password/$', 'tbc.views.ForgotPassword', name='ForgotPassword'), - url(r'^update-password/$', 'tbc.views.UpdatePassword', name='UpdatePassword'), - + url(r'^update-password/$', 'tbc.views.UpdatePassword', name='UpdatePassword'), + url(r'^admin-tools/$', 'tbc.views.admin_tools', name='admin_tools'), url(r'^submit-proposal/$', 'tbc.views.SubmitProposal', name='SubmitProposal'), url(r'^submit-aicte-proposal/$', 'tbc.views.ListAICTE', name='ListAICTE'), diff --git a/tbc/views.py b/tbc/views.py index 9e3a2e7..767dd4e 100755 --- a/tbc/views.py +++ b/tbc/views.py @@ -1413,3 +1413,12 @@ def link_image(request): chapter.save() context['success'] = True return render_to_response('tbc/link_image.html', context, context_instance=ci) + +@login_required( login_url= "/admin") +def admin_tools(request): + ci = RequestContext(request) + user = request.user + context = {"user":user} + return render_to_response('tbc/admin-tools.html', context, context_instance=ci) + + |