示例#1
0
    url(r'^lookup/fic/$',
        SerebiiObjectLookupView.as_view(model=Fic),
        name='lookup_fic'),
    url(r'^lookup/member/$',
        SerebiiObjectLookupView.as_view(model=Member),
        name='lookup_member'),
    url(r'^nomination/$', NominationView.as_view(), name='nomination'),
    url(r'^nomination/all/(?:(?P<year>\d{4})/)?$',
        AllNominationsView.as_view(),
        name='all_nominations'),
    url(r'^nomination/(?P<member>\d+)/(?:(?P<year>\d{4})/)?$',
        UserNominationsView.as_view(),
        name='user_nominations'),
    url(r'^nomination/(?P<member>\d+)/(?:(?P<year>\d{4})/)?edit/$',
        AdminNominationView.as_view(),
        name='admin_nomination'),
    url(r'^nomination/lookup/fic/$',
        NominationLookupView.as_view(model=Fic),
        name='nomination_lookup_fic'),
    url(r'^nomination/lookup/member/$',
        NominationLookupView.as_view(model=Member),
        name='nomination_lookup_member'),
    url(r'^voting/$', VotingView.as_view(), name='voting'),
    url(r'^voting/stats/$', VotingStatsView.as_view(), name='voting_stats'),
    url(r'^results/(?:(?P<year>\d{4})/)?$',
        ResultsView.as_view(),
        name='results'),
    url(r'^past_awards/$', PastAwardsView.as_view(), name='past_awards'),
    url(r'^admin/', admin.site.urls),
]
示例#2
0
urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'sppfawards.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),
    url(r'^$', TemplateView.as_view(template_name='home.html'), name='home'),
    url(r'^login/$', login, {'template_name': 'login.html'}, name='login'),
    url(r'^reset_password/$', PasswordResetLookupView.as_view(), name='reset_password'),
    url(r'^reset_password/user/(?P<pk>\d+)/$', PasswordResetView.as_view(), name='reset_password'),
    url(r'^logout/$', logout, {'next_page': reverse_lazy('home')}, name='logout'),
    url(r'^register/$', RegisterView.as_view(), name='register'),
    url(r'^verify/$', VerificationView.as_view(), name='verification'),

    url(r'^lookup/fic/$', SerebiiObjectLookupView.as_view(model=Fic), name='lookup_fic'),
    url(r'^lookup/member/$', SerebiiObjectLookupView.as_view(model=Member), name='lookup_member'),

    url(r'^nomination/$', NominationView.as_view(), name='nomination'),
    url(r'^nomination/all/(?:(?P<year>\d{4})/)?$', AllNominationsView.as_view(), name='all_nominations'),
    url(r'^nomination/(?P<member>\d+)/(?:(?P<year>\d{4})/)?$', UserNominationsView.as_view(), name='user_nominations'),
    url(r'^nomination/(?P<member>\d+)/(?:(?P<year>\d{4})/)?edit/$', AdminNominationView.as_view(), name='admin_nomination'),

    url(r'^voting/$', VotingView.as_view(), name='voting'),
    url(r'^voting/stats/$', VotingStatsView.as_view(), name='voting_stats'),

    url(r'^results/(?:(?P<year>\d{4})/)?$', ResultsView.as_view(), name='results'),

    url(r'^past_awards/$', PastAwardsView.as_view(), name='past_awards'),

    url(r'^admin/', include(admin.site.urls)),
)
示例#3
0
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'sppfawards.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),
    url(r'^$', TemplateView.as_view(template_name='home.html'), name='home'),
    url(r'^login/$', login, {'template_name': 'login.html'}, name='login'),
    url(r'^reset_password/$', PasswordResetLookupView.as_view(), name='reset_password'),
    url(r'^reset_password/user/(?P<pk>\d+)/$', PasswordResetView.as_view(), name='reset_password'),
    url(r'^logout/$', logout, {'next_page': reverse_lazy('home')}, name='logout'),
    url(r'^register/$', RegisterView.as_view(), name='register'),
    url(r'^verify/$', VerificationView.as_view(), name='verification'),

    url(r'^lookup/fic/$', SerebiiObjectLookupView.as_view(model=Fic), name='lookup_fic'),
    url(r'^lookup/member/$', SerebiiObjectLookupView.as_view(model=Member), name='lookup_member'),

    url(r'^nomination/$', NominationView.as_view(), name='nomination'),
    url(r'^nomination/all/(?:(?P<year>\d{4})/)?$', AllNominationsView.as_view(), name='all_nominations'),
    url(r'^nomination/(?P<member>\d+)/(?:(?P<year>\d{4})/)?$', UserNominationsView.as_view(), name='user_nominations'),
    url(r'^nomination/(?P<member>\d+)/(?:(?P<year>\d{4})/)?edit/$', AdminNominationView.as_view(), name='admin_nomination'),

    url(r'^voting/$', VotingView.as_view(), name='voting'),
    url(r'^voting/stats/$', VotingStatsView.as_view(), name='voting_stats'),

    url(r'^results/$', ResultsView.as_view(), name='results'),

    url(r'^admin/', include(admin.site.urls)),
)