Event API & User Event view
This commit is contained in:
Binary file not shown.
@@ -148,8 +148,16 @@ INSTALLED_APPS = (
|
||||
'sekizai',
|
||||
'intern_area',
|
||||
'website',
|
||||
'rest_framework',
|
||||
)
|
||||
|
||||
|
||||
REST_FRAMEWORK = {
|
||||
'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAdminUser',),
|
||||
'PAGINATE_BY': 10
|
||||
}
|
||||
|
||||
|
||||
CRISPY_TEMPLATE_PACK = 'bootstrap'
|
||||
|
||||
# A sample logging configuration. The only tangible logging
|
||||
|
||||
@@ -9,6 +9,10 @@ import intern_area.views
|
||||
|
||||
import website.views
|
||||
|
||||
import eventplanner.views
|
||||
|
||||
|
||||
|
||||
admin.autodiscover()
|
||||
|
||||
urlpatterns = patterns('',
|
||||
@@ -28,4 +32,8 @@ urlpatterns = patterns('',
|
||||
url(r'^website/$', website.views.home_view),
|
||||
url(r'^login/$', website.views.login_view),
|
||||
url(r'^logout/$', website.views.logout_view),
|
||||
url(r'^events/$', eventplanner.views.events_view),
|
||||
url(r'^eventParticipation/$', eventplanner.views.event_participation_list ),
|
||||
url(r'^eventParticipation/(\w+)/$', eventplanner.views.event_participation_detail ),
|
||||
url(r'^eventParticipation/(\w+)/(\d+)$', eventplanner.views.event_participation_detail ),
|
||||
)
|
||||
Reference in New Issue
Block a user