# Path: mysmile/settings/base.py
# BASE_DIR = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), '..')


import os
from mysmile.settings.base import BASE_DIR
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': os.path.join(BASE_DIR, 'mysmile/db/mysmile.sqlite3'),
        # 'USER': '',
        # 'PASSWORD': '',
        # 'HOST': '',
        # 'PORT': '',
    }
}

# uncomment for use MySql
# DATABASES = {
#     'default': {
#         'ENGINE': 'django.db.backends.mysql',
#         'NAME': 'mysmile',
#         'USER': 'root',
#         'PASSWORD': '',
#         'HOST': '127.0.0.1',
#         'PORT': '3306',
#     }
# }


ALLOWED_HOSTS = ['127.0.0.1', 'localhost', 'mysmile.dev']

# Enter path to media folder
MEDIA_ROOT = os.path.join(BASE_DIR, 'mysmile/media/')

# Enter path to static folder

# Path: mysmile/settings/base.py
# BASE_DIR = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), '..')


# Path: config/local.py
import os
from mysmile.settings.base import BASE_DIR

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': os.path.join(BASE_DIR, 'mysmile/db/mysmile.sqlite3'),
        # 'USER': '',
        # 'PASSWORD': '',
        # 'HOST': '',
        # 'PORT': '',
    }
}

# uncomment for use MySql
# DATABASES = {
#     'default': {
#         'ENGINE': 'django.db.backends.mysql',
#         'NAME': 'mysmile',
#         'USER': 'root',
#         'PASSWORD': '',
#         'HOST': '127.0.0.1',
#         'PORT': '3306',
#     }
# }


ALLOWED_HOSTS = ['127.0.0.1', 'localhost', 'mysmile.dev']

# Enter path to media folder
MEDIA_ROOT = os.path.join(BASE_DIR, 'mysmile/media/')

# Enter path to static folder

STATIC_ROOT = os.path.join(BASE_DIR, 'mysmile/static/')