Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ static/css/*.min.css
__pycache__
*.db
*.py[co]
*.egg-info/

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can remove if it's not wanted, a local uv sync created these, and most Python repos (that I know of) ignore *.egg-info/, so I added it.

.vscode
.~lock.*
.idea
Expand Down
2 changes: 2 additions & 0 deletions pydotorg/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
from celery import Celery
from celery.signals import setup_logging
from django.core import management
from django_structlog.celery.steps import DjangoStructLogInitStep

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pydotorg.settings.local")

app = Celery("pydotorg")
app.config_from_object("django.conf:settings", namespace="CELERY")
app.steps["worker"].add(DjangoStructLogInitStep)


@setup_logging.connect
Expand Down
1 change: 1 addition & 0 deletions pydotorg/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@
DJANGO_STRUCTLOG_STATUS_4XX_LOG_LEVEL = logging.DEBUG
# Client IPs were never logged; keep it that way.
DJANGO_STRUCTLOG_IP_LOGGING_ENABLED = False
DJANGO_STRUCTLOG_CELERY_ENABLED = True

### Honeypot
HONEYPOT_FIELD_NAME = "email_body_text"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ dependencies = [
"django-pipeline==4.1.0",
"django-polymorphic==4.11.7",
"django-sitetree==1.18.1",
"django-structlog==10.1.0",
"django-structlog[celery]==10.1.0",
"django-tastypie==0.15.1",
"django-translation-aliases==0.1.0",
"django-waffle==5.0.0",
Expand Down
9 changes: 7 additions & 2 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading