Skip to content

Commit

Permalink
package rename
Browse files Browse the repository at this point in the history
  • Loading branch information
domdinicola committed Sep 30, 2024
1 parent d96981b commit 1c7b37b
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: celery_model
POSTGRES_DB: django_celery_boost
defaults:
run:
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
title: Documentation
---

django-celery-models is a small Django Abstract Model that provides some useful methods to manage
django-celery-boost is a small Django Abstract Model that provides some useful methods to manage
Models that represents the "context" of a Celery task.

django-celery-models is part of the UNICEF HOPE project, read more [here](https://unicef.github.io/hope-documentation/).
django-celery-boost is part of the UNICEF HOPE project, read more [here](https://unicef.github.io/hope-documentation/).


!!! warning
Expand Down
6 changes: 3 additions & 3 deletions docs/src/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Install
---

django-celery-models is a small Django Abstract Model that provides some useful methods to manage
django-celery-boost is a small Django Abstract Model that provides some useful methods to manage
Models that represents the "context" of a Celery task.


Expand All @@ -13,7 +13,7 @@ Models that represents the "context" of a Celery task.

## Install

pip install django-celery-model
pip install django-celery-boost

In your `settings.py`:

Expand All @@ -22,7 +22,7 @@ In your `settings.py`:
INSTALLED_APPS = [
...
"admin_extra_buttons",
"celery_model",
"django_celery_boost",
]

CELERY_BROKER_URL=redis://
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "django-celery-model"
name = "django-celery-boost"
version = "0.1.0"
description = "Django AnstractModel to work with Celery"
description = "Django Anstract Model to work with Celery"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def celery_inspect(self, request: HttpRequest, pk: int) -> HttpResponse:
[
"admin/%s/%s/inspect.html" % (self.opts.app_label, self.opts.model_name),
"admin/%s/inspect.html" % self.opts.app_label,
"admin/celery_model/inspect.html",
"admin/django_celery_boost/inspect.html",
],
ctx,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def check(cls, **kwargs):
errors.append(
checks.Error(
"'%s' does not have a Celery task name." % cls._meta,
id="celery_model.E001",
id="django_celery_boost.E001",
)
)
else:
Expand All @@ -91,7 +91,7 @@ def check(cls, **kwargs):
errors.append(
checks.Error(
"'%s': Cannot import Celery task '%s'" % (cls._meta, cls.celery_task_name),
id="celery_model.E002",
id="django_celery_boost.E002",
)
)
else:
Expand All @@ -100,7 +100,7 @@ def check(cls, **kwargs):
errors.append(
checks.Error(
"'%s' is using a non registered Celery task. (%s)" % (cls._meta, cls.celery_task_name),
id="celery_model.E003",
id="django_celery_boost.E003",
)
)

Expand Down
4 changes: 2 additions & 2 deletions tests/demoapp/demo/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"django.contrib.staticfiles",
# "django_celery_beat",
"admin_extra_buttons",
"celery_model",
"django_celery_boost",
"demo.apps.Config",
]

Expand Down Expand Up @@ -80,7 +80,7 @@
# "ENGINE": "django.db.backends.sqlite3",
# "NAME": "db.sqlite3",
"ENGINE": "django.db.backends.postgresql",
"NAME": "celery_model",
"NAME": "django_celery_boost",
"HOST": os.environ.get("DB_HOST", "localhost"),
"PORT": os.environ.get("DB_PORT", "5432"),
"USER": os.environ.get("DB_USER", "postgres"),
Expand Down

0 comments on commit 1c7b37b

Please sign in to comment.