db_settings.py 474 B

123456789101112131415161718192021
  1. from pathlib import Path
  2. import os
  3. BASE_DIR = Path(__file__).resolve().parent.parent
  4. # DATABASES = {
  5. # 'default': {
  6. # 'ENGINE': 'django.db.backends.postgresql',
  7. # 'NAME': '*******',
  8. # 'USER': '******',
  9. # 'PASSWORD': '*******',
  10. # 'HOST': '127.0.0.1',
  11. # 'PORT': '5432',
  12. # }
  13. # }
  14. DATABASES = {
  15. 'default': {
  16. 'ENGINE': 'django.db.backends.sqlite3',
  17. 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
  18. }
  19. }