Skip to content

Commit

Permalink
add support for django-tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobi-De committed Dec 23, 2024
1 parent f59b621 commit 9ee7307
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[build-system]
build-backend = "hatchling.build"

requires = [ "hatchling" ]
requires = [ "hatchling>=1.26.1" ]

[project]
name = "falco-app"
Expand All @@ -13,7 +13,7 @@ keywords = [
"project-template",
"python",
]
license = "MIT"
license-file = "LICENSE.txt"
authors = [
{ name = "Tobi DEGNON", email = "[email protected]" },
]
Expand Down
2 changes: 1 addition & 1 deletion src/falco/__about__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024-present Tobi DEGNON <[email protected]>
#
# SPDX-License-Identifier: MIT
__version__ = "0.3.4"
__version__ = "0.3.5"
4 changes: 4 additions & 0 deletions src/falco/management/commands/work.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9ee7307

Please sign in to comment.