summaryrefslogtreecommitdiff
path: root/demo/urls.py
diff options
context:
space:
mode:
authorAnkita <ankita@ankita-Inspiron-N5010.(none)>2012-07-03 12:42:57 -0400
committerAnkita <ankita@ankita-Inspiron-N5010.(none)>2012-07-03 12:42:57 -0400
commitef3793b349be5744d6ef98a034f0c009159ed85b (patch)
tree04a873d770c330ce97eef3e78d43edb2d619d1a3 /demo/urls.py
parente5c470536ee2d3571817b1a60f6b910f17a33f31 (diff)
parent471a772b4d2e1430a3a119593e8694c4af2c951a (diff)
downloadgnowsys-ef3793b349be5744d6ef98a034f0c009159ed85b.tar.gz
Merge branch 'master' of https://github.com/gnowgi/gnowsys-studio
Conflicts: django_gstudio.egg-info/PKG-INFO django_gstudio.egg-info/requires.txt
Diffstat (limited to 'demo/urls.py')
-rw-r--r--demo/urls.py56
1 files changed, 6 insertions, 50 deletions
diff --git a/demo/urls.py b/demo/urls.py
index 635bc286..9a16e61f 100644
--- a/demo/urls.py
+++ b/demo/urls.py
@@ -14,53 +14,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# This project incorporates work covered by the following copyright and permission notice:
-
-# Copyright (c) 2009, Julien Fache
-# All rights reserved.
-
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-
-# * Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# * Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in
-# the documentation and/or other materials provided with the
-# distribution.
-# * Neither the name of the author nor the names of other
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
-# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
-# OF THE POSSIBILITY OF SUCH DAMAGE.
-
-# Copyright (c) 2011, 2012 Free Software Foundation
-
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as
-# published by the Free Software Foundation, either version 3 of the
-# License, or (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
"""Urls for the demo of Gstudio"""
from django.conf import settings
@@ -78,7 +31,7 @@ from objectapp.sitemaps import GbobjectSitemap
# import gstudio.regbackend
from gstudio.forms import *
from registration.views import register
-
+from views import home_view, more_view
admin.autodiscover()
@@ -88,12 +41,15 @@ handler404 = 'django.views.defaults.page_not_found'
urlpatterns = patterns(
'',
(r'^$', 'django.views.generic.simple.redirect_to',
- {'url': '/nodetypes/'}),
+ {'url': '/home/'}),
+ url(r'^home/', home_view),
+ url(r'^more/',more_view),
url(r'^nodetypes/', include('gstudio.urls')),
url(r'^objects/', include('objectapp.urls')),
url(r'^comments/', include('django.contrib.comments.urls')),
- url(r'^xmlrpc/$', 'django_xmlrpc.views.handle_xmlrpc'),
+ #URL for XMLRPC
+ url(r'^xmlrpc/$','django_xmlrpc.views.handle_xmlrpc'),
url(r'^i18n/', include('django.conf.urls.i18n')),
url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
url(r'^admin/gstudio/', include('gstudio.urls.ajaxurls')),