Skip to content

Instantly share code, notes, and snippets.

@vintrepid
Created October 15, 2009 04:32
Show Gist options
  • Save vintrepid/210663 to your computer and use it in GitHub Desktop.
Save vintrepid/210663 to your computer and use it in GitHub Desktop.
turbogears setup
sudo easy_install virtualenv
virtualenv tgtut --no-site-packages
cd tgtut
mkdir src
source bin/activate
easy_install sqlalchemy
easy_install sqlautocode
easy_install ipython
easy_install -f ../pypi/ ipython
sqlautocode sqlite:///moviedemo.db -o tables.py
sqlautocode -d -n -o model.py sqlite:///moviedemo.db
(tgtut)~/rnd/tgtut $ sqlautocode -d -n -o model.py sqlite:///moviedemo.db
Traceback (most recent call last):
File "/Users/vintrepid/rnd/tgtut/bin/sqlautocode", line 8, in <module>
load_entry_point('sqlautocode==0.5.5', 'console_scripts', 'sqlautocode')()
File "build/bdist.macosx-10.5-i386/egg/sqlautocode/main.py", line 21, in main
File "build/bdist.macosx-10.5-i386/egg/sqlautocode/declarative.py", line 137, in __repr__
IndexError: list index out of range
python model.py
easy_install -i http://www.turbogears.org/2.1/downloads/current/index tg.devtools
paster quickstart
cd <new project directory>
python setup.py develop -i http://www.turbogears.org/2.1/downloads/current/index
paster setup-app development.ini
nosetests
easy_install coverage
nosetests --with-coverage --cover-package=moviedemo
nosetests -v
easy_install -U tgext.admin
paster serve development.ini --reload
easy_install tw.dojo
deactivate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment