diff --git a/pyproject.toml b/pyproject.toml index b9d84cb..9f4943e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [build-system] build-backend = "hatchling.build" -requires = [ "hatchling" ] +requires = [ "hatchling>=1.26.1" ] [project] name = "falco-app" @@ -13,7 +13,7 @@ keywords = [ "project-template", "python", ] -license = "MIT" +license-file = "LICENSE.txt" authors = [ { name = "Tobi DEGNON", email = "tobidegnon@proton.me" }, ] diff --git a/src/falco/__about__.py b/src/falco/__about__.py index d9b6dbc..556b7d7 100644 --- a/src/falco/__about__.py +++ b/src/falco/__about__.py @@ -1,4 +1,4 @@ # SPDX-FileCopyrightText: 2024-present Tobi DEGNON # # SPDX-License-Identifier: MIT -__version__ = "0.3.4" +__version__ = "0.3.5" diff --git a/src/falco/management/commands/work.py b/src/falco/management/commands/work.py index 3c64914..85e59b2 100644 --- a/src/falco/management/commands/work.py +++ b/src/falco/management/commands/work.py @@ -42,6 +42,10 @@ def handle(self, *_, **options): commands["tailwind"] = f"python -m django tailwind start" if "django_q" in settings.INSTALLED_APPS: commands["qcluster"] = f"python -m django qcluster" + if "django_tasks.backends.database" in settings.INSTALLED_APPS: + commands["worker"] = f"python -m django db_worker" + if "django.tasks.backends.database" in settings.INSTALLED_APPS: + commands["worker"] = f"python -m django db_worker" commands.update(app_settings.WORK) commands["runserver"] = commands["runserver"].format(address=address)