Skip to content

web-user/django-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

List install

sudo pip3 install virtualenv

virtualenv venv

source venv/bin/activate or deactivate

pip install django

pip install psycopg2

python manage.py makemigrations todo

python manage.py migrate

pip install django-filter

API link http://127.0.0.1:8000/todo/API/

TODO link http://127.0.0.1:8000/dashboard/

docker-compose run web python src/manage.py migrate

docker-compose build

docker-compose up

docker ps

docker stats djangotodo_web_1

Qwerty12345

docker-compose run web python src/manage.py test

makemigrations todo

docker-compose run web python src/manage.py migrate

docker-compose run web src/manage.py dumpdata --exclude auth.permission --exclude contenttypes --indent 4 > db_psg.json

docker-compose run --rm db psql -h db -U postgres postgres

EXPORT: docker-compose run --rm db pg_dump -h db -U postgres postgres > database.sql

IMPORT: docker-compose run --rm db psql -h db -U postgres postgres < database.sql

About

django-docker and rest-framework for Todo list

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published