Skip to content

Commit

Permalink
Django 1.5 upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
smajda committed Oct 12, 2013
1 parent 6787acb commit 03e18ab
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 11 deletions.
17 changes: 9 additions & 8 deletions docs/local_development.rst
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
@@ -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
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
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

0 comments on commit 03e18ab

Please sign in to comment.