pip install virtualenv
virtualenv <venv_name>
source <venv_name>/bin/activate
deactivate
git init
git remote add origin https://github.com/user/repo.git
git remote -v
git add .
or
git add -A
git commit -m ""
git pull
git push -u origin master
django-admin startproject <project_name>
python manage.py startapp <app_name>
python manage.py runserver
python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser
psql -U <user_name> <db_name>
\dt
\du
\password postgres
- Create the app model in models.py file of that app
- Add the app in the settings.py file of the project
- app.apps.app_nameConfig
- Create Migrations (python manage.py makemigrations)
- Migrate (python manage.py migrate)
- Add app to the admin
- from .models import app
- admin.site.register(app)