Skip to content

Commit

Permalink
Automated number of people in hunt info
Browse files Browse the repository at this point in the history
  • Loading branch information
dlareau committed Dec 26, 2017
1 parent bdd5822 commit 8bd7de4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions huntserver/templates/hunt_info.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{% extends "info_base.html" %}
{% load humanize %}
{% block title %}Puzzlehunt CMU{% endblock title %}

{% block includes %}
Expand Down Expand Up @@ -27,13 +28,13 @@ <h2>Sounds fun! How does my team win?</h2>
complete the puzzles the fastest.
</p>
<h2>How do I register?</h2>
<p>Register your team of six (or fewer if you want) <a href="{% url 'huntserver:registration' %}">here!</a>
<p>Register your team of {{curr_hunt.team_size|apnumber}} (or fewer if you want) <a href="{% url 'huntserver:registration' %}">here!</a>
</p>

<h2>What should I bring?</h2>
<p>
<ul>
<li>A team of no more than six people. Humans only, please. Robots are discouraged; they mess up the sensors.</li>
<li>A team of no more than {{curr_hunt.team_size|apnumber}} people. Humans only, please. Robots are discouraged; they mess up the sensors.</li>
<li>Laptops. All of our puzzles will be online. </li>
<li>Scissors. These will be helpful. </li>

Expand Down
2 changes: 1 addition & 1 deletion puzzlehunt_server/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def __contains__(self, key):
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.humanize',
'huntserver',
'debug_toolbar',
)
Expand Down Expand Up @@ -145,7 +146,6 @@ def __contains__(self, key):
#EMAIL_BACKEND = 'django.core.mail.backends.filebased.EmailBackend'
#EMAIL_FILE_PATH = '/tmp/test_folder'


EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587

0 comments on commit 8bd7de4

Please sign in to comment.