urls.py 332 B

1234567891011121314151617
  1. from __future__ import unicode_literals
  2. from django.conf.urls import url
  3. from django.conf import settings
  4. from mezzanine.pages import page_processors, views
  5. page_processors.autodiscover()
  6. # Page patterns.
  7. urlpatterns = [
  8. url("^(?P<slug>.*)%s$" % ("/" if settings.APPEND_SLASH else ""),
  9. views.page, name="page"),
  10. ]