Пример #1
0
from frontend.views import TextFileView, Http500View

admin.autodiscover()

sitemaps = {
    # Place sitemaps here
}

urlpatterns = [
    # Django admin
    url(r'^admin/', include(admin.site.urls)),
    url(r'^admin/filebrowser/', include(fb_site.urls)),
    url(r'^admin/util/tools/', include('admin_tools.urls')),

    # Test pages
    url(r'^500test/$', view=Http500View.as_view()),
    url(r'^403/$', 'django.views.defaults.permission_denied'),
    url(r'^404/$', 'django.views.defaults.page_not_found'),
    url(r'^500/$', 'django.views.defaults.server_error'),

    # SEO API's
    url(r'^sitemap.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps}),
    url(r'^robots.txt$', TextFileView.as_view(content_type='text/plain', template_name='robots.txt')),

    # Monitoring API's
    url(r'^api/ping/', include('ping.urls')),

    # CMS modules
    # TODO: add your urls here
]
Пример #2
0
    "blog_categories": CategoryArchiveSitemap,
    "blog_authors": AuthorArchiveSitemap,
    "blog_tags": TagArchiveSitemap,
}

urlpatterns = patterns(
    "",
    # Django admin
    url(r"^admin/doc/", include("django.contrib.admindocs.urls")),
    url(r"^admin/", include(admin.site.urls)),
    url(r"^admin/filebrowser/", include(fb_site.urls)),
    url(r"^admin/util/tags/", include("taggit_autocomplete_modified.urls")),
    url(r"^admin/util/tools/", include("admin_tools.urls")),
    url(r"^admin/util/tinymce/", include("tinymce.urls")),
    # Test pages
    url(r"^500test/$", view=Http500View.as_view()),
    url(r"^403/$", "django.views.defaults.permission_denied"),
    url(r"^404/$", "django.views.defaults.page_not_found"),
    url(r"^500/$", "django.views.defaults.server_error"),
    # SEO API's
    url(r"^sitemap.xml$", "django.contrib.sitemaps.views.sitemap", {"sitemaps": sitemaps}),
    url(r"^robots.txt$", TextFileView.as_view(content_type="text/plain", template_name="robots.txt")),
    # CMS modules
    url(r"^blog/comments/", include("fluent_comments.urls")),
    url(r"", include("fluent_pages.urls")),
)

if settings.DEBUG:
    urlpatterns.insert(
        0,
        url(
Пример #3
0
from frontend.views import TextFileView, Http500View

admin.autodiscover()

sitemaps = {
    # Place sitemaps here
}

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

    # Test pages
    url(r'^500test/$', view=Http500View.as_view()),
    url(r'^403/$', 'django.views.defaults.permission_denied'),
    url(r'^404/$', 'django.views.defaults.page_not_found'),
    url(r'^500/$', 'django.views.defaults.server_error'),

    # SEO API's
    url(r'^sitemap.xml$', 'django.contrib.sitemaps.views.sitemap',
        {'sitemaps': sitemaps}),
    url(
        r'^robots.txt$',
        TextFileView.as_view(content_type='text/plain',
                             template_name='robots.txt')),

    # CMS modules
    # TODO: add your urls here
)
Пример #4
0
    'blog_entries': EntrySitemap,
    'blog_categories': CategoryArchiveSitemap,
    'blog_authors': AuthorArchiveSitemap,
    'blog_tags': TagArchiveSitemap,
}

urlpatterns = [
    # Django admin
    path('admin/filebrowser/', fb_site.urls),
    path('admin/', admin.site.urls),
    path('admin/util/tags/', include(taggit_selectize.urls)),
    path('admin/util/tinymce/', include(tinymce.urls)),
    path('admin/util/tools/', include(admin_tools.urls)),

    # Test pages
    path('500test/', view=Http500View.as_view()),
    path('400/', django.views.defaults.bad_request, kwargs={'exception':
                                                            None}),
    path('403/',
         django.views.defaults.permission_denied,
         kwargs={'exception': None}),
    path('404/',
         django.views.defaults.page_not_found,
         kwargs={'exception': None}),
    path('500/', django.views.defaults.server_error),

    # SEO API's
    re_path(r'^sitemap.xml$', django.contrib.sitemaps.views.sitemap,
            {'sitemaps': sitemaps}),
    re_path(r'^robots.txt$', RobotsTxtView.as_view()),
    re_path(