mirror of
https://github.com/Llloooggg/WhereToGo.git
synced 2026-03-06 04:36:22 +03:00
Перевод на postgresql
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -165,3 +165,5 @@ cython_debug/
|
|||||||
#.idea/
|
#.idea/
|
||||||
|
|
||||||
# End of https://www.toptal.com/developers/gitignore/api/django
|
# End of https://www.toptal.com/developers/gitignore/api/django
|
||||||
|
|
||||||
|
settings_var.py
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
asgiref==3.5.0
|
asgiref==3.5.0
|
||||||
|
backports.zoneinfo==0.2.1
|
||||||
certifi==2021.10.8
|
certifi==2021.10.8
|
||||||
cffi==1.15.0
|
cffi==1.15.0
|
||||||
charset-normalizer==2.0.12
|
charset-normalizer==2.0.12
|
||||||
@@ -10,6 +11,7 @@ django-allauth==0.50.0
|
|||||||
django-crispy-forms==1.14.0
|
django-crispy-forms==1.14.0
|
||||||
idna==3.3
|
idna==3.3
|
||||||
oauthlib==3.2.0
|
oauthlib==3.2.0
|
||||||
|
psycopg2==2.9.3
|
||||||
pycparser==2.21
|
pycparser==2.21
|
||||||
PyJWT==2.3.0
|
PyJWT==2.3.0
|
||||||
python3-openid==3.2.0
|
python3-openid==3.2.0
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ from pathlib import Path
|
|||||||
|
|
||||||
from django.contrib.messages import constants as messages
|
from django.contrib.messages import constants as messages
|
||||||
|
|
||||||
|
from .settings_var import * # noqa:F401,F403
|
||||||
|
|
||||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
||||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||||
|
|
||||||
@@ -71,17 +73,6 @@ TEMPLATES = [
|
|||||||
WSGI_APPLICATION = "wheretogo.wsgi.application"
|
WSGI_APPLICATION = "wheretogo.wsgi.application"
|
||||||
|
|
||||||
|
|
||||||
# Database
|
|
||||||
# https://docs.djangoproject.com/en/4.0/ref/settings/#databases
|
|
||||||
|
|
||||||
DATABASES = {
|
|
||||||
"default": {
|
|
||||||
"ENGINE": "django.db.backends.sqlite3",
|
|
||||||
"NAME": BASE_DIR / "db.sqlite3",
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
# Password validation
|
# Password validation
|
||||||
# https://docs.djangoproject.com/en/4.0/ref/settings/#auth-password-validators
|
# https://docs.djangoproject.com/en/4.0/ref/settings/#auth-password-validators
|
||||||
|
|
||||||
|
|||||||
13
wheretogo/wheretogo/settings_var.py_template
Normal file
13
wheretogo/wheretogo/settings_var.py_template
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
# Database
|
||||||
|
# https://docs.djangoproject.com/en/4.0/ref/settings/#databases
|
||||||
|
|
||||||
|
DATABASES = {
|
||||||
|
"default": {
|
||||||
|
"ENGINE": "django.db.backends.postgresql_psycopg2",
|
||||||
|
"NAME": "wheretogo",
|
||||||
|
"USER": "wheretogo",
|
||||||
|
"PASSWORD": "",
|
||||||
|
"HOST": "127.0.0.1",
|
||||||
|
"PORT": "5432",
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user