Example #1
0
from django.conf.urls import patterns,  url
from events.views import EventListView, EventDetailView

urlpatterns = patterns('',
            url(r'(?P<slug>[\w-]+|)/$', EventDetailView.as_view(),name= "event"),
    
  
              url(r'^$', EventListView.as_view(), name = "events")
              
              
              
              )
Example #2
0
from django.conf.urls import patterns, include, url
from django.contrib import admin
from events.views import EventsListView, EventDetailView

urlpatterns = patterns('',
    # Examples:
    url(r'^$', EventsListView.as_view(), name='home'),
    url(r'^events/(?P<slug>[\w-]+)/$', EventDetailView.as_view(),
    name='events'),

    url(r'^admin/', include(admin.site.urls)),
)
Example #3
0
File: urls.py Project: qsic/qsic3
from events.views import PerformanceDetailView

urlpatterns = patterns(
    'events.views',
    url(r'^up-next/?$', 'up_next', name='up_next'),
    url(r'^tonight/?$', 'tonight', name='tonight'),
    url(r'^week/current/?$', 'current_week', name='current_week'),
    url(r'^week/(\d{8})?$', 'week', name='week'),

    # url(r'^month/current/?$',
    #     'current_month',
    #     name='qsic_current_month'),
    #
    # url(r'^month/(\d{6})?$',
    #     'month',
    #     name='qsic_month'),
    url(r'^event/(?P<pk>\d+)$',
        'event_detial_view_add_slug',
        name='event_detial_view_add_slug'),
    url(r'^performance/(?P<pk>\d+)$',
        'performance_detail_view_add_slug',
        name='performance_detail_view_add_slug'),
    url(r'^event/(?P<pk>\d+)/[A-Za-z0-9_\-]+$',
        EventDetailView.as_view(),
        name='event_detail_view'),
    url(r'^performance/(?P<pk>\d+)/[A-Za-z0-9_\-]+$',
        PerformanceDetailView.as_view(),
        name='peroformance_detail_view'),
    url(r'^remove_future_events/?$',
        'remove_future_events',
        name='remove_future_events'))
Example #4
0
from django.conf.urls import patterns, url
from comments.views import SortByLikesView, PostCommentView
from events.views import EventList, PublishEventView, EventDetailView, AddAssistantView, RemoveAssistantView, \
    EventSuggestedView


urlpatterns = patterns('',
    url(r'^$', EventList.as_view(), name='list'),
    url(r'^suggested/$', EventSuggestedView.as_view(), name='suggested'),
    url(r'^add/$', PublishEventView.as_view(), name='add'),
    url(r'^assist/(?P<event_id>\w+)/$', AddAssistantView.as_view(), name='assist'),
    url(r'^not_assist/(?P<event_id>\w+)/$', RemoveAssistantView.as_view(), name='not_assist'),
    url(r'^detail/(?P<event_id>\w+)/$', EventDetailView.as_view(), name='detail'),
    url(r'^detail/(?P<event_id>\w+)/comments/$', PostCommentView.as_view(), name='post_comment'),
    url(r'^detail/(?P<event_id>\w+)/comments/(?P<comment_id>\w+)/$', PostCommentView.as_view(), name='post_reply'),
    url(r'^detail/(?P<event_id>\w+)/comments/sorted$', SortByLikesView.as_view(), name='sort_likes'),
)
Example #5
0
    # ================
    # = Autocomplete =
    # ================
    url(r'^autocomplete/', include(autocomplete.urls)),

    # =======================
    # = Feedback / Comments =
    # =======================
    url(r'^comments/', include('django.contrib.comments.urls')),
    url(r'^feedback/', include('djangovoice.urls')),

    # ==========
    # = Events =
    # ==========
    url(r'^event/(?P<slug>[-\w]+)/(?P<secret_key>[0-9a-f]{10})/$',
        EventDetailView.as_view(), name='event_detail'
    ),
)

# ===========
# = Statics =
# ===========
from django.views.static import serve
from django.contrib.staticfiles.urls import staticfiles_urlpatterns

urlpatterns += staticfiles_urlpatterns()
urlpatterns += (
    url(r'^favicon\.ico$', 'django.views.generic.simple.redirect_to',
        {'url': settings.STATIC_URL + 'images/favicon.ico'}
    ),
)
Example #6
0
        name='event_staff'),

    url(r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/(?P<slug>[-\w]+)/'
        'delete/$',
        EventDeleteView.as_view(),
        name='event_delete'),

    url(r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/(?P<slug>[-\w]+)/'
        'update/$',
        EventUpdateView.as_view(),
        name='event_update'),

    url(r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/(?P<slug>[-\w]+)/$', 'events.views.view_event', name='event_detail'),
    
    url(r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/(?P<slug>[-\w]+)/$',
        EventDetailView.as_view(),
        name='event_detail'),

    

    # url(r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/(?P<slug>[-\w]+)/$',
    #     EventCommentView.as_view(),
    #     name='event_detail'),

    url(r'^(?P<event_slug>[-\w]+)/guest/create/$',
        GuestCreateView.as_view(),
        name='guest_create'),

    url(r'^(?P<event_slug>[-\w]+)/guest/(?P<pk>\d+)/update/$',
        GuestUpdateView.as_view(),
        name='guest_update'),
Example #7
0
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),

    url(r'^$', IndexView.as_view(), name='home'),
    url(r'^login/$', LoginFormView.as_view(), name='login'),
    url(r'^login/confirm/$', AuthenticationView.as_view(), name='confirm'),
    url(r'^logout/$', LogoutView.as_view(), name='logout'),
    url(r'^accounts/', include('registration.urls')),

    url(r'^events$', ListEventView.as_view(), name='events-list'),
    url(r'^my-events$', ListUserEventView.as_view(), name='my-events-list'),
    url(r'^events/add$', CreateEventView.as_view(), name='events-new'),
    url(r'^events/edit/(?P<pk>\d+)/$', UpdateEventView.as_view(), name='events-edit'),
    url(r'^events/(?P<pk>\d+)/$', EventDetailView.as_view(), name='events-detail'),

    url(r'^events/(?P<pk>\d+)/resolve$', CreateDecisionView.as_view(), name='decisions-new'),

    url(r'^file-form$', FileFormView.as_view(), name='fileform'),
    url(r'^file$', FileLoadView.as_view(), name='file_load'),
)


urlpatterns = patterns('',
    url(r'^media/(?P<path>.*)$', 'django.views.static.serve',
        {'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
    #url(r'^static/(?P<path>.*)$', 'django.views.static.serve',
    #    {'document_root': settings.STATIC_ROOT, 'show_indexes': True}),
    url(r'', include('django.contrib.staticfiles.urls')),
) + urlpatterns
Example #8
0
    EventsListView,
    LocationDetailView,
    LocationsListView,
    EventInviteDownloadView,
)
from events.feeds import Calendar

slug = '(?P<slug>[-\\w\\d]+)'
pk = '(?P<pk>[0-9]+)'
date = '(?P<date>[0-9]{4}-?[0-9]{2}-?[0-9]{2})'
event_path = f'{date}/{slug}/{pk}/$'

urlpatterns = [
    # location
    path('location/<slug:slug>/<int:pk>/',
         LocationDetailView.as_view(),
         name='location'),
    path('locations/', LocationsListView.as_view(), name='locations'),

    # event
    re_path(r'^{}'.format(event_path), EventDetailView.as_view(),
            name='event'),
    path('invite/<int:pk>/',
         EventInviteDownloadView.as_view(),
         name='event-invite'),
    path('', EventsListView.as_view(), name='events'),

    # calendar
    path('feed/ical/', Calendar(), name='calendar'),
]
Example #9
0
 def test_event_uses_view_as_class_based_view(self):
     """тест: использование представления Event как Class-Based view"""
     self.assertEqual(
         self.response.resolver_match.func.__name__,
         EventDetailView.as_view().__name__)
Example #10
0
from django.conf.urls import include, url

from events.views import (ArchiveView, EventDetailView, AttendanceView,
        latest_event_detail)
from polls.views import EventPollView, EventPollResultsView


urlpatterns = [
    url(r'^$', latest_event_detail, name="event_latest"),
    url(r'^archive/$', ArchiveView.as_view(), name="event_archive"),
    url(r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/$',
        EventDetailView.as_view(), kwargs={'slug': ''},
        name="event_detail"),
    url(r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/attendance/$',
        AttendanceView.as_view(), kwargs={'slug': ''},
        name="event_attendance"),
    url(r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/poll/$',
        EventPollView.as_view(), kwargs={'slug': ''},
        name="event_poll"),
    url(r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/poll/results/$',
        EventPollResultsView.as_view(), kwargs={'slug': ''},
        name="event_poll_results"),
]
Example #11
0
from django.conf.urls.defaults import patterns, url
from events.views import EventListView, EventDetailView, EventCreateView, EventUpdateView, \
                         InvitationView, InvitationRsvpView

urlpatterns = patterns('events.views',
     url(r'^add/$', EventCreateView.as_view(), name='event_add'),
     url(r'^edit/(?P<pk>\d+)/$', EventUpdateView.as_view(), name='event_edit'),

     url(r'^$', EventListView.as_view(), name='event_list'),
     url(r'^(?P<slug>[-\w]+)/$', EventDetailView.as_view(), name='event_detail'),

     url(r'^(?P<slug>[-\w]+)/invite/$', InvitationView.as_view(), name='send_invitation'),
     url(r'^rsvp/(?P<hash>\w+)/$', InvitationRsvpView.as_view(), name='event_rsvp'),
)
Example #12
0
from django.contrib import admin
from django.urls import path, include
from events.views import index, dashboard, EventListView, EventDetailView, EventCreateView, EventDeleteView, EventUpdateView, register_for_event, edit_registration, delete_registration, my_events, view_registrations, custom_register_for_event, customise_reg_form, view_event, view_event_by_hashed_url, search_events

urlpatterns = [
    path('', index, name='index'),
    path('dashboard/', dashboard, name='dashboard'),
    path('registrations/<int:pk>/delete',
         delete_registration,
         name='delete_registration'),
    path('my_events/', my_events, name='my_events'),
    path('<str:url>/registrations/',
         view_registrations,
         name='view_registrations'),
    path('events/', EventListView.as_view(), name='event_list'),
    path('events/<int:pk>/', EventDetailView.as_view(), name='event_detail'),
    path('events/new', EventCreateView.as_view(), name='create_event'),
    path('<str:url>/delete', EventDeleteView.as_view(), name='delete_event'),
    path('<str:url>/update', EventUpdateView.as_view(), name='update_event'),
    path('<str:url>/register',
         custom_register_for_event,
         name='register_for_event'),
    path('<str:url>/form', customise_reg_form, name='customise_reg_form'),
    path('events/<str:url>', view_event, name='view_event'),
    path('events/<str:hashed_url>',
         view_event_by_hashed_url,
         name='view_event_by_hashed_url'),
    path('search/', search_events, name='search_events'),

    #path('events/edit_registration/<int:pk>/', edit_registration, name = 'edit_registration'),
]
Example #13
0
from django.conf.urls import url

from events.views import CreateEventView, EventDetailView, EventListView, PersonalEventListView

urlpatterns = [
    url(r'^$', EventListView.as_view(), name='event-list'),
    url(r'^my/$', PersonalEventListView.as_view(), name='personal-event-list'),
    url(r'^(?P<pk>[0-9]+)/$', EventDetailView.as_view(), name='event-detail'),
    url(r'^(?P<pk>[0-9]+)/share/(?P<group>[0-9]+)/$',
        EventDetailView.as_view(),
        name='event-detail'),
    url(r'^(?P<pk>[0-9]+)/share/(?P<group>[0-9]+)/$',
        EventDetailView.as_view(),
        name='share-event'),
    url(r'^create/$', CreateEventView.as_view(), name='create-event'),
]
Example #14
0
File: urls.py Project: Gvourr/Demo
from django.conf.urls import patterns, url

from events.views import EventDetailView

urlpatterns = patterns('events.views',
    url(r'^$', 'upcoming'),
    url(r'^archive/$', 'archive'),
    url(r'^(?P<pk>\d+)/$',  EventDetailView.as_view(template_name='events/detail.html'), {}, "event"),
    url(r'^ics$', 'ics'),
    url(r'^ics_filter$', 'ics_filter'),
)