Skip to content

Commit 5c8c07c

Browse files
Add code of conduct template, view and URL
1 parent ab4b7c0 commit 5c8c07c

6 files changed

Lines changed: 48 additions & 2 deletions

File tree

home/urls.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
from django.urls import path
22
from . import views
33

4+
45
urlpatterns = [
56
path("", views.home, name="home"),
67
path("faq/", views.faq, name="faq"),
8+
path('codeofconduct/', views.codeofconduct, name="codeofconduct"),
79
path("plagiarism_policy/", views.plagiarism_policy,
810
name="plagiarism_policy"),
911
path("privacy_policy/", views.privacy_policy, name="privacy_policy"),
@@ -13,4 +15,5 @@
1315
name="save_partnership_contact_form"),
1416
path("500/", views.test_500),
1517
path("404/", views.test_404),
18+
1619
]

home/views.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,3 +146,9 @@ def test_404(request):
146146
response = render(request, '404.html')
147147
response.status_code = 404
148148
return response
149+
150+
def codeofconduct(request):
151+
"""
152+
A view to show the hackathon code of conduct.
153+
"""
154+
return render(request, 'code-of-conduct.html')

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ msgpack==0.6.2
3232
mysqlclient==2.0.3
3333
numpy==1.20.1
3434
oauthlib==3.1.0
35-
packaging==20.3
35+
packaging==20.4
3636
pandas==1.2.3
3737
parso==0.8.1
3838
pep517==0.8.2
@@ -47,7 +47,7 @@ python-dateutil==2.8.1
4747
python-dotenv==0.14.0
4848
python3-openid==3.2.0
4949
pytoml==0.1.21
50-
pytz==2020.1
50+
pytz==2020.4
5151
redis==4.1.1
5252
requests==2.24.0
5353
requests-oauthlib==1.3.0

resources/urls.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77
path('delete/<int:resource_id>/', views.delete_resource,
88
name='delete_resource'),
99
path('edit/<int:resource_id>/', views.edit_resource, name='edit_resource'),
10+
1011
]

resources/views.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,5 @@ def edit_resource(request, resource_id):
7777
}
7878

7979
return render(request, template, context)
80+
81+

templates/code-of-conduct.html

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{% extends "base.html" %}
2+
{% load static %}
3+
4+
{% block content %}
5+
6+
<div class="row my-4">
7+
<div class="col-12 text-center mb-3">
8+
<h1>CODE OF CONDUCT</h1>
9+
<p class="mt-2">Here at Code Institute we want to create a safe and welcoming environment for all hackathon participants.
10+
It's important to keep open communication with your team throughout the hackathon, as suddenly dropping off
11+
without letting them know can impact their progress and motivation, and may lead to incomplete tasks and
12+
disorganization. By participating in this event, you agree to follow this code of conduct:</p>
13+
14+
<ol class="text-left">
15+
<li>Be respectful and inclusive towards all other participants, facilitators, Hackteam, Staff or anyone else involved in the hackathon. Discriminatory language or behavior of any kind is not allowed.
16+
</li>
17+
<li>Only register if you can commit a minimum of 3 hours a day.</li>
18+
<li>Keep in contact with your team. All project discussions should take place within the dedicated team Slack Channel. This way, our Hackathon Facilitators and Staff can stay up to date on your progress and offer support when needed. We want to make sure that everyone on the team is aware of all goings-on.
19+
</li>
20+
<li>We want to ensure that everyone on the team has a chance to participate and add their unique skills and perspectives. Let's work together to make sure everyone is included and valued. More experienced team members should keep in mind that some members may be less experienced, and may need extra support and guidance. By offering more time and assistance to those who may need it, we can ensure that everyone has an opportunity to grow their skills and contribute to the project. Remember, this is a team effort and we want to work together to achieve our goals rather than rushing ahead.
21+
</li>
22+
<li>If you need to drop off from the event before it ends, you must inform your team and the team facilitator. If you drop off without informing your team, you will be ineligible to participate in the next hackathon.
23+
</li>
24+
<li>If you witness or experience any behavior that violates this code of conduct, please report it immediately to your facilitator, the HackTeam or the Code Institute Community Team.</li>
25+
26+
</ol>
27+
<p>By participating in a Code Institute Hackathon, you agree to abide by this code of conduct and any decisions made by Code Institute regarding violations of it.</p>
28+
</div>
29+
</div>
30+
31+
32+
33+
34+
{% endblock %}

0 commit comments

Comments
 (0)