Custom Search

Sunday, February 7, 2010

Django Commands

******************************************************
john@john-pardus ~ $ cd projects/pearlsoft/mysite/
john@john-pardus mysite $ source ../paths.sh
john@john-pardus mysite $ hg init
john@john-pardus mysite $ hg stat

john@john-pardus mysite $ hg commit -m "added database settings"
john@john-pardus mysite $ hg log -l 2
john@john-pardus mysite $ hg log

john@john-pardus mysite $ hg diff

john@john-pardus mysite $ hg add

john@john-pardus mysite $ hg commit -m "added poll detail template; accept votes on detail template" templates/polls/detail.html
john@john-pardus mysite $ hg stat

john@john-pardus mysite $ hg serve -p 8090
http://localhost:8090/
******************************************************
Database
=======================
python manage.py syncdb
dropdb
createdb
syncdb
----------------
python manage.py shell <---- for django shell prompt

python manage.py sql projects <-- for view create query

python manage.py syncdb <--- For create model

python manage.py dbshell < ---- for database terminal

----------------
but you can do: python ./manage.py reset to reset the entire app
python ./manage.py reset projects

******************************************************
Start Python Server
===================
# python ./manage.py runserver 0:8000
# python manage.py runserver
********************************************************


********************************************************


********************************************************


********************************************************


********************************************************

No comments:

Post a Comment