コード例 #1
0
from django.conf.urls.defaults import *
from canvas.shortcuts import direct_to_template
from canvas.view_guards import require_staff

urlpatterns = patterns('drawquest.apps.quests.views',
    url(r'^schedule$', 'schedule'),
)
top_comments_urls = patterns('drawquest.apps.quests.views',
    url(r'^top_comments$', require_staff(direct_to_template), kwargs={'template': 'quests/top_comments.html'}, name='top_comments_page'),
)
# To guarantee their import.
import drawquest.apps.quests.signals

コード例 #2
0
ファイル: urls.py プロジェクト: StetHD/canvas-2
urlpatterns += patterns('',
    (r'^download$', redirect_to, {'url': 'https://itunes.apple.com/us/app/drawquest-free-daily-drawing/id576917425?ls=1&mt=8'}),

    (r'^test_realtime$', 'drawquest.views.test_realtime'),

    (r'^admin/', include(admin_urls)),
    (r'^quests/', include(top_comments_urls)),
    (r'^api/', include(api.urls)),
    url(r'deauthorize_facebook_user', 'drawquest.apps.drawquest_auth.views.deauthorize_facebook_user'),
    url(r'^p/' + re_slug('short_id'), 'drawquest.apps.quest_comments.views.share_page'),
    (r'^password_reset/', include('drawquest.apps.drawquest_auth.urls')),
    (r'^quests/submit_quest', include('drawquest.apps.submit_quest.urls')),
    url(r'^unsubscribe$', 'drawquest.views.unsubscribe'),
    (r'^s/', include('apps.share_tracking.urls')),

    (r'^whitelisting', include('drawquest.apps.whitelisting.urls')),

    url(r'^$', require_user(cached(direct_to_template)), kwargs={'template': 'drawquest/index.html'}, name='drawquest_landing_page'),
    url(r'^about$', require_user(cached(direct_to_template)), kwargs={'template': 'drawquest/team.html'}, name='drawquest_team_page'),
    url(r'^privacy$', cached(direct_to_template), kwargs={'template': 'drawquest/privacy.html'}, name='drawquest_privacy_page'),
    url(r'^terms$', cached(direct_to_template), kwargs={'template': 'drawquest/terms.html'}, name='drawquest_terms_page'),
    url(r'^jobs$', require_user(cached(direct_to_template)), kwargs={'template': 'drawquest/jobs.html'}, name='drawquest_jobs_page'),

    url(r'^palettes$', require_staff(direct_to_template), kwargs={'template': 'drawquest/palettes.html'}, name='drawquest_palettes_page'),

    url(r'^app/about$', cached(direct_to_template), kwargs={'template': 'drawquest/app/about.html'}, name='drawquest_app_about_page'),
    url(r'^app/privacy$', cached(direct_to_template), kwargs={'template': 'drawquest/app/privacy.html'}, name='drawquest_app_privacy_page'),
    url(r'^app/terms$', cached(direct_to_template), kwargs={'template': 'drawquest/app/terms.html'}, name='drawquest_app_terms_page'),
)

コード例 #3
0
ファイル: urls.py プロジェクト: eiritana/canvas
from django.conf.urls.defaults import *

from canvas.view_guards import require_staff
from canvas.views import direct_to_django_template

urlpatterns = patterns(
    '',
    (r'^js_error$', require_staff(direct_to_django_template), {
        'template': 'sentry_debug/js_error.django.html'
    }),
)
コード例 #4
0
ファイル: urls.py プロジェクト: eiritana/canvas
        kwargs={'template': 'drawquest/team.html'},
        name='drawquest_team_page'),
    url(r'^privacy$',
        cached(direct_to_template),
        kwargs={'template': 'drawquest/privacy.html'},
        name='drawquest_privacy_page'),
    url(r'^terms$',
        cached(direct_to_template),
        kwargs={'template': 'drawquest/terms.html'},
        name='drawquest_terms_page'),
    url(r'^jobs$',
        require_user(cached(direct_to_template)),
        kwargs={'template': 'drawquest/jobs.html'},
        name='drawquest_jobs_page'),
    url(r'^palettes$',
        require_staff(direct_to_template),
        kwargs={'template': 'drawquest/palettes.html'},
        name='drawquest_palettes_page'),
    url(r'^app/about$',
        cached(direct_to_template),
        kwargs={'template': 'drawquest/app/about.html'},
        name='drawquest_app_about_page'),
    url(r'^app/privacy$',
        cached(direct_to_template),
        kwargs={'template': 'drawquest/app/privacy.html'},
        name='drawquest_app_privacy_page'),
    url(r'^app/terms$',
        cached(direct_to_template),
        kwargs={'template': 'drawquest/app/terms.html'},
        name='drawquest_app_terms_page'),
)
コード例 #5
0
from django.conf.urls import *

from canvas.view_guards import require_staff
from canvas.views import direct_to_django_template

urlpatterns = patterns('',
    (r'^js_error$', require_staff(direct_to_django_template), {'template': 'sentry_debug/js_error.django.html'}),
)