app/urls.py
author Pawel Solyga <Pawel.Solyga@gmail.com>
Mon, 29 Jun 2009 16:50:38 +0200
changeset 2449 8777fd1dc4d4
parent 2333 221482a54238
permissions -rw-r--r--
et new Melange version number to 0-5-20090629 in app.yaml.template.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
31
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     1
# Copyright 2008 the Melange authors.
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     2
#
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     3
# Licensed under the Apache License, Version 2.0 (the "License");
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     4
# you may not use this file except in compliance with the License.
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     5
# You may obtain a copy of the License at
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     6
#
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     7
#     http://www.apache.org/licenses/LICENSE-2.0
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     8
#
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     9
# Unless required by applicable law or agreed to in writing, software
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    10
# distributed under the License is distributed on an "AS IS" BASIS,
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    12
# See the License for the specific language governing permissions and
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    13
# limitations under the License.
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    14
2067
9b58b42c6b53 Add missing docstring url.py.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 695
diff changeset
    15
"""Module containing Melange URL patterns definition.
9b58b42c6b53 Add missing docstring url.py.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 695
diff changeset
    16
"""
9b58b42c6b53 Add missing docstring url.py.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 695
diff changeset
    17
31
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    18
__authors__ = [
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    19
  '"Augie Fackler" <durin42@gmail.com>',
284
44abd20296ce Call soc.logic.site.map.getDjangoUrlPatterns() to construct the urlpatterns
Todd Larsen <tlarsen@google.com>
parents: 252
diff changeset
    20
  '"Todd Larsen" <tlarsen@google.com>',
2333
221482a54238 First step in the module design
Sverre Rabbelier <sverre@rabbelier.nl>
parents: 2067
diff changeset
    21
  '"Sverre Rabbelier" <sverre@rabbelier.nl>',
695
bc575b44755b Fixed email adress in urls.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 694
diff changeset
    22
  '"Lennard de Rijk" <ljvderijk@gmail.com>',
79
58001ec7720c Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 66
diff changeset
    23
  '"Pawel Solyga" <pawel.solyga@gmail.com>',
31
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    24
  ]
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    25
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    26
2333
221482a54238 First step in the module design
Sverre Rabbelier <sverre@rabbelier.nl>
parents: 2067
diff changeset
    27
from soc.modules import callback
493
6976c4d8d0ac Refactor the sidebar to use Django templates
Sverre Rabbelier <srabbelier@gmail.com>
parents: 284
diff changeset
    28
2333
221482a54238 First step in the module design
Sverre Rabbelier <sverre@rabbelier.nl>
parents: 2067
diff changeset
    29
urlpatterns = callback.getCore().getPatterns()
694
50ef790374da Fixes 'module' object has no attribute 'handler500' and 404 on instances where debug is False.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 494
diff changeset
    30
50ef790374da Fixes 'module' object has no attribute 'handler500' and 404 on instances where debug is False.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 494
diff changeset
    31
# define the error handlers
50ef790374da Fixes 'module' object has no attribute 'handler500' and 404 on instances where debug is False.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 494
diff changeset
    32
handler404 = 'django.views.defaults.page_not_found'
50ef790374da Fixes 'module' object has no attribute 'handler500' and 404 on instances where debug is False.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 494
diff changeset
    33
handler500 = 'django.views.defaults.server_error'