<gh_stars>0
"""social_api URL Configuration

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

from modules.event.views import (
    core, venue, event,
    event_type, ticket,
)

urlpatterns = [
    url(r'^$', core.home, name='home'),

    url(r'^venue/$', venue.venue, name='venue'),
    url(r'^venue/(?P<venue_id>[0-9]+)/$', venue.venue_update, name='venue-update'),
    url(r'^venue/(?P<venue_id>[0-9]+)/delete/$', venue.venue_delete, name='venue-delete'),
    url(r'^venue/list/$', venue.venue_list, name='venue-list'),

    url(r'^event-type/$', event_type.event_type, name='event-type'),
    url(r'^event-type/(?P<event_type_id>[0-9]+)/$', event_type.event_type_update, name='event-type-update'),
    url(r'^event-type/(?P<event_type_id>[0-9]+)/delete/$', event_type.event_type_delete, name='event-type-delete'),
    url(r'^event-type/list/$', event_type.event_type_list, name='event-type-list'),

    url(r'^event/$', event.event, name='event'),
    url(r'^event/get/(?P<event_id>[0-9]+)/$', event.event_detail, name='event-detail'),
    url(r'^event/(?P<event_id>[0-9]+)/$', event.event_update, name='event-update'),
    url(r'^event/(?P<event_id>[0-9]+)/delete/$', event.event_delete, name='event-delete'),
    url(r'^event/list/$', event.event_list, name='event-list'),
    url(r'^event/category/(?P<event_type>\w+)/$', event.category, name='event-category'),
    url(r'^event/tweet/(?P<event_id>\w+)/$', event.tweet, name='event-tweet'),

    url(r'^ticket/(?P<event_id>[0-9]+)/$', ticket.ticket, name='ticket'),
    url(r'^ticket/(?P<event_id>[0-9]+)/(?P<ticket_id>[0-9]+)/$', ticket.ticket_update, name='ticket-update'),
    url(r'^ticket/(?P<ticket_id>[0-9]+)/delete/$', ticket.ticket_delete, name='ticket-delete'),
    url(r'^ticket/(?P<event_id>[0-9]+)/list/$', ticket.ticket_list, name='ticket-list'),

    url(r'^login/$', auth_views.login, name='login'),
    url(r'^logout/$', auth_views.logout, name='logout'),
    url(r'^signup/$', core.signup, name='signup'),
    url(r'^settings/$', core.settings, name='settings'),
    url(r'^settings/password/$', core.password, name='password'),
    url(r'^oauth/', include('social_django.urls', namespace='social')),
    url(r'^admin/', admin.site.urls),
]

# Change admin site title
admin.site.site_header = _("Event Management")
admin.site.site_title = _("Admin Panel")

"""social_api URL Configuration

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

from modules.event.views import (
    core, venue, event,
    event_type, ticket,
)

urlpatterns = [
    url(r'^$', core.home, name='home'),

    url(r'^venue/$', venue.venue, name='venue'),
    url(r'^venue/(?P<venue_id>[0-9]+)/$', venue.venue_update, name='venue-update'),
    url(r'^venue/(?P<venue_id>[0-9]+)/delete/$', venue.venue_delete, name='venue-delete'),
    url(r'^venue/list/$', venue.venue_list, name='venue-list'),

    url(r'^event-type/$', event_type.event_type, name='event-type'),
    url(r'^event-type/(?P<event_type_id>[0-9]+)/$', event_type.event_type_update, name='event-type-update'),
    url(r'^event-type/(?P<event_type_id>[0-9]+)/delete/$', event_type.event_type_delete, name='event-type-delete'),
    url(r'^event-type/list/$', event_type.event_type_list, name='event-type-list'),

    url(r'^event/$', event.event, name='event'),
    url(r'^event/get/(?P<event_id>[0-9]+)/$', event.event_detail, name='event-detail'),
    url(r'^event/(?P<event_id>[0-9]+)/$', event.event_update, name='event-update'),
    url(r'^event/(?P<event_id>[0-9]+)/delete/$', event.event_delete, name='event-delete'),
    url(r'^event/list/$', event.event_list, name='event-list'),
    url(r'^event/category/(?P<event_type>\w+)/$', event.category, name='event-category'),
    url(r'^event/tweet/(?P<event_id>\w+)/$', event.tweet, name='event-tweet'),

    url(r'^ticket/(?P<event_id>[0-9]+)/$', ticket.ticket, name='ticket'),
    url(r'^ticket/(?P<event_id>[0-9]+)/(?P<ticket_id>[0-9]+)/$', ticket.ticket_update, name='ticket-update'),
    url(r'^ticket/(?P<ticket_id>[0-9]+)/delete/$', ticket.ticket_delete, name='ticket-delete'),
    url(r'^ticket/(?P<event_id>[0-9]+)/list/$', ticket.ticket_list, name='ticket-list'),

    url(r'^login/$', auth_views.login, name='login'),
    url(r'^logout/$', auth_views.logout, name='logout'),
    url(r'^signup/$', core.signup, name='signup'),
    url(r'^settings/$', core.settings, name='settings'),
    url(r'^settings/password/$', core.password, name='password'),
    url(r'^oauth/', include('social_django.urls', namespace='social')),
    url(r'^admin/', admin.site.urls),
]

# Change admin site title
admin.site.site_header = _("Event Management")
admin.site.site_title = _("Admin Panel")
social_api URL Configuration  The `urlpatterns` list routes URLs to views. For more information please see:     https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views     1. Add an import:  from my_app import views     2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home') Class-based views     1. Add an import:  from other_app.views import Home     2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home') Including another URLconf     1. Import the include() function: from django.conf.urls import url, include     2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls')) # Change admin site title