Skip to content

Commit

Permalink
chore:Add temp cache data handling and registration to routing
Browse files Browse the repository at this point in the history
Introduce `TempCacheDataResponseViewSet` to handle caching operations with `CACHETEMPDATA`, including clearing documents and inserting data. This addition improves data management capabilities and integrates the new viewset into the router under the `v1/temp` endpoint.
  • Loading branch information
hareshkainthdbt committed Dec 13, 2024
1 parent 86bd418 commit f7a8fd2
Show file tree
Hide file tree
Showing 3 changed files with 89,056 additions and 3 deletions.
17 changes: 14 additions & 3 deletions fbr/settings.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# flake8: noqa

"""Django base settings for Find business regulations project.
Environment:
Expand Down Expand Up @@ -128,17 +130,26 @@
# }
# }

if DATABASE_URL := env("DATABASE_CREDENTIALS", default=None):
if DATABASE_CREDENTIALS := env("DATABASE_CREDENTIALS", default=None):
DATABASES["default"] = {
"NAME": database_url_from_env("DATABASE_CREDENTIALS"),
"ENGINE": "django.db.backends.postgresql",
}
else:
DATABASES["default"] = {
"NAME": "{}",
"ENGINE": "django.db.backends.postgresql",
"NAME": BASE_DIR / "db.sqlite3",
"ENGINE": "django.db.backends.sqlite3",
}

# if DATABASE_URL := env("DATABASE_URL", default=None):
# DATABASES["default"] = {
# **dj_database_url.parse(
# DATABASE_URL,
# engine="postgresql",
# ),
# "ENGINE": "django.db.backends.postgresql",
# }

AUTH_PASSWORD_VALIDATORS = [
{
"NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator", # noqa: E501
Expand Down
Loading

0 comments on commit f7a8fd2

Please sign in to comment.