From 03e18abcfd53255e461f3583f9df9a76c87b803e Mon Sep 17 00:00:00 2001 From: Jon Smajda Date: Sat, 12 Oct 2013 11:10:59 -0500 Subject: [PATCH] Django 1.5 upgrade --- docs/local_development.rst | 17 +++++++++-------- pythonkc_site/requirements/project.txt | 11 +++++++++-- pythonkc_site/settings.py | 2 ++ pythonkc_site/templates/index.html | 2 +- 4 files changed, 21 insertions(+), 11 deletions(-) diff --git a/docs/local_development.rst b/docs/local_development.rst index ef3d9aa..6b484bc 100644 --- a/docs/local_development.rst +++ b/docs/local_development.rst @@ -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="" - - # if you're not using console.EmailBackend: - export EMAIL_HOST_USER="" - export EMAIL_HOST_PASSWORD="" +#. Create a `.env` file with:: + + #!/bin/sh + export MEETUP_API_KEY="" + export DJANGO_SECRET_KEY="" + + # if you're not using console.EmailBackend: + export EMAIL_HOST_USER="" + export EMAIL_HOST_PASSWORD="" #. Source your .env file: ``source .env``. diff --git a/pythonkc_site/requirements/project.txt b/pythonkc_site/requirements/project.txt index 4511f38..0ccce0c 100644 --- a/pythonkc_site/requirements/project.txt +++ b/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 diff --git a/pythonkc_site/settings.py b/pythonkc_site/settings.py index 44833fc..e2dbc38 100644 --- a/pythonkc_site/settings.py +++ b/pythonkc_site/settings.py @@ -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'. diff --git a/pythonkc_site/templates/index.html b/pythonkc_site/templates/index.html index b9319ad..55d3939 100644 --- a/pythonkc_site/templates/index.html +++ b/pythonkc_site/templates/index.html @@ -142,7 +142,7 @@

FOLLOW US

-
{% csrf_token %}