示例#1
0
文件: urls.py 项目: wade1990/BLT
 url(r'^scoreboard/$', ScoreboardView.as_view(), name="scoreboard"),
 url(r'^issue/$', IssueCreate.as_view(), name="issue"),
 url(r'^upload/(?P<time>[^/]+)/(?P<hash>[^/]+)/',
     UploadCreate.as_view(), name="upload"),
 url(r'^profile/(?P<slug>[^/]+)/$',
     UserProfileDetailView.as_view(), name="profile"),
 url(r'^domain/(?P<slug>[^/]+)/$',
     DomainDetailView.as_view(), name="domain"),
 url(r'^email/(?P<slug>[^/]+)/$', EmailDetailView.as_view(), name="email"),
 url(r'^.well-known/acme-challenge/(?P<token>[^/]+)/$',
     website.views.find_key, name="find_key"),
 url(r'^accounts/profile/', website.views.profile),
 url(r'^delete_issue/(?P<id>\w+)/$', website.views.delete_issue),
 url(r'^accounts/', include('allauth.urls')),
 url(r'^start/$', TemplateView.as_view(template_name="hunt.html")),
 url(r'^hunt/$', login_required(HuntCreate.as_view()), name="hunt"),
 url(r'^invite/$', InviteCreate.as_view(template_name="invite.html")),
 url(r'^invite-friend/$', login_required(CreateInviteFriend.as_view()),
     name='invite_friend'),
 url(r'^terms/$', TemplateView.as_view(template_name="terms.html")),
 url(r'^about/$', TemplateView.as_view(template_name="about.html")),
 url(r'^privacypolicy/$', TemplateView.as_view(template_name="privacy.html")),
 url(r'^stats/$', StatsDetailView.as_view()),
 url(r'^favicon\.ico$', favicon_view),
 url(r'^sendgrid_webhook/$', csrf_exempt(InboundParseWebhookView.as_view()),
     name='inbound_event_webhook_callback'),
 url(r'^issue/comment/add/$', comments.views.add_comment, name='add_comment'),
 url(r'^issue/comment/delete/$',
     comments.views.delete_comment, name='delete_comment'),
 url(r'^comment/autocomplete/$',
     comments.views.autocomplete, name='autocomplete'),
示例#2
0
         DomainDetailView.as_view(),
         name="domain"),
 re_path(
     r"^.well-known/acme-challenge/(?P<token>[^/]+)/$",
     website.views.find_key,
     name="find_key",
 ),
 re_path(r"^accounts/profile/",
         website.views.profile,
         name="account_profile"),
 re_path(r"^delete_issue/(?P<id>\w+)/$",
         website.views.delete_issue,
         name="delete_issue"),
 re_path(r"^accounts/", include("allauth.urls")),
 re_path(r"^start/$", TemplateView.as_view(template_name="hunt.html")),
 re_path(r"^hunt/$", login_required(HuntCreate.as_view()), name="hunt"),
 re_path(r"^invite/$", InviteCreate.as_view(template_name="invite.html")),
 re_path(
     r"^invite-friend/$",
     login_required(CreateInviteFriend.as_view()),
     name="invite_friend",
 ),
 re_path(r"^terms/$", TemplateView.as_view(template_name="terms.html")),
 re_path(r"^about/$", TemplateView.as_view(template_name="about.html")),
 re_path(r"^privacypolicy/$",
         TemplateView.as_view(template_name="privacy.html")),
 re_path(r"^stats/$", StatsDetailView.as_view(), name="stats"),
 re_path(r"^favicon\.ico$", favicon_view),
 re_path(
     r"^sendgrid_webhook/$",
     csrf_exempt(InboundParseWebhookView.as_view()),