mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-07-28 20:03:10 +02:00
22 lines
680 B
Python
22 lines
680 B
Python
from .settings import *
|
|
|
|
REST_FRAMEWORK = {
|
|
"DEFAULT_AUTHENTICATION_CLASSES": [
|
|
"rest_framework.authentication.BasicAuthentication",
|
|
]
|
|
}
|
|
|
|
HELPDESK_ACTIVATE_API_ENDPOINT = True
|
|
|
|
DATABASES = {
|
|
# Setup postgress db with postgres as host and db name and read password from env var
|
|
"default": {
|
|
"ENGINE": "django.db.backends.postgresql",
|
|
"NAME": os.environ.get("POSTGRES_DB", "postgres"),
|
|
"USER": os.environ.get("POSTGRES_USER", "postgres"),
|
|
"PASSWORD": os.environ.get("POSTGRES_PASSWORD", "postgres"),
|
|
"HOST": os.environ.get("POSTGRES_HOST", "postgres"),
|
|
"PORT": os.environ.get("POSTGRES_PORT", "5432"),
|
|
}
|
|
}
|