|
| 1 | +============================ |
| 2 | +Running PythonKC.com Locally |
| 3 | +============================ |
| 4 | + |
| 5 | +#. ``git clone git://github.com/pythonkc/pythonkc.com.git`` |
| 6 | + |
| 7 | +#. ``cd pythonkc.com/pythonkc_site`` |
| 8 | + |
| 9 | +#. ``mkvirtualenv --no-site-packages --distribute pykc`` (you're using virtualenv, right? :)) |
| 10 | + |
| 11 | +#. ``pip install -r requirements/project.txt`` |
| 12 | + |
| 13 | +#. ``python manage.py syncdb`` |
| 14 | + |
| 15 | +#. Create ``local_settings.py``, with:: |
| 16 | + |
| 17 | + DEBUG = TEMPLATE_DEBUG = True |
| 18 | + # OPTIONAL If you don't want to send emails while running locally: |
| 19 | + EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' |
| 20 | + # Otherwise, you probably want emails you test with to come to you: |
| 21 | + CONTACT_EMAIL_TO = ['me@gmail.com'] |
| 22 | + |
| 23 | +#. Create ``private_settings.py`` with: |
| 24 | + |
| 25 | + #. Meetup.com API key:: |
| 26 | + |
| 27 | + MEETUP_API_KEY = "<your API key for meetup.com>" |
| 28 | + |
| 29 | + #. SMTP settings (if you kept the default email backend of SMTP above):: |
| 30 | + |
| 31 | + # For example.... |
| 32 | + EMAIL_HOST = "smtp.gmail.com" |
| 33 | + EMAIL_PORT = 587 |
| 34 | + EMAIL_USE_TLS = True |
| 35 | + EMAIL_HOST_USER = "contact@pythonkc.com" |
| 36 | + EMAIL_HOST_PASSWORD = "*******************" |
| 37 | + |
| 38 | +#. ``python manage.py runserver`` |
| 39 | + |
| 40 | +#. Profit!!! |
| 41 | + |
| 42 | +Note that both ``local_settings.py`` and ``private_settings.py`` are in our ``.gitignore``, so you don't commit what you do there. |
0 commit comments