Skip to content

Instantly share code, notes, and snippets.

@jebai0521
Created June 13, 2015 04:04
Show Gist options
  • Save jebai0521/abd44a1195928ea2c2a3 to your computer and use it in GitHub Desktop.
Save jebai0521/abd44a1195928ea2c2a3 to your computer and use it in GitHub Desktop.
# SQLite3
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}
# MySQL
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'order',
'USER': 'root',
'PASSWORD': '',
'HOST': '127.0.0.1', # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
'PORT': '3306', # Set to empty string for default.
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment