Ejemplo n.º 1
0
Archivo: urls.py Proyecto: weeee9/site
        'home': HomePageSitemap,
        'contest': ContestSitemap,
        'organization': OrganizationSitemap,
        'blog': BlogPostSitemap,
        'solutions': SolutionSitemap,
        'pages': UrlSitemap([
            {'location': '/about/', 'priority': 0.9},
        ]),
    }}),

    url(r'^judge-select2/', include([
        url(r'^profile/$', UserSelect2View.as_view(), name='profile_select2'),
        url(r'^organization/$', OrganizationSelect2View.as_view(), name='organization_select2'),
        url(r'^problem/$', ProblemSelect2View.as_view(), name='problem_select2'),
        url(r'^contest/$', ContestSelect2View.as_view(), name='contest_select2'),
        url(r'^comment/$', CommentSelect2View.as_view(), name='comment_select2'),
    ])),
]

favicon_paths = ['apple-touch-icon-180x180.png', 'apple-touch-icon-114x114.png', 'android-chrome-72x72.png',
                 'apple-touch-icon-57x57.png', 'apple-touch-icon-72x72.png', 'apple-touch-icon.png', 'mstile-70x70.png',
                 'android-chrome-36x36.png', 'apple-touch-icon-precomposed.png', 'apple-touch-icon-76x76.png',
                 'apple-touch-icon-60x60.png', 'android-chrome-96x96.png', 'mstile-144x144.png', 'mstile-150x150.png',
                 'safari-pinned-tab.svg', 'android-chrome-144x144.png', 'apple-touch-icon-152x152.png',
                 'favicon-96x96.png',
                 'favicon-32x32.png', 'favicon-16x16.png', 'android-chrome-192x192.png', 'android-chrome-48x48.png',
                 'mstile-310x150.png', 'apple-touch-icon-144x144.png', 'browserconfig.xml', 'manifest.json',
                 'apple-touch-icon-120x120.png', 'mstile-310x310.png']


from django.templatetags.static import static
Ejemplo n.º 2
0
        'home': HomePageSitemap,
        'contest': ContestSitemap,
        'organization': OrganizationSitemap,
        'blog': BlogPostSitemap,
        'solutions': SolutionSitemap,
        'pages': UrlSitemap([
            {'location': '/about/', 'priority': 0.9},
        ]),
    }}),

    url(r'^judge-select2/', include([
        url(r'^profile/$', UserSelect2View.as_view(), name='profile_select2'),
        url(r'^organization/$', OrganizationSelect2View.as_view(), name='organization_select2'),
        url(r'^problem/$', ProblemSelect2View.as_view(), name='problem_select2'),
        url(r'^contest/$', ContestSelect2View.as_view(), name='contest_select2'),
        url(r'^comment/$', CommentSelect2View.as_view(), name='comment_select2'),
        url(r'^contest_profile/$', ContestProfileSelect2View.as_view(), name='contest_profile_select2'),
    ])),
]

favicon_paths = ['apple-touch-icon-180x180.png', 'apple-touch-icon-114x114.png', 'android-chrome-72x72.png',
                 'apple-touch-icon-57x57.png', 'apple-touch-icon-72x72.png', 'apple-touch-icon.png', 'mstile-70x70.png',
                 'android-chrome-36x36.png', 'apple-touch-icon-precomposed.png', 'apple-touch-icon-76x76.png',
                 'apple-touch-icon-60x60.png', 'android-chrome-96x96.png', 'mstile-144x144.png', 'mstile-150x150.png',
                 'safari-pinned-tab.svg', 'android-chrome-144x144.png', 'apple-touch-icon-152x152.png', 'favicon-96x96.png',
                 'favicon-32x32.png', 'favicon-16x16.png', 'android-chrome-192x192.png', 'android-chrome-48x48.png',
                 'mstile-310x150.png', 'apple-touch-icon-144x144.png', 'browserconfig.xml', 'manifest.json',
                 'apple-touch-icon-120x120.png', 'mstile-310x310.png']


from django.contrib.staticfiles.templatetags.staticfiles import static
Ejemplo n.º 3
0
     r'^judge-select2/',
     include([
         url(r'^profile/$',
             UserSelect2View.as_view(),
             name='profile_select2'),
         url(r'^organization/$',
             OrganizationSelect2View.as_view(),
             name='organization_select2'),
         url(r'^problem/$',
             ProblemSelect2View.as_view(),
             name='problem_select2'),
         url(r'^contest/$',
             ContestSelect2View.as_view(),
             name='contest_select2'),
         url(r'^comment/$',
             CommentSelect2View.as_view(),
             name='comment_select2'),
     ])),
 url(
     r'^tasks/',
     include([
         url(r'^status/(?P<task_id>[A-Za-z0-9-]*)$',
             tasks.task_status,
             name='task_status'),
         url(r'^ajax_status$',
             tasks.task_status_ajax,
             name='task_status_ajax'),
         url(r'^success$', tasks.demo_success),
         url(r'^failure$', tasks.demo_failure),
         url(r'^progress$', tasks.demo_progress),
     ])),
Ejemplo n.º 4
0
        'pages': UrlSitemap([
            {'location': '/about/', 'priority': 0.9},
        ]),
    }}),
)

handler404 = 'judge.views.error.error404'
handler403 = 'judge.views.error.error403'
handler500 = 'judge.views.error.error500'

if 'tinymce' in settings.INSTALLED_APPS:
    urlpatterns += patterns('', (r'^tinymce/', include('tinymce.urls')))

if 'newsletter' in settings.INSTALLED_APPS:
    urlpatterns += patterns('', (r'^newsletter/', include('newsletter.urls')))

if 'django_select2' in settings.INSTALLED_APPS:
    from judge.views.select2 import UserSelect2View, OrganizationSelect2View, ProblemSelect2View, CommentSelect2View, \
        ContestProfileSelect2View

    urlpatterns += patterns('',
        url(r'^select2/', include('django_select2.urls')),
        url(r'^judge-select2/profile/', UserSelect2View.as_view(), name='profile_select2'),
        url(r'^judge-select2/organization/', OrganizationSelect2View.as_view(), name='organization_select2'),
        url(r'^judge-select2/problem/', ProblemSelect2View.as_view(), name='problem_select2'),
        url(r'^judge-select2/comment/', CommentSelect2View.as_view(), name='comment_select2'),
        url(r'^judge-select2/contest_profile/', ContestProfileSelect2View.as_view(), name='contest_profile_select2'),
    )

if 'django_uwsgi' in settings.INSTALLED_APPS:
    urlpatterns = patterns('', url(r'^admin/uwsgi/', include('django_uwsgi.urls'))) + urlpatterns