Makemigrations for migration of settings.py file and to check installed libraries/module
- python3 manage.py makemigrations
Migrate Settings for database
- python3 manage.py migrate
To Runserver
- python3 manage.py runserver
Push project to existing repositary without changing existing code with new branch
-
git init
-
git add .
-
git commit -m '
your custom commit name
' -
git checkout -b
yourname/branch_name
-
git config --global user.email
your github emailid
-
git config --global user.name
your github username
-
git config --global --list
CHECK USERNAME AND EMAIL
-
git remote set-url origin
url
-
git remote -v
CHECK URL FETCHED
-
git branch
CHECK BRANCH
-
git push --set-upstream origin
yourname/branch_name
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'student_pay',
'USER': 'root',
'PASSWORD': 'root',
'HOST': '127.0.0.1',
'PORT': '8889',
# 'OPTIONS':{
# 'init_command':'SET sql_mode = "STRICT_TRANS_TABLES"'
# }
}
}