@@ -10,8 +10,6 @@ Running PythonKC.com Locally
1010
1111#. ``pip install -r requirements/project.txt ``
1212
13- #. ``python manage.py syncdb ``
14-
1513#. Create ``local_settings.py ``, with::
1614
1715 DEBUG = TEMPLATE_DEBUG = True
@@ -20,23 +18,21 @@ Running PythonKC.com Locally
2018 # Otherwise, you probably want emails you test with to come to you:
2119 CONTACT_EMAIL_TO = ['me@gmail.com']
2220
23- #. Create `` private_settings.py `` with:
21+ #. Create a ` .env ` file with:
2422
25- #. Meetup.com API key::
23+ #!/bin/sh
24+ export MEETUP_API_KEY="<your meetup.com API key>"
2625
27- MEETUP_API_KEY = "<your API key for meetup.com>"
26+ # if you're not using console.EmailBackend:
27+ export EMAIL_HOST_USER="<your email user>"
28+ export EMAIL_HOST_PASSWORD="<your email password>"
2829
29- #. SMTP settings (if you kept the default email backend of SMTP above)::
30+ #. Source your .env file: `` source .env ``.
3031
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 = "*******************"
32+ #. ``python manage.py syncdb ``
3733
3834#. ``python manage.py runserver ``
3935
4036#. Profit!!!
4137
42- Note that both ``local_settings.py `` and ``private_settings.py `` are in our ``.gitignore ``, so you don't commit what you do there.
38+ Note that both ``local_settings.py `` and ``.env `` are in our ``.gitignore ``, so you don't commit what you do there.
0 commit comments