old_contents: from django.conf import settings
  from django.conf.urls.defaults import *
  from django.views.generic.simple import direct_to_template
  
  from django.contrib import admin
  admin.autodiscover()
  
  from pinax.apps.account.openid_consumer import PinaxConsumer
  
  
  handler500 = "pinax.views.server_error"
  
  WIKI_SLUG = r"(([\w-]{2,})(/[\w-]{2,})*)"
  
  urlpatterns = patterns("",
      url(r"^$", direct_to_template, {
          "template": "homepage.html",
      }, name="home"),
      url(r"^admin/invite_user/$", "pinax.apps.signup_codes.views.admin_invite_user", name="admin_invite_user"),
      url(r"^admin/", include(admin.site.urls)),
      url(r"^about/", include("about.urls")),
      url(r"^account/", include("pinax.apps.account.urls")),
      url(r"^openid/", include(PinaxConsumer().urls)),
      url(r"^markitup/", include("markitup.urls")),
      url(r"^pages/(?P<slug>%s)/$" % WIKI_SLUG, "cms.views.page", name="cms_page"),
  )
  
  
  if settings.SERVE_MEDIA:
      urlpatterns += patterns("",
          url(r"", include("staticfiles.urls")),
      )
  
new_contents: from django.conf import settings
  from django.conf.urls.defaults import *
  from django.views.generic.simple import direct_to_template
  
  from django.contrib import admin
  admin.autodiscover()
  
  from pinax.apps.account.openid_consumer import PinaxConsumer
  
  
  handler500 = "pinax.views.server_error"
  
  WIKI_SLUG = r"(([\w-]{2,})(/[\w-]{2,})*)"
  
  urlpatterns = patterns("",
      url(r"^$", direct_to_template, {
          "template": "homepage.html",
      }, name="home"),
      url(r"^admin/invite_user/$", "pinax.apps.signup_codes.views.admin_invite_user", name="admin_invite_user"),
      url(r"^admin/", include(admin.site.urls)),
      url(r"^about/", include("about.urls")),
      url(r"^account/", include("pinax.apps.account.urls")),
      url(r"^openid/", include(PinaxConsumer().urls)),
      url(r"^markitup/", include("markitup.urls")),
      url(r"^(?P<slug>%s)/$" % WIKI_SLUG, "cms.views.page", name="cms_page"),
  )
  
  
  if settings.SERVE_MEDIA:
      urlpatterns += patterns("",
          url(r"", include("staticfiles.urls")),
      )
  
subject: move cms slug down to root url