from board.views import HCLoginView, HCSettingsView, HCSignupView from board.views import CSSConstantsView, EmailConfirmationResendView, IndexView, JSConstantsView, NotificationView, PostListByTagView urlpatterns = patterns( '', url(r'^account/login/$', HCLoginView.as_view(), name='account_login'), url(r'^account/signup/$', HCSignupView.as_view(), name='account_signup'), url(r'^account/settings/$', HCSettingsView.as_view(), name='account_settings'), url(r'^account/email/resend/$', EmailConfirmationResendView.as_view(), name='account_resend_confirmation_email'), url(r'^account/', include('account.urls')), url(r'^search/', include('haystack.urls')), url(r'^constants.css$', CSSConstantsView.as_view(), name='constants.css'), url(r'^constants.js$', JSConstantsView.as_view(), name='constants.js'), url(r'^notifications$', NotificationView.as_view(), name='notification'), url(r'^t/(?P<tag>.+)/', PostListByTagView.as_view(), name='post_list_by_tag'), url(r'^x/', include('board.urls.ajax')), url(r'^u/(?P<user>\d+)/', include('board.urls.user')), url(r'^b/(?P<board>\w+)/', include('board.urls.board')), url(r'^(?P<pk>\d+)/', include('board.urls.post')), url(r'^$', IndexView.as_view(), name='index'), ) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) handler403 = curry(permission_denied, template_name='errors/403.html')
from django.conf.urls import patterns, include, url from board.feeds import EventFeed from board.views import IndexView, ServiceView from board.api import ServiceResource, CategoryResource, StatusResource, EventsResource from tastypie.api import Api from django.contrib import admin admin.autodiscover() v1_api = Api(api_name='v1') v1_api.register(ServiceResource()) v1_api.register(CategoryResource()) v1_api.register(StatusResource()) v1_api.register(EventsResource()) urlpatterns = patterns('', url(r'^$', IndexView.as_view(), name='index'), url(r'^services/(?P<slug>[-\w]+)/(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})$', ServiceView.as_view(), name='service'), url(r'^services/(?P<slug>[-\w]+)/(?P<year>\d{4})/(?P<month>\d{2})$', ServiceView.as_view(), name='service'), url(r'^services/(?P<slug>[-\w]+)/(?P<year>\d{4})$', ServiceView.as_view(), name='service'), url(r'^services/(?P<slug>[-\w]+)$', ServiceView.as_view(), name='service'), url(r'^feed$', EventFeed(), name='feed'), url(r'^api/', include(v1_api.urls)), url(r'^admin/', include(admin.site.urls)), )
from django.urls import path from board.views import IndexView, BoardView, ExportDraw from . import views urlpatterns = [ path('', IndexView.as_view(), name='index'), path('board/', BoardView.as_view(), name='board'), path('export/<username>', ExportDraw.as_view(), name='export'), ]