Commits

Nattaphoom Ch. committed 6c49699

Added new_index url, view, and template.

  • Participants
  • Parent commits 3ecf35f

Comments (0)

Files changed (3)

File ans_gcm/views.py

 from api.handlers import ConversationHandler, GroupsHandler
 
 
+def new_index(request, template='new_index.html'):
+    return render_to_response(template, {}, RequestContext(request))
+
+
 def agenda(request, template='agenda.html'):
     if request.user.is_superuser:
         return HttpResponseRedirect("/admin")

File myproject/urls.py

     url(dajaxice_config.dajaxice_url, include('dajaxice.urls')),
     # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
 
+    url(r'^new_index/$', 'ans_gcm.views.new_index', name='new_index'),
     # 4 main functions
     url(r'^agenda/$', 'ans_gcm.views.agenda',
         name='agenda'),

File templates/new_index.html

+<!DOCTYPE HTML>
+{% load crispy_forms_tags %}
+{% load dajaxice_templatetags %}
+<html>
+    <head>
+        <meta http-equiv="content-type" content="text/html; charset=utf-8">
+    
+        <title>New_index</title>
+        
+    </head>
+    <body>
+        
+    </body>
+</html>