Skip to content

Instantly share code, notes, and snippets.

@geoom
Created June 7, 2013 13:26
Show Gist options
  • Save geoom/5729242 to your computer and use it in GitHub Desktop.
Save geoom/5729242 to your computer and use it in GitHub Desktop.
basic commands for using django (tested in debian)
/* -----------------------------------------
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