Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions docs/local_development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@ Running PythonKC.com Locally
# Otherwise, you probably want emails you test with to come to you:
CONTACT_EMAIL_TO = ['me@gmail.com']

#. Create a `.env` file with:

#!/bin/sh
export MEETUP_API_KEY="<your meetup.com API key>"

# if you're not using console.EmailBackend:
export EMAIL_HOST_USER="<your email user>"
export EMAIL_HOST_PASSWORD="<your email password>"
#. Create a `.env` file with::

#!/bin/sh
export MEETUP_API_KEY="<your meetup.com API key>"
export DJANGO_SECRET_KEY="<your secret key>"

# if you're not using console.EmailBackend:
export EMAIL_HOST_USER="<your email user>"
export EMAIL_HOST_PASSWORD="<your email password>"

#. Source your .env file: ``source .env``.

Expand Down
11 changes: 9 additions & 2 deletions pythonkc_site/requirements/project.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Django==1.3.6
South==0.7.3
distribute==0.7.3
django-redis-cache==0.9.2
gondor==1.0.5
mimeparse==0.1.3
pip-tools==0.3.4
psycopg2==2.4.2
South==0.7.3
python-dateutil==1.5
pythonkc-meetups==0.1.0
django-redis-cache==0.9.2
redis==2.8.0
requests==0.7.5
wsgiref==0.1.2
2 changes: 2 additions & 0 deletions pythonkc_site/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

MANAGERS = ADMINS

SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY')

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
Expand Down
2 changes: 1 addition & 1 deletion pythonkc_site/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ <h1>FOLLOW US</h1>
</section>
<section>
<div id="contact-form">
<form action="{% url home %}" method="post"
<form action="{% url 'home' %}" method="post"
enctype="application/x-www-form-urlencoded"
class="contact-form">
{% csrf_token %}
Expand Down