33 lines
813 B
Python
33 lines
813 B
Python
import sys
|
|
from .base import *
|
|
|
|
DEBUG = True
|
|
ALLOWED_HOSTS = ['*']
|
|
|
|
# Database
|
|
# https://docs.djangoproject.com/en/3.2/ref/settings/#databases
|
|
""" DATABASES = {
|
|
'default': {
|
|
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
|
'NAME': 'it_radio',
|
|
'USER': 'flexites',
|
|
'PASSWORD': 'flexites',
|
|
'HOST': 'localhost',
|
|
'PORT': '5433',
|
|
},
|
|
} """
|
|
DATABASES = {
|
|
'default': {
|
|
'ENGINE': 'django.db.backends.sqlite3',
|
|
'NAME': BASE_DIR / 'db.sqlite3',
|
|
}
|
|
}
|
|
|
|
REST_FRAMEWORK['DEFAULT_PERMISSION_CLASSES'] = ('rest_framework.permissions.AllowAny',)
|
|
|
|
if len(sys.argv) >= 2 and not sys.argv[0].endswith('manage.py'):
|
|
from conf.sentry import sentry_start, SENTRY_CONFIG
|
|
|
|
SENTRY_CONFIG['environment'] = 'development'
|
|
sentry_start(SENTRY_CONFIG)
|