Event API & User Event view

This commit is contained in:
Martin Bauer
2013-06-18 22:49:01 +02:00
parent 111fce5d91
commit 0ce7dc2f25
9 changed files with 309 additions and 4 deletions

Binary file not shown.

View File

@@ -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

View File

@@ -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 ),
)