Line 1: |
Line 1: |
− |
| |
| == developer quickstart == | | == developer quickstart == |
| | | |
Line 8: |
Line 7: |
| | | |
| create a virtualenv for the maker network | | create a virtualenv for the maker network |
| + | |
| <code><nowiki> | | <code><nowiki> |
| mkvirtualenv --no-site-packages maker-network | | mkvirtualenv --no-site-packages maker-network |
Line 15: |
Line 15: |
| | | |
| from inside your virtualenv install the requirements using pip and the requirements file | | from inside your virtualenv install the requirements using pip and the requirements file |
| + | |
| <code><nowiki> | | <code><nowiki> |
| pip install -r requirements.pip | | pip install -r requirements.pip |
Line 20: |
Line 21: |
| | | |
| Now cd into the project directory and create your local_settings.py file. You can probably just rename the example file. | | Now cd into the project directory and create your local_settings.py file. You can probably just rename the example file. |
| + | |
| <code><nowiki> | | <code><nowiki> |
| mv local_settings.py.example local_settings.py | | mv local_settings.py.example local_settings.py |
Line 25: |
Line 27: |
| | | |
| Now you're ready to run the development server | | Now you're ready to run the development server |
| + | |
| <code><nowiki> | | <code><nowiki> |
| python manage.py runserver | | python manage.py runserver |
Line 32: |
Line 35: |
| ==Useful stuff== | | ==Useful stuff== |
| When testing, use these email settings in local_settings.py | | When testing, use these email settings in local_settings.py |
| + | |
| <code><nowiki> | | <code><nowiki> |
| EMAIL_HOST = 'localhost' | | EMAIL_HOST = 'localhost' |
Line 38: |
Line 42: |
| | | |
| Then run this command in a terminal window to receive any emails sent by your app | | Then run this command in a terminal window to receive any emails sent by your app |
| + | |
| <code><nowiki> | | <code><nowiki> |
| python -m smtpd -n -c DebuggingServer localhost:1025 | | python -m smtpd -n -c DebuggingServer localhost:1025 |
| </nowiki></code> | | </nowiki></code> |