Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 1.18 KB

File metadata and controls

39 lines (25 loc) · 1.18 KB

Running PythonKC.com Locally

  1. git clone git://github.com/pythonkc/pythonkc.com.git

  2. cd pythonkc.com/pythonkc_site

  3. mkvirtualenv --no-site-packages --distribute pykc (you're using virtualenv, right? :))

  4. pip install -r requirements/project.txt

  5. Create local_settings.py, with:

    DEBUG = TEMPLATE_DEBUG = True
    # OPTIONAL  If you don't want to send emails while running locally:
    EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
    # Otherwise, you probably want emails you test with to come to you:
    CONTACT_EMAIL_TO = ['[email protected]']
    
  6. 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>"
    
  7. Source your .env file: source .env.

  8. python manage.py syncdb

  9. python manage.py runserver

  10. Profit!!!

Note that both local_settings.py and .env are in our .gitignore, so you don't commit what you do there.