learn to use git

to start a git project

git init

to add all your changes

git add .

to commit all your changes with message

git commit -am " initial commit "

git remote add origin + your git repo link

to navigate to the main branch

git branch main

to create a new branch

git branch -b crm

to go to the branch you created

git branch checkout

to push your branch to the origin

git push origin crm


to get every updates from the origin

git fetch origin

# Check out your local main branch

git checkout main

# Compare your local main branch with the remote main branch

git log main..origin/main

# Check the status of your local main branch git status

# Update your local main branch with the latest changes from the remote main branch
git pull origin main
how to use readme file

Using Django in the terminal

Django Management Commands

# Navigate to your project directory (if needed)
cd your_project_name
# Create migration files for model changes
python manage.py makemigrations
# Apply migrations to the database
python manage.py migrate
# Create a superuser (if you need admin access)
python manage.py createsuperuser
# Collect static files (for production)
python manage.py collectstatic
# Run the development server
python manage.py runserver
# Check for any issues with your project
python manage.py check
# Open Django shell for testing
python manage.py shell
# View current migration status
python manage.py showmigrations
# Reset migrations for a specific app (use carefully)
python manage.py migrate your_app_name zero
# Apply specific migration
python manage.py migrate your_app_name 0001

https://tilburgsciencehub.com/topics/collaborate-share/share-your-work/content-creation/readme-best-practices/