Пример #1
0
 url(r'^unsave_issue/(?P<issue_pk>\d+)/$', website.views.unsave_issue, name="unsave_issue"),
 url(r'^issue/edit/$', website.views.IssueEdit),
 url(r'^issue/update/$', website.views.UpdateIssue),
 url(r'^issue/(?P<slug>\w+)/$', IssueView.as_view(), name="issue_view"),
 url(r'^follow/(?P<user>[^/]+)/', website.views.follow_user,name="follow_user"),
 url(r'^all_activity/$', AllIssuesView.as_view(), name="all_activity"),
 url(r'^label_activity/$', SpecificIssuesView.as_view(), name="all_activity"),
 url(r'^leaderboard/$', LeaderboardView.as_view(), name="leaderboard"),
 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()),
Пример #2
0
 re_path(r"^label_activity/$",
         SpecificIssuesView.as_view(),
         name="all_activity"),
 re_path(r"^leaderboard/$", LeaderboardView.as_view(), name="leaderboard"),
 re_path(r"^scoreboard/$", ScoreboardView.as_view(), name="scoreboard"),
 re_path(r"^issue/$", IssueCreate.as_view(), name="issue"),
 re_path(
     r"^upload/(?P<time>[^/]+)/(?P<hash>[^/]+)/",
     UploadCreate.as_view(),
     name="upload",
 ),
 re_path(r"^profile/(?P<slug>[^/]+)/$",
         UserProfileDetailView.as_view(),
         name="profile"),
 re_path(r"^domain/(?P<slug>[^/]+)/$",
         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"),