Maker Network: Difference between revisions
Created page with ' == developer quickstart == install through your package manager or with easy_install: * virtualenv * virtualenvwrapper * pip create a virtualenv for the maker network <code><n…' |
m Robot: Cosmetic changes |
||
| (One intermediate revision by one other user not shown) | |||
| 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. | 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> | ||
Latest revision as of 18:15, 17 March 2014
developer quickstart
install through your package manager or with easy_install:
- virtualenv
- virtualenvwrapper
- pip
create a virtualenv for the maker network
mkvirtualenv --no-site-packages maker-network
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
pip install -r requirements.pip
Now cd into the project directory and create your local_settings.py file. You can probably just rename the example file.
mv local_settings.py.example local_settings.py
Now you're ready to run the development server
python manage.py runserver
Useful stuff
When testing, use these email settings in local_settings.py
EMAIL_HOST = 'localhost'
EMAIL_PORT = 1025
Then run this command in a terminal window to receive any emails sent by your app
python -m smtpd -n -c DebuggingServer localhost:1025