Esempio n. 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")
              
              
              
              )
Esempio n. 2
0
from django.contrib import admin
from django.contrib.auth.views import LoginView, LogoutView

from events.views import EventListView, EventCreateView
from mandir.views import (RecordListView, EntryCreateView, ajax_single_account,
                          contact, AboutView, payment_complete, HomeView,
                          ReturnView, RaiseBoliCreateView)

admin.site.site_header = 'PunyaUday Fund'
admin.site.site_title = 'PunyaUday Fund admin'

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^accounts/login/$', LoginView.as_view(template_name='login.html'), name="login"),
    url(r'^accounts/logout/$', LogoutView.as_view(template_name='base.html'), name="logout"),
    url(r'^$', HomeView.as_view(), name='home'),
    url(r'^search/$', RecordListView.as_view(), name='record-list'),
    url(r'^add/$', EntryCreateView.as_view(), name='add-record'),
    url(r'^raise-request/$', RaiseBoliCreateView.as_view(), name='raise-request'),
    url(r'^get/description/$', ajax_single_account, name='des-search'),
    url(r'^about-us/$', AboutView.as_view(), name='about'),
    url(r'^return/$', ReturnView.as_view(), name='return'),
    url(r'^contact-us/$', contact, name='contact-us'),
    url(r'^payment/done/$', payment_complete, name='payment-done'),
    url(r'^events/(?P<event_id>\d+)/$', EventListView.as_view(), name='event'),
    url(r'^event/registration/$', EventCreateView.as_view(), name='event-registration'),
    url('captcha/', include('captcha.urls')),
] + static.static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) + \
              static.static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
Esempio n. 3
0
# -*- coding: utf-8 -*-

from django.conf.urls import url
from events.views import (
    EventListView, EventCreateView, EventUpdateView, EventDeleteView, ActivityListView, ActivityCreateView, ActivityUpdateView, ActivityDeleteView
    )

urlpatterns = [
    url(r'^$', EventListView.as_view(), name='list'),
    url(r'^create/$', EventCreateView.as_view(), name='create'),
    url(r'^(?P<pk>\d+)/update/$', EventUpdateView.as_view(), name='update'),
    url(r'^(?P<pk>\d+)/delete/$', EventDeleteView.as_view(), name='delete'),
    url(r'^activity/(?P<pk>\d+)/$', ActivityListView.as_view(), name='list_activity'),
    url(r'^activity/create/(?P<pk>\d+)/$', ActivityCreateView.as_view(), name='create_activity'),
    url(r'^activity/update/(?P<pk>\d+)/$', ActivityUpdateView.as_view(), name='update_activity'),
    url(r'^activity/delete/(?P<pk>\d+)/$', ActivityDeleteView.as_view(), name='delete_activity'),
    #url(r'^(?P<pk>\d+)/activity/(?A<pk>\d+)/$', ActivityListView.as_view(), name='list_activity'),
    #url(r'^(?P<pk>\d+)/activity/(?A<pk>\d+)/create/$', ActivityCreateView.as_view(), name='create_activity'),
    #url(r'^(?P<pk>\d+)/activity/(?A<pk>\d+)/update/$', ActivityUpdateView.as_view(), name='update_activity'),
    #url(r'^(?P<pk>\d+)/activity/(?A<pk>\d+)/delete/$', ActivityDeleteView.as_view(), name='delete_activity'),
]
Esempio n. 4
0
from django.urls import path
from events.views import EventListView, EventView, JoinView, CreateEventView

urlpatterns = [
    path('', EventListView.as_view(), name='event_list_view'),
    path('<int:pk>/', EventView.as_view(), name='event_view'),
    path('<int:event_id>/join/', JoinView.as_view(), name='join_view'),
    path('create/', CreateEventView.as_view(), name='create_event_view'),
]
Esempio n. 5
0
    EventDeleteView,
    EventDetailView,
    EventListView,
    EventUpdateView,
    GuestCreateView,
    GuestDeleteView,
    GuestDetailView,
    GuestUpdateView,
    StaffDashboardView,    
)


urlpatterns = patterns(
    '',
    url(r'^$',
        EventListView.as_view(),
        name='event_list'),

    url(r'^create/$',
        EventCreateView.as_view(),
        name='event_create'),

    url(r'^create-from-template/(?P<pk>\d+)/$',
        EventCreateFromTemplateView.as_view(),
        name='event_create_from_template'),

    url(r'^event-staff/$',
        StaffDashboardView.as_view(),
        name='event_staff'),

    url(r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/(?P<slug>[-\w]+)/'
Esempio n. 6
0
from django.contrib.auth.decorators import login_required
from django.urls import path

from events.views import create, give_gift, edit_event, EventListView, activate_event, event_view

urlpatterns = [
    path('new/', create, name="create_event"),
    path('', login_required(EventListView.as_view()), name="view_all_events"),
    path('<int:pk>/', event_view, name="view_event"),
    path('<int:pk>/give/', give_gift, name="give_gift"),
    path('<int:pk>/edit/', edit_event, name="edit_event"),
    path('<int:pk>/activate/', activate_event, name="activate_event"),
]
Esempio n. 7
0
from datetime import datetime

from django.conf.urls import patterns, include, url
from django.contrib import admin

from events.views import EventListView

admin.autodiscover()

urlpatterns = patterns('',
    url(r'^$', EventListView.as_view(), name='home'),
    # url(r'^hackeragenda/', include('hackeragenda.foo.urls')),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^events/', include('events.urls')),
)
Esempio n. 8
0
File: urls.py Progetto: tommp/Bootie
from django.conf.urls import include, url, patterns
from django.contrib import admin
from django.views.decorators.http import require_POST
from django.contrib.auth.decorators import login_required


from events.views import EventView, EventListView, EventRegisterView, AttendeesView, EventUnRegisterView, DayEventsView

urlpatterns = [
    url(r'^(?P<page>[0-9]+)/$', EventListView.as_view()),
    url(r'^(?P<pk>\d+)/(?P<slug>[^/]+?)/$', EventView.as_view(), name='event_details'),
    url(r'^(?P<pk>\d+)/(?P<slug>[^/]+?)/register/$', login_required(EventRegisterView.as_view()), name='event_register_view'),
    url(r'^(?P<pk>\d+)/(?P<slug>[^/]+?)/unregister/$', login_required(EventUnRegisterView.as_view()), name='event_unregister_view'),
    url(r'^(?P<pk>\d+)/(?P<slug>[^/]+?)/attendees/$', login_required(AttendeesView.as_view()), name='attendees_view'),
    url(r'^dayevents/(?P<year>[0-9]+)/(?P<month>[0-9]+)/(?P<day>[0-9]+)/$', DayEventsView.as_view(), name='day_events'),
]

Esempio n. 9
0
from django.conf.urls import url
from events.views import EventListView

urlpatterns = (
    url(r'^$', EventListView.as_view(), name='index'),
)
Esempio n. 10
0
     url(r'create/$','latech.views.asana_create'),

     # Reset the ID sequences for companylinks
     url(r'reset/$','latech.views.reset'),
     
     #django comment frameworks
     url(r'^comments/', include('django.contrib.comments.urls')),

     #news related functions
     url(r'^news/new/$', 'news.views.news_create'),
     url(r'^news/(?P<id>[\d]+)/$', 'news.views.news_view'),
     url(r'^news/(?P<id>[\d]+)/update/$', 'news.views.news_update'),
     url(r'^news/(?P<id>[\d]+)/delete$', 'news.views.news_delete'),

     # Events related URLs
     url(r'events/$', EventListView.as_view()),
     url(r'events/new$', EventNewView.as_view()),


     # URLs for industries and verticals
     url(r'^industry/(?P<slug>[\w-]+)/$', 'latech.views.categories'),
     url(r'^vertical/(?P<slug>[\w-]+)/$', 'latech.views.verticals'),

     

#     url(r'^advance_search/', 'latech.views.advance_search'),
#     url(r'^$', "latech.search.advance_contact_search"),
#     url(r'^search/companies$', "latech.search.advance_company_search"),

     #This is the url for Ajax requests for taggit url(r'^tags',
     #"latech.views.tagitt"),
Esempio n. 11
0
from django.contrib import admin
from django.urls import path, include
from django.views import generic
from events.views import (EventListView, home, event_detail,
                          AddEventCreateView, UpdateEventView, Login,
                          register_user, contactus, logout_user)
from events.api.views import EventViewSet, LoginView, SignUpView, UserProfileApiView
from rest_framework.routers import DefaultRouter
router = DefaultRouter()
router.register(r'api-event', EventViewSet, basename='event')

urlpatterns = [
    path('home/', home),
    path('contactus/', contactus),
    path('login/', Login.as_view()),
    path('logout', logout_user, name="logout"),
    path('register/', register_user, name='register'),
    path('Eventlist', EventListView.as_view(), name='Eventlist'),
    path('event_detail/<int:event_id>', event_detail, name='event_detail'),
    path('add_event', AddEventCreateView.as_view(), name='add_event'),
    path('update_event/<int:pk>',
         UpdateEventView.as_view(),
         name='update_event'),
    #path('user-profile', UserProfileView.as_view()),
    path('api-login/', LoginView.as_view()),
    path('api-signup/', SignUpView.as_view()),
    path('api-user-profile/', UserProfileApiView.as_view()),
] + router.urls
Esempio n. 12
0
"""evenpex URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path

from events.views import EventListView

urlpatterns = [
    path('', EventListView.as_view()),
    path('admin/', admin.site.urls),
]
Esempio n. 13
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'),
]
Esempio n. 14
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'),
]