예제 #1
0
파일: urls.py 프로젝트: tienne-B/tabbycat
# ==============================================================================

urlpatterns = [

    # Indices
    path('',
        tournaments.views.PublicSiteIndexView.as_view(),
        name='tabbycat-index'),
    path('start/',
        BlankSiteStartView.as_view(),
        name='blank-site-start'),
    path('create/',
        tournaments.views.CreateTournamentView.as_view(),
        name='tournament-create'),
    path('load-demo/',
        LoadDemoView.as_view(),
        name='load-demo'),
    path('inactive/',
        tournaments.views.PublicSiteInactiveTournamentsView.as_view(),
        name='tabbycat-inactive-tournaments'),

    # Top Level Pages
    path('style/',
        tournaments.views.StyleGuideView.as_view(),
        name='style-guide'),

    # Set language override
    path('i18n/',
        include('django.conf.urls.i18n')),

    # JS Translations Catalogue; includes all djangojs files in locale folders
예제 #2
0
# Base Patterns
# ==============================================================================

urlpatterns = [

    # Indices
    path('',
         tournaments.views.PublicSiteIndexView.as_view(),
         name='tabbycat-index'),
    path('start/',
         tournaments.views.BlankSiteStartView.as_view(),
         name='blank-site-start'),
    path('create/',
         tournaments.views.CreateTournamentView.as_view(),
         name='tournament-create'),
    path('load-demo/', LoadDemoView.as_view(), name='load-demo'),

    # Top Level Pages
    path('donations/',
         tournaments.views.DonationsView.as_view(),
         name='donations'),
    path('style/',
         tournaments.views.StyleGuideView.as_view(),
         name='style-guide'),

    # Set language override
    path('i18n/', include('django.conf.urls.i18n')),

    # JS Translations Catalogue; includes all djangojs files in locale folders
    path('jsi18n/',
         JavaScriptCatalog.as_view(domain="djangojs", ),
예제 #3
0
파일: urls.py 프로젝트: czlee/tabbycat
# ==============================================================================

urlpatterns = [

    # Indices
    path('',
        tournaments.views.PublicSiteIndexView.as_view(),
        name='tabbycat-index'),
    path('start/',
        tournaments.views.BlankSiteStartView.as_view(),
        name='blank-site-start'),
    path('create/',
        tournaments.views.CreateTournamentView.as_view(),
        name='tournament-create'),
    path('load-demo/',
        LoadDemoView.as_view(),
        name='load-demo'),

    # Top Level Pages
    path('donations/',
        tournaments.views.DonationsView.as_view(),
        name='donations'),
    path('style/',
        tournaments.views.StyleGuideView.as_view(),
        name='style-guide'),

    # Set language override
    path('i18n/',
        include('django.conf.urls.i18n')),

    # JS Translations Catalogue; includes all djangojs files in locale folders