0% found this document useful (0 votes)
181 views1 page

Django Cheat Sheet: by Via

This document provides a cheat sheet summarizing common commands for the Python web framework Django, the version control system Git, creating and managing virtual environments, and working with databases in Django projects. It lists key commands for starting a new Django project, generating and applying migrations, installing additional packages like Django Leaflet for mapping, collecting static files, and more. The cheat sheet acts as a quick reference guide for common Django and related tasks.

Uploaded by

Extra Mile
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
181 views1 page

Django Cheat Sheet: by Via

This document provides a cheat sheet summarizing common commands for the Python web framework Django, the version control system Git, creating and managing virtual environments, and working with databases in Django projects. It lists key commands for starting a new Django project, generating and applying migrations, installing additional packages like Django Leaflet for mapping, collecting static files, and more. The cheat sheet acts as a quick reference guide for common Django and related tasks.

Uploaded by

Extra Mile
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

django Cheat Sheet

by sebtoga via cheatography.com/67657/cs/17022/

pip3 django​-da​tabase git

sudo apt install python​3-pip python manage.py makemi​gra​tions git init

pip3 --version python manage.py migrate git clone /path/​rep​ository

git clone userna​me@​hos​t:/​pat​h/r​epo​sitory


virtualenv django​-le​aflet
git add filename
sudo apt-get install python​-vi​rtu​alenv virtualenv pip3 install django​-le​aflet git add
pip3 install virtualenv python manage.py ogrinspect rute.shp -- git commit -m "​mes​sag​e"
mapping --multi --srid​=4326
virtualenv -p python3 envgv1 git push origin master
source bin/ac​tivate git remote add origin server
bower and collec​static
deactivate git checkout -b rama (create rama)
pip3 install django​-bower
git checkout master
django rpm install -g bower
git branch -d rama (delete rama)
python manage.py bower install
git clone git://​git​hub.co​m/d​jan​go/​django django-
git push origin rama
dev pip install django​-st​ati​cfiles
git pull
pip3 install -e django-dev python manage.py collec​tstatic
git merge rama
django​-admin --version
grappelli git diff source​_rama target​_rama
django​-admin startp​roject proyect
pip install django​-gr​appelli git tag 1.0.0 1b2e1
python manage.py create​sup​eruser
pip install django​-gr​app​ell​i-e​xtras git log
python manage.py startapp name
git checkout -- filename
python manage.py runserver
database django git fetch origin
pip install -r requir​eme​nts.txt
pip install psycopg2 git reset --hard origin​/master
python manage.py shell
pip install psycop​g2-​binary gitk
python manage.py collec​static
git config color.ui true

git config format.preety oneline

git add -i

By sebtoga Published 13th September, 2018. Sponsored by ApolloPad.com


cheatography.com/sebtoga/ Last updated 13th September, 2018. Everyone has a novel in them. Finish Yours!
Page 1 of 1. https://apollopad.com

You might also like