Created
March 27, 2018 07:28
-
-
Save rscbugtrack/e3b213be8658d2859cb3a1f8aa88bfee to your computer and use it in GitHub Desktop.
Mysql setup with Django
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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