Configuración de django, python
|
sudo apt install python3-pip
|
|
pip3 --version
|
|
sudo apt-get install python-virtualenv virtualenv
|
|
pip3 install virtualenv
|
|
virtualenv -p python3 envgv1
|
|
source bin/activate
|
|
deactivate
|
|
git clone git://github.com/django/django django-dev
|
|
pip3 install -e django-dev
|
|
django-admin --version
|
|
django-admin startproject proyect
|
|
python manage.py createsuperuser
|
|
python manage.py startapp name
|
|
python manage.py runserver
|
|
pip install -r requirements.txt
|
|
python manage.py shell
|
|
python manage.py collecstatic
|
|
python manage.py makemigrations
|
|
python manage.py migrate
|
|
pip3 install django-leaflet
|
|
python manage.py ogrinspect rute.shp --mapping --multi --srid=4326
|
|
pip3 install django-bower
|
|
rpm install -g bower
|
|
python manage.py bower install
|
|
pip install django-staticfiles
|
|
python manage.py collectstatic
|
|
pip install django-grappelli
|
|
pip install django-grappelli-extras
|
|
pip install psycopg2
|
|
pip install psycopg2-binary
|
|
git init
|
|
git clone /path/repository
|
|
git clone username@host:/path/repository
|
|
git add filename
|
|
git add
|
|
git commit -m "message"
|
|
git push origin master
|
|
git remote add origin server
|
|
git checkout -b rama (create rama)
|
|
git checkout master
|
|
git branch -d rama (delete rama)
|
|
git push origin rama
|
|
git pull
|
|
git merge rama
|
|
git diff source_rama target_rama
|
|
git tag 1.0.0 1b2e1
|
|
git log
|
|
git checkout -- filename
|
|
git fetch origin
|
|
git reset --hard origin/master
|
|
gitk
|
|
git config color.ui true
|
|
git config format.preety oneline
|
|
git add -i
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.