Skip to content
Snippets Groups Projects
Unverified Commit e5418b04 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

Upgrade requirements up to the latest major versions

- Django==1.11.29
- django-cors-headers==3.2.1
- django-oidc-provider==0.7.0
- django-tinymce==2.8.0
- django-versatileimagefield==1.11
- djangorestframework==3.11.0
- drf-nested-routers==0.91
- Pillow==4.3.0
- python-dateutil==2.8.1
- PyYAML==3.13

Later, upgrade
- Django up to 2.2.11, the current LTS version
- django-versatileimagefield up to 2.0, the current stable version
- Pillow up to 7.0.0, the current stable version
- PyYAML up to 5.3.1, the current stable version
parent 687fffb2
No related branches found
No related tags found
1 merge request!10Upgrade Django to current LTS version
......@@ -30,27 +30,27 @@ router.register(r'languages', APILanguageViewSet)
show_router = routers.NestedSimpleRouter(router, r'shows', lookup='show')
# /shows/1/schedules
show_router.register(r'schedules', APIScheduleViewSet, base_name='show-schedules')
show_router.register(r'schedules', APIScheduleViewSet, basename='show-schedules')
# /shows/1/notes
show_router.register(r'notes', APINoteViewSet, base_name='show-notes')
show_router.register(r'notes', APINoteViewSet, basename='show-notes')
# /shows/1/timeslots
show_router.register(r'timeslots', APITimeSlotViewSet, base_name='show-timeslots')
show_router.register(r'timeslots', APITimeSlotViewSet, basename='show-timeslots')
show_timeslot_router = routers.NestedSimpleRouter(show_router, r'timeslots', lookup='timeslot')
# /shows/1/timeslots/1/note/
show_timeslot_router.register(r'note', APINoteViewSet, base_name='show-timeslots-note')
show_timeslot_router.register(r'note', APINoteViewSet, basename='show-timeslots-note')
# /shows/1/schedules
schedule_router = routers.NestedSimpleRouter(show_router, r'schedules', lookup='schedule')
# /shows/1/schedules/1/timeslots
schedule_router.register(r'timeslots', APITimeSlotViewSet, base_name='schedule-timeslots')
schedule_router.register(r'timeslots', APITimeSlotViewSet, basename='schedule-timeslots')
timeslot_router = routers.NestedSimpleRouter(schedule_router, r'timeslots', lookup='timeslot')
# /shows/1/schedules/1/timeslots/1/note
timeslot_router.register(r'note', APINoteViewSet, base_name='timeslots-note')
timeslot_router.register(r'note', APINoteViewSet, basename='timeslots-note')
urlpatterns = [
......@@ -72,4 +72,4 @@ urlpatterns = [
]
if settings.DEBUG:
urlpatterns.append(url(r'^site_media/(?P<path>.*)$', serve, {'document_root': settings.MEDIA_ROOT}))
\ No newline at end of file
urlpatterns.append(url(r'^site_media/(?P<path>.*)$', serve, {'document_root': settings.MEDIA_ROOT}))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment