ENV LC_ALL fr_FR.UTF-8
RUN mkdir /srv/app
-RUN mkdir /srv/src
+RUN mkdir /srv/lib
WORKDIR /srv/app
ADD requirements.txt /srv/app/
url(r'^artists/(?P<slug>.*)/$', ArtistDetailView.as_view(), name="festival-artist-detail"),
url(r'^videos/$', VideoListView.as_view(), name="festival-video-list"),
url(r'^videos/(?P<slug>.*)/$', VideoDetailView.as_view(), name="festival-video-detail"),
+ url(r'^locations/$', LocationListView.as_view(), name="festival-location-list"),
]
from django.shortcuts import get_object_or_404
from festival.models import *
+from mezzanine_agenda.models import EventLocation
class SlugMixin(object):
def get_context_data(self, **kwargs):
context = super(VideoDetailView, self).get_context_data(**kwargs)
return context
-
+
+
+class LocationListView(ListView):
+
+ model = EventLocation
+ template_name='agenda/event_location_list.html'
+
+ def get_context_data(self, **kwargs):
+ context = super(LocationListView, self).get_context_data(**kwargs)
+ return context
-e git+https://github.com/yomguy/mezzanine-agenda.git#egg=mezzanine-agenda-0.2.2
-e git+https://github.com/stephenmcd/mezzanine.git#egg=mezzanine-4.1-dev
https://forge.ircam.fr/p/django-eve/source/download/dev/
-