Skip to content

Instantly share code, notes, and snippets.

@mmaridev
Created December 31, 2018 09:47
Show Gist options
  • Save mmaridev/0e0cdd17613d4d9bdd0d3d1a230d1377 to your computer and use it in GitHub Desktop.
Save mmaridev/0e0cdd17613d4d9bdd0d3d1a230d1377 to your computer and use it in GitHub Desktop.
Local settings for django site with mariadb
ALLOWED_HOSTS = ["you.example.org"]
DEBUG = True
DATABASES = {
"default": {
"ENGINE": "django.db.backends.mysql",
"NAME": "",
"USER": "",
"PASSWORD": "",
"HOST": "localhost",
"PORT": "3306",
"OPTIONS": {
'init_command': "SET sql_mode='STRICT_TRANS_TABLES'"
}
}
}
STATIC_ROOT = "/var/www/your_project/wholestatic"
SECRET_KEY = "" # 50 chars secret key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment