Skip to content

Instantly share code, notes, and snippets.

@rscbugtrack
Created March 27, 2018 07:28
Show Gist options
  • Save rscbugtrack/e3b213be8658d2859cb3a1f8aa88bfee to your computer and use it in GitHub Desktop.
Save rscbugtrack/e3b213be8658d2859cb3a1f8aa88bfee to your computer and use it in GitHub Desktop.
Mysql setup with Django
1.Install mysqlclient in your local mechine
1.Check the mysql connection details as below:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'rscnewdb',
'USER': 'root',
'PASSWORD': 'password',
'HOST': 'localhost'
}
}
3.Run python manage.py migrate
4.Run python manage.py createsuperuser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment