Beispiel #1
0
from django.conf.urls.defaults import *

from feincms.views.cbv.views import Handler
handler = Handler.as_view()

urlpatterns = patterns(
    '',
    url(r'^$', handler, name='feincms_home'),
    url(r'^(.*)/$', handler, name='feincms_handler'),
)
Beispiel #2
0
from django.conf.urls import patterns, include, url

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

from feincms.views.cbv.views import Handler
handler = Handler.as_view()

from createjs_cms.views import PageUpdateView

urlpatterns = patterns('',
    url(r'^admin/', include(admin.site.urls)),
)

urlpatterns += patterns('',
   url(r'^createjs_cms/$', PageUpdateView.as_view(), name='page_update_view'),
)

urlpatterns += patterns('',
    url(r'^$', handler, name='feincms_home'),
    url(r'^(.*)/$', handler, name='feincms_handler'),
)
#coding=utf-8
from django.conf.urls.defaults import patterns, include, url

from feincms.views.cbv.views import Handler
from views.cbv.ajax import AjaxHandler
feincms_handler = Handler.as_view()
ajax_handler = AjaxHandler.as_view()

urlpatterns = patterns('',
    url(r'^$', feincms_handler, name='feincms_home'),
    url(r'^(.*)/$', ajax_handler, name='feincms_handler'),
)