Add code to support disabling new influences.
[matthijs/projects/xerxes.git] / urls.py
diff --git a/urls.py b/urls.py
index 0ff28c102adc52fffa93e97d18b42922c03c291e..bbc54680e93a86707869989232a109c8d8349b3e 100644 (file)
--- a/urls.py
+++ b/urls.py
@@ -3,6 +3,7 @@ from django.conf.urls.defaults import *
 from django.contrib import admin
 from xerxes.influences.models import Character
 from xerxes.influences.models import Influence
+from django.views.generic.simple import direct_to_template
 import os
 
 # Automatically import admin.py from all INSTALLED_APPS
@@ -18,6 +19,8 @@ urlpatterns = patterns('',
     url(r'^influences/influence/(?P<object_id>\d+)/$', 'xerxes.influences.views.influence_detail', name='influences_influence_detail'),
     url(r'^influences/influence/(?P<object_id>\d+)/comment/$', 'xerxes.influences.views.influence_comment', name='influences_influence_comment'),
     url(r'^influences/influence/(?P<object_id>\d+)/comment/(?P<parent_id>\d+)/$', 'xerxes.influences.views.influence_comment', name='influences_influence_comment_parent'),
+    #url(r'^influences/influence/add/(\d+)$',         'django.views.generic.simple.direct_to_template', {'template': 'base/offline.html'}, name='influences_add_influence_for_character'),
+    #url(r'^influences/influence/add/$',         'django.views.generic.simple.direct_to_template', {'template': 'base/offline.html'}, name='influences_add_influence'),
     url(r'^influences/influence/add/(\d+)/$', 'xerxes.influences.views.add_influence', name='influences_add_influence_for_character'),
     url(r'^influences/influence/add/$', 'xerxes.influences.views.add_influence', name='influences_add_influence'),