From 3a52af33a263b7a647eaef02f823b7071a38e355 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Mon, 10 Aug 2020 15:36:41 +0200 Subject: [PATCH] :beers: Make coffee, closes #54 --- note_kfet/settings/base.py | 10 ++++++---- note_kfet/urls.py | 3 +++ requirements/base.txt | 1 + 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/note_kfet/settings/base.py b/note_kfet/settings/base.py index 79c4f9ef..2e0ff8f5 100644 --- a/note_kfet/settings/base.py +++ b/note_kfet/settings/base.py @@ -27,13 +27,14 @@ ALLOWED_HOSTS = [ INSTALLED_APPS = [ # External apps + 'bootstrap_datepicker_plus', + 'colorfield', + 'crispy_forms', + 'django_htcpcp_tea', + 'django_tables2', 'mailer', 'phonenumber_field', 'polymorphic', - 'crispy_forms', - 'django_tables2', - 'bootstrap_datepicker_plus', - 'colorfield', # Django contrib 'django.contrib.admin', @@ -74,6 +75,7 @@ MIDDLEWARE = [ 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.contrib.sites.middleware.CurrentSiteMiddleware', + 'django_htcpcp_tea.middleware.HTCPCPTeaMiddleware', 'note_kfet.middlewares.TurbolinksMiddleware', ] diff --git a/note_kfet/urls.py b/note_kfet/urls.py index 24ab075d..62943e4d 100644 --- a/note_kfet/urls.py +++ b/note_kfet/urls.py @@ -31,6 +31,9 @@ urlpatterns = [ path('accounts/', include('django.contrib.auth.urls')), path('api/', include('api.urls')), path('permission/', include('permission.urls')), + + # Make coffee + path('coffee/', include('django_htcpcp_tea.urls')), ] urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) diff --git a/requirements/base.txt b/requirements/base.txt index b614fdae..ba380f73 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -7,6 +7,7 @@ django-allauth==0.39.1 django-crispy-forms==1.7.2 django-extensions==2.1.9 django-filter==2.2.0 +django-htcpcp-tea==0.3.1 django-mailer==2.0.1 django-phonenumber-field==4.0.0 django-polymorphic==2.0.3