Skip to content

Commit

Permalink
Merge pull request #104 from uktrade/feature/resolve-celery
Browse files Browse the repository at this point in the history
chore:multiple changes
  • Loading branch information
hareshkainthdbt authored Dec 10, 2024
2 parents 21270e1 + f1824e0 commit 8e533b5
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ django-shell-local: # Run a Django shell (local django instance)

migrate: # Run Django migrate
export DATABASE_URL=postgres://postgres:postgres@localhost:5432/fbr && \
python manage.py migrate
poetry run python manage.py migrate

migrations: # Run Django makemigrations
export DATABASE_URL=postgres://postgres:postgres@localhost:5432/fbr && \
Expand Down
7 changes: 7 additions & 0 deletions app/cache/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from django.apps import AppConfig


class CoreConfig(AppConfig):
name = "app.cache"
verbose_name = "Find business regulations core application functionality"
default_auto_field = "django.db.models.BigAutoField"
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ services:
DEBUG: true
DJANGO_SETTINGS_MODULE: fbr.settings
RDS_POSTGRES_CREDENTIALS: '{"password":"postgres","dbname":"fbr","engine":"postgres","port":5432,"dbInstanceIdentifier":"xxx","host":"db","username":"postgres"}'
DATABASE_URL: postgres://postgres:[email protected]:5432/fbr # pragma: allowlist secret

networks:
proxynet:
Expand Down
1 change: 1 addition & 0 deletions fbr/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"app",
"app.core",
"app.search",
"app.cache",
"celery_worker",
]

Expand Down
2 changes: 1 addition & 1 deletion local.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
ALLOWED_HOSTS=localhost
DEBUG=True
DJANGO_ADMIN=True
DJANGO_SETTINGS_MODULE=fbr.settings
#DJANGO_SETTINGS_MODULE=fbr.settings
DJANGO_SECRET_KEY=find-business-regulations-secret

# Database Settings
Expand Down

0 comments on commit 8e533b5

Please sign in to comment.