- [Show pagesource]
- [Old revisions]
- [[unknown link type]]
- []
This is an old revision of the document!
as root:
easy_install pip pip install virtualenv
As normal user:
$ virtualenv projectname $ cd projectname $ source bin/activate (projectname):$ pip freeze (projectname):$ pip install django==1.6.7 (projectname):$ django-admin.py startproject djlogin
Just a bunch of code i will probably not remeber
python manage.py runserver pip install south django-registration stripe python manage.py syncdb python manage.py startapp users
South
- great tool for migrating & altering DB
To start using south…
- Make sure your django tables match your current database tables exactly - if you planned to add or remove columns, comment those out.
- Run python manage.py schemamigration myapp –initial
- Run python manage.py migrate myapp –fake
- Make changes to your django model
- Run python manage.py schemamigration myapp –auto
- Run python manage.py migrate myapp
Best editor for django/python development
Vim python autocomplete
- in debian following packages needed to be installed: vim-athena vim-nox
- also pathogen addon has to be installed: https://github.com/tpope/vim-pathogen
python/django.1417185223.txt.gz · Last modified: 2014/11/28 15:33 by vondra