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 |
| </nowiki></code> | | </nowiki></code> |
| | | |
− | get the code from github (https://github.com/tsaylor/Maker-Network) and cd into the top level directory. | + | get the code from github (https://github.com/tsaylor/Maker-Network) and cd into the top level directory. |
| | | |
| 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 |
| </nowiki></code> | | </nowiki></code> |
| | | |
− | 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 30: |
Line 33: |
| | | |
| | | |
− | ==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> |