示例#1
0
from __future__ import unicode_literals

from django.conf.urls import patterns, url
from django.conf import settings

from mezzanine.pages import page_processors

page_processors.autodiscover()


# Page patterns.
urlpatterns = patterns("mezzanine.pages.views",
    url("^admin_page_ordering/$", "admin_page_ordering",
        name="admin_page_ordering"),
    url("^(?P<slug>.*)%s$" % ("/" if settings.APPEND_SLASH else ""),
        "page", name="page"),
)
示例#2
0
文件: urls.py 项目: prob1995/mezz_ENV
from __future__ import unicode_literals

from django.conf.urls import url
from django.conf import settings

from mezzanine.pages import page_processors, views

page_processors.autodiscover()

# Page patterns.
urlpatterns = [
    url("^admin_page_ordering/$",
        views.admin_page_ordering,
        name="admin_page_ordering"),
    url("^(?P<slug>.*)%s$" % ("/" if settings.APPEND_SLASH else ""),
        views.page,
        name="page"),
]