From 2d9741e7c502abcc30d8fb05dab9446c33d5e3dd Mon Sep 17 00:00:00 2001 From: OjusWiZard Date: Fri, 27 Aug 2021 19:53:36 +0530 Subject: [PATCH 1/9] added email data collection form Signed-off-by: OjusWiZard --- HTTP_200/settings.py | 1 + .../templates/admin/wifi/change_list.html | 6 +- HTTP_200/templates/bookmark.html | 4 + HTTP_200/templates/notices/list.html | 4 + HTTP_200/templates/profiles/profile.html | 4 + HTTP_200/templates/wifi/studentemailform.html | 524 ++++++++++++++++++ HTTP_200/templates/wifi/studentwifiform.html | 4 + HTTP_200/urls.py | 2 +- apps/notices/decorators.py | 10 +- apps/wifi/admin.py | 9 +- apps/wifi/forms.py | 10 +- apps/wifi/migrations/0003_emaildetail.py | 28 + apps/wifi/models.py | 27 + apps/wifi/urls.py | 11 +- apps/wifi/views.py | 84 ++- requirements/common.txt | 2 +- 16 files changed, 713 insertions(+), 17 deletions(-) create mode 100644 HTTP_200/templates/wifi/studentemailform.html create mode 100644 apps/wifi/migrations/0003_emaildetail.py diff --git a/HTTP_200/settings.py b/HTTP_200/settings.py index 4b365c14..0aa8458a 100644 --- a/HTTP_200/settings.py +++ b/HTTP_200/settings.py @@ -263,6 +263,7 @@ ] MEDIA_ROOT = os.path.join(TEMPLATE_DIR, 'media') +MEDIA_URL = '/media/' SPAGHETTI_SAUCE = { 'apps': ['auth', 'notices', 'profiles', 'notifications'], diff --git a/HTTP_200/templates/admin/wifi/change_list.html b/HTTP_200/templates/admin/wifi/change_list.html index 551ccb76..7235fffa 100644 --- a/HTTP_200/templates/admin/wifi/change_list.html +++ b/HTTP_200/templates/admin/wifi/change_list.html @@ -57,7 +57,11 @@