From b75a5dd2e2ee96d1adf09d44ab4fdfafe0dfe846 Mon Sep 17 00:00:00 2001 From: Stefan Dworschak Date: Fri, 29 Jan 2021 10:42:04 +0000 Subject: [PATCH 1/2] Adding faqs and support email --- home/views.py | 4 +- main/settings.py | 1 + templates/faq.html | 132 ++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 135 insertions(+), 2 deletions(-) diff --git a/home/views.py b/home/views.py index 54e1d0dd..20077739 100644 --- a/home/views.py +++ b/home/views.py @@ -1,5 +1,6 @@ from django.contrib import messages from django.core.paginator import Paginator +from django.conf import settings from django.shortcuts import render, redirect, reverse from hackathon.models import Hackathon @@ -37,8 +38,9 @@ def home(request): def faq(request): """ A view to return the FAQ page """ + support_email = settings.SUPPORT_EMAIL - return render(request, "faq.html") + return render(request, "faq.html", {'support_email': support_email}) def judging_criteria(request): diff --git a/main/settings.py b/main/settings.py index 03978d4e..676a0b23 100644 --- a/main/settings.py +++ b/main/settings.py @@ -166,3 +166,4 @@ # Number of showcases displayed in the carousel SHOWCASE_SPOTLIGHT_NUMBER = int(os.environ.get('SHOWCASE_SPOTLIGHT_NUMBER') or 0) +SUPPORT_EMAIL = os.environ.get("SUPPORT_EMAIL") diff --git a/templates/faq.html b/templates/faq.html index a0d46db2..c3dc9a3c 100644 --- a/templates/faq.html +++ b/templates/faq.html @@ -2,7 +2,137 @@ {% load static %} {% block content %} -

FAQ

+

Frequently Asked Questions

+

+ 1. WHAT IS A HACKATHON? +

+

A hackathon (also known as a hack day, hackfest, datathon or codefest) is a + design sprint-like event; often, in which computer programmers and others + involved in software development, including UX/graphic designers, project + managers, subject matter experts, and others collaborate intensively on + software projects. +

+

+ The goal of a hackathon is to create functioning software or hardware prototype + by the end of the event which usually lasts . Hackathons tend to have a specific + focus, which can include the programming language used, the operating system, + an application, an API, or the subject and the demographic group of the programmers. +

+

+ (Wikipedia, 2021) +

+

+ 2. WHO SHOULD JOIN? +

+

+ Any interested student, alumni, staff or partner can join a hackathon.

+

+ Participating in a hackathon is a great way to learn more about how it is + to work in a fast paced development team. You will be using version control + to share code with your team members, troubleshoot code and create a project + towards very challenging deadlines. +

+

+ We encourage participation, but would only suggest to join if you are + currently ahead of your schedule and do not have any project deadline + close to the hackathon date. +

+

+ 3. WHAT DO I NEED? +

+ +

+ 4. HOW DO I FORM OR JOIN A TEAM AND WHY? +

+

+ You need a team to participate in a hackathon, otherwise the workload to + get everything done within time will be too great and more importantly you + will not get the wanted learning outcomes. Learning about what it means to + work as part of a development team is the main benefit of participating in + a team. +

+

+ In most cases participants sign up on their own, so teams are semi-randomly + assigned to get an even mix of experience in each of the teams. +

+

+ 5. I HAVE A TEAM ALREADY, HOW CAN I MAKE SURE WE END UP TOGETHER +

+

+ If you want to join a hackathon with a preformed team, make sure that each + of your team members joins individually and send an email to + {% if not support_email %}Student Care{% else %} + {{support_email}}{% endif %} at + least a few days before the hackathon. +

+

+ 6. ARE THERE PRIZES FOR THE HACK CATEGORIES? +

+

+ Prizes depend on the individual hackathons and sponsorship availability. +

+

+ 7. WHO JUDGES THE WINNERS? +

+

+ The winning team will be decided by a jury made up of Code Institute staff + and depending on the hackathon industry experts and/or partners of Code + Institute. +

+

+ 8. WHAT IS THE EVALUATION CRITERIA FOR THE SELECTION OF THE WINNING TEAM? +

+

+ The jury will analyze and evaluate all works submitted by each team + according to the following evaluation criteria: +

+ +

+ (this can vary depending on the hackathon, but will be visible on the + hackathon itself) +

+

+ 9. WHAT IS THE THEME FOR THE HACKATHON? +

+

+ Hackathon themes vary depending on the hackathon itself. The theme will be + visible on the hackathon signup page or on the hackathon page itself. +

+ {% endblock %} From 287e2fa657df54b45d795a20a23a8d140b07ba2b Mon Sep 17 00:00:00 2001 From: Stefan Dworschak Date: Fri, 29 Jan 2021 10:43:36 +0000 Subject: [PATCH 2/2] Adding entry in .env_sample --- .env_sample | 1 + 1 file changed, 1 insertion(+) diff --git a/.env_sample b/.env_sample index 89fa2b3c..b759b073 100644 --- a/.env_sample +++ b/.env_sample @@ -2,3 +2,4 @@ DEVELOPMENT=1 SECRET_KEY="your_secret_key_here" SITE_NAME="localhost" SLACK_ENABLED=True +SUPPORT_EMAIL = 'support@example.com'