Skip to content

Commit 3521af7

Browse files
Merge pull request #286 from Kdoggg666/codeOfConduct
Add Code of Conduct
2 parents ab4b7c0 + 3774100 commit 3521af7

7 files changed

Lines changed: 62 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: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,3 +146,10 @@ def test_404(request):
146146
response = render(request, '404.html')
147147
response.status_code = 404
148148
return response
149+
150+
151+
def codeofconduct(request):
152+
"""
153+
A view to show the hackathon code of conduct.
154+
"""
155+
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/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: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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
10+
participants.
11+
It's important to keep open communication with your team throughout the hackathon, as suddenly dropping off
12+
without letting them know can impact their progress and motivation, and may lead to incomplete tasks and
13+
disorganization. By participating in this event, you agree to follow this code of conduct:</p>
14+
15+
<ol class="text-left">
16+
<li>Be respectful and inclusive towards all other participants, facilitators, Hackteam, Staff or anyone else
17+
involved in the hackathon. Discriminatory language or behavior of any kind is not allowed.
18+
</li>
19+
<li>Only register if you can commit a minimum of 3 hours a day.</li>
20+
<li>Keep in contact with your team. All project discussions should take place within the dedicated team
21+
Slack Channel. This way, our Hackathon Facilitators and Staff can stay up to date on your progress and
22+
offer support when needed. We want to make sure that everyone on the team is aware of all goings-on.
23+
</li>
24+
<li>We want to ensure that everyone on the team has a chance to participate and add their unique skills and
25+
perspectives. Let's work together to make sure everyone is included and valued. More experienced team
26+
members should keep in mind that some members may be less experienced, and may need extra support and
27+
guidance. By offering more time and assistance to those who may need it, we can ensure that everyone has
28+
an opportunity to grow their skills and contribute to the project. Remember, this is a team effort and
29+
we want to work together to achieve our goals rather than rushing ahead.
30+
</li>
31+
<li>If you need to drop off from the event before it ends, you must inform your team and the team
32+
facilitator. If you drop off without informing your team, you will be ineligible to participate in the
33+
next hackathon.
34+
</li>
35+
<li>If you witness or experience any behavior that violates this code of conduct, please report it
36+
immediately to your facilitator, the HackTeam or the Code Institute Community Team.</li>
37+
38+
</ol>
39+
<p>By participating in a Code Institute Hackathon, you agree to abide by this code of conduct and any decisions
40+
made by Code Institute regarding violations of it.</p>
41+
</div>
42+
</div>
43+
44+
{% endblock %}

templates/includes/footer.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
<div class="col-sm-6 col-md-3">
44
<h4>Policies</h4>
55
<ul>
6+
<li>
7+
<a href="{% url 'codeofconduct' %}" target="_blank">Code of Conduct</a>
8+
</li>
69
<li>
710
<a href="http://bit.ly/Slack_Code_Conduct_CI" target="_blank">Community Guidelines</a>
811
</li>

templates/includes/navbar.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
<div class="dropdown-menu" aria-labelledby="navbarResources">
4343
<a class="dropdown-item" href="{% url 'faq' %}">FAQs</a>
4444
<a class="dropdown-item" href="{% url 'resources' %}">Useful Resources</a>
45+
<a class="dropdown-item" href="{% url 'codeofconduct' %}">Code of Conduct</a>
4546
</div>
4647
</li>
4748
{% else %}

0 commit comments

Comments
 (0)