示例#1
0
         path(
             'martor/',
             include([
                 path('upload-image',
                      martor_image_uploader,
                      name='martor_image_uploader'),
                 path('search-user',
                      markdown_search_user,
                      name='martor_search_user'),
             ])),
     ])),
 path(
     'feed/',
     include([
         path('problems/rss/', ProblemFeed(), name='problem_rss'),
         path('problems/atom/', AtomProblemFeed(), name='problem_atom'),
         path('comment/rss/', CommentFeed(), name='comment_rss'),
         path('comment/atom/', AtomCommentFeed(), name='comment_atom'),
         path('blog/rss/', BlogFeed(), name='blog_rss'),
         path('blog/atom/', AtomBlogFeed(), name='blog_atom'),
     ])),
 path(
     'stats/',
     include([
         path(
             'language/',
             include([
                 path('', stats.language, name='language_stats'),
                 path('data/all/',
                      stats.language_data,
                      name='language_stats_data_all'),
示例#2
0
文件: urls.py 项目: weeee9/site
        url(r'^preview/', include([
            url(r'^problem$', preview.ProblemMarkdownPreviewView.as_view(), name='problem_preview'),
            url(r'^blog$', preview.BlogMarkdownPreviewView.as_view(), name='blog_preview'),
            url(r'^contest$', preview.ContestMarkdownPreviewView.as_view(), name='contest_preview'),
            url(r'^comment$', preview.CommentMarkdownPreviewView.as_view(), name='comment_preview'),
            url(r'^profile$', preview.ProfileMarkdownPreviewView.as_view(), name='profile_preview'),
            url(r'^organization$', preview.OrganizationMarkdownPreviewView.as_view(), name='organization_preview'),
            url(r'^solution$', preview.SolutionMarkdownPreviewView.as_view(), name='solution_preview'),
            url(r'^license$', preview.LicenseMarkdownPreviewView.as_view(), name='license_preview'),
            url(r'^ticket$', preview.TicketMarkdownPreviewView.as_view(), name='ticket_preview'),
        ])),
    ])),

    url(r'^feed/', include([
        url(r'^problems/rss/$', ProblemFeed(), name='problem_rss'),
        url(r'^problems/atom/$', AtomProblemFeed(), name='problem_atom'),
        url(r'^comment/rss/$', CommentFeed(), name='comment_rss'),
        url(r'^comment/atom/$', AtomCommentFeed(), name='comment_atom'),
        url(r'^blog/rss/$', BlogFeed(), name='blog_rss'),
        url(r'^blog/atom/$', AtomBlogFeed(), name='blog_atom'),
    ])),

    url(r'^stats/', include([
        url('^language/', include([
            url('^$', stats.language, name='language_stats'),
            url('^data/all/$', stats.language_data, name='language_stats_data_all'),
            url('^data/ac/$', stats.ac_language_data, name='language_stats_data_ac'),
            url('^data/status/$', stats.status_data, name='stats_data_status'),
            url('^data/ac_rate/$', stats.ac_rate, name='language_stats_data_ac_rate'),
        ])),
    ])),
示例#3
0
     license.LicenseDetail.as_view(),
     name='license'),
 url(r'^mailgun/mail_activate/$',
     mailgun.MailgunActivationView.as_view(),
     name='mailgun_activate'),
 url(r'^detect_timezone$',
     views.DetectTimezone.as_view(),
     name='detect_timezone'),
 url(
     r'^feed/',
     include(
         patterns(
             '',
             url(r'^problems/rss/$', ProblemFeed(), name='problem_rss'),
             url(r'^problems/atom/$',
                 AtomProblemFeed(),
                 name='problem_atom'),
             url(r'^comment/rss/$', CommentFeed(), name='comment_rss'),
             url(r'^comment/atom/$', AtomCommentFeed(),
                 name='comment_atom'),
             url(r'^blog/rss/$', BlogFeed()),
             url(r'^blog/atom/$', AtomBlogFeed()),
         ))),
 url(
     r'^sitemap\.xml$', 'django.contrib.sitemaps.views.sitemap', {
         'sitemaps': {
             'problem': ProblemSitemap,
             'user': UserSitemap,
             'home': HomePageSitemap,
             'contest': ContestSitemap,
             'organization': OrganizationSitemap,