Example #1
0
        }),
    )

# auth
urlpatterns += patterns(
    '',
    url(r'^accounts/login/$', login, {}, name='fe_login'),
    url(r'^accounts/logout/$', logout, {}, name='fe_logout'),
)

# tinymce
urlpatterns += patterns(
    '',
    (r'^tinymce/', include('tinymce.urls')),
)

# Home
urlpatterns += patterns(
    'homepage',
    (r'^$', 'homepage'),
)

simplemenu.register(
    '/admin/',
    '/planet/',
    '/community-map/',
    '/plugins/',
    FlatPage.objects.all(),
    simplemenu.models.URLItem.objects.all(),
)
Example #2
0
    urlpatterns += [
        url(r'^static/(?P<path>.*)$', serve, {'document_root': settings.MEDIA_ROOT}),
    ]


# auth
urlpatterns += [
    url(r'^accounts/login/$',  login, {}, name = 'fe_login'),
    url(r'^accounts/logout/$', logout, {}, name = 'fe_logout'),
]

# tinymce
urlpatterns += [
    url(r'^tinymce/', include('tinymce.urls')),
]


# Home
urlpatterns += [
    url(r'^$', homepage),
]

simplemenu.register(
    '/admin/',
    '/planet/',
    '/community-map/',
    '/plugins/',
    FlatPage.objects.all(),
    simplemenu.models.URLItem.objects.all(),
)