Skip to content

Instantly share code, notes, and snippets.

@bikashthapa01
Created November 14, 2018 11:45
Show Gist options
  • Save bikashthapa01/56aa7cf35fc0f493009bf3e8ba02deb1 to your computer and use it in GitHub Desktop.
Save bikashthapa01/56aa7cf35fc0f493009bf3e8ba02deb1 to your computer and use it in GitHub Desktop.
# 1. Download & Install XAMPP Server From https://www.apachefriends.org/download.html & Run Apache and MYSQL from XAMPP Control Panel
# 2. Open Browser and Check http://localhost/phpmyadmin link is working ?
# Database
# https://docs.djangoproject.com/en/2.1/ref/settings/#databases
# DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.sqlite3',
# 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
# }
# }
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
# 'NAME': 'managerpro', # Database name created in phpmyadmin
'USER': 'root', # username of phpmyadmin (Default is root)
'PASSWORD': '', # password (Default is Blank)
'HOST': 'localhost',
'PORT': '3325', # try 3306 here
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment