Created
June 7, 2013 13:26
-
-
Save geoom/5729242 to your computer and use it in GitHub Desktop.
basic commands for using django (tested in debian)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ----------------------------------------- | |
Using django framework | |
----------------------------------------- */ | |
pip install django // install django | |
pip instal django=1.4.3 // install django with specified version | |
django-admin.py startproject <project-name> // create a new project named 'myproject' | |
django-admin.py startapp <app-name> // create a new app named 'myproject' inside project | |
python manage.py syncdb // create the database, also add new models if not exists | |
python manage.py runserver // simple waw of to run | |
python manage.py sqlall <app-name> // show sql forone specified app | |
pip install <package> // install one package using pip | |
pip install -r requirementes.txt // install all packages from requirementes.txt using pip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment