Maker Network: Difference between revisions

From Pumping Station One
Tsaylor (talk | contribs)
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…'
 
Tsaylor (talk | contribs)
No edit summary
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>

Revision as of 14:04, 1 October 2011

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