Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.27 KB

File metadata and controls

42 lines (27 loc) · 1.27 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. python manage.py syncdb

  6. 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]']
    
  7. Create private_settings.py with:

    1. Meetup.com API key:

      MEETUP_API_KEY = "<your API key for meetup.com>"
      
    2. SMTP settings (if you kept the default email backend of SMTP above):

      # For example....
      EMAIL_HOST = "smtp.gmail.com"
      EMAIL_PORT = 587
      EMAIL_USE_TLS = True
      EMAIL_HOST_USER = "[email protected]"
      EMAIL_HOST_PASSWORD = "*******************"
      
  8. python manage.py runserver

  9. Profit!!!

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