diff --git a/.gitignore b/.gitignore index 86e510c..ae7896c 100644 --- a/.gitignore +++ b/.gitignore @@ -148,7 +148,6 @@ celerybeat.pid *.sage.py # Environments -.env .venv env/ venv/ diff --git a/backend/.env b/backend/.env new file mode 100644 index 0000000..a5dc9a9 --- /dev/null +++ b/backend/.env @@ -0,0 +1,30 @@ +# Supabase +POSTGRES_DB_NAME = 'postgres' +POSTGRES_HOST = 'db.icuxzklnmyobfjgxudoh.supabase.co' +POSTGRES_PORT = "5432" +POSTGRES_USER_NAME = "postgres" +POSTGRES_PASSWORD = "t5LbM9YiY0FAF7T6" +SUPABAE_PUBLIC_APIKEY = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImljdXh6a2xubXlvYmZqZ3h1ZG9oIiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTU4OTYzOTEsImV4cCI6MjAxMTQ3MjM5MX0.bPi5hV-602hEsdKsvsbdjzSMJXhVTAopQQNadFBF_Eo" +SUPABASE_SERVICE_ROLE_APIKEY = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImljdXh6a2xubXlvYmZqZ3h1ZG9oIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImlhdCI6MTY5NTg5NjM5MSwiZXhwIjoyMDExNDcyMzkxfQ.WKa4BjDEBo-e2K7-F0brC_DoIQEZVbtXTaZI0iqnfHM" +SUPABASE_BASE_URL = "https://db.icuxzklnmyobfjgxudoh.supabase.co/" +SUPABASE_AUTH_URL = "https://db.icuxzklnmyobfjgxudoh.supabase.co//auth/v1/" +# JWT Secret key -> Supabse -> Project Settings -> API -> JWT Secret +JWT_SECRET_KEY = "R7Ppb6CgGuyxn8KAID+CgylUz3SU80QOt22J+BAic09jY6NQMNIp4GPUF6uqKcErHOfrFgcIHrzAGhPEol4xiA==" + +# Local +# POSTGRES_DB_NAME = 'django_test_db' +# POSTGRES_HOST = 'localhost' +# POSTGRES_PORT = "5432" +# POSTGRES_USER_NAME = "postgres" +# POSTGRES_PASSWORD = "shift3team" + +# GCloud +GOOGLE_APPLICATION_CREDENTIALS = "secrets/enter-gcp-key.json" + +# Python configs +#https://docs.python.org/3/library/logging.html#logging-levels +# use numeric value from table in the link above +LOGGING_LEVEL = 10 + +# Project variables +POSSIBLE_ROLES = '["candidate", "company_user", "association_user", "admin (not yet implemented)"]' diff --git a/backend/shift_3_womenpp/settings.py b/backend/shift_3_womenpp/settings.py index b8ce11f..eee7c23 100644 --- a/backend/shift_3_womenpp/settings.py +++ b/backend/shift_3_womenpp/settings.py @@ -213,6 +213,5 @@ # Project parameters STATIC_ROOT = path.join(BASE_DIR, "static/") -STATICFILES_DIRS = (path.join(BASE_DIR, "static"),) DEFAULT_AUTO_FIELD = "django.db.models.AutoField"