Skip to content

Commit

Permalink
Merge pull request #85 from stuartmaxwell/dev
Browse files Browse the repository at this point in the history
Update requirements and implement configurable djpress settings
  • Loading branch information
stuartmaxwell authored Sep 25, 2024
2 parents 7eabea1 + 88da8cb commit e0d1e67
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 19 deletions.
7 changes: 6 additions & 1 deletion config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
DB_PORT=(str, ""),
WHITENOISE_STATIC=(bool, False),
ADMIN_URL=(str, "admin"),
BLOG_TITLE=(str, "stuartm.nz"),
POST_PREFIX=(str, "post"),
POST_PERMALINK=(str, ""),
)

environ.Env.read_env(Path(BASE_DIR / ".env"))
Expand Down Expand Up @@ -242,7 +245,6 @@
}

# DJPress settings
BLOG_TITLE: str = "stuartm.nz"
MARKDOWN_EXTENSIONS: list = [
"pymdownx.superfences",
"pymdownx.highlight",
Expand All @@ -253,3 +255,6 @@
MARKDOWN_EXTENSION_CONFIGS: dict = {
"pymdownx.emoji": {"emoji_generator": pymdownx.emoji.to_alt},
}
BLOG_TITLE = env("BLOG_TITLE")
POST_PREFIX = env("POST_PREFIX")
POST_PERMALINK = env("POST_PERMALINK")
4 changes: 2 additions & 2 deletions requirements.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
django>=5.0,<5.1
djpress==0.7.*
django~=5.1
djpress==0.8.1
pymdown-extensions
django-environ
django-debug-toolbar
Expand Down
32 changes: 16 additions & 16 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@
# uv pip compile requirements.in -o requirements.txt
asgiref==3.8.1
# via django
certifi==2024.7.4
certifi==2024.8.30
# via sentry-sdk
django==5.0.6
django==5.1.1
# via
# -r requirements.in
# django-debug-toolbar
# djpress
django-debug-toolbar==4.4.5
django-debug-toolbar==4.4.6
# via -r requirements.in
django-environ==0.11.2
# via -r requirements.in
djpress==0.7.2
djpress==0.8.1
# via -r requirements.in
gunicorn==22.0.0
gunicorn==23.0.0
# via -r requirements.in
iniconfig==2.0.0
# via pytest
markdown==3.6
markdown==3.7
# via
# djpress
# pymdown-extensions
Expand All @@ -33,35 +33,35 @@ packaging==24.1
# pytest
pluggy==1.5.0
# via pytest
psycopg==3.2.1
psycopg==3.2.2
# via -r requirements.in
psycopg-binary==3.2.1
psycopg-binary==3.2.2
# via psycopg
pygments==2.18.0
# via
# djpress
# rich
pymdown-extensions==10.8.1
pymdown-extensions==10.10.1
# via -r requirements.in
pytest==8.2.2
pytest==8.3.3
# via
# -r requirements.in
# pytest-django
pytest-django==4.8.0
pytest-django==4.9.0
# via -r requirements.in
pyyaml==6.0.1
pyyaml==6.0.2
# via pymdown-extensions
rich==13.7.1
rich==13.8.1
# via -r requirements.in
sentry-sdk==2.7.1
sentry-sdk==2.14.0
# via -r requirements.in
sqlparse==0.5.0
sqlparse==0.5.1
# via
# django
# django-debug-toolbar
typing-extensions==4.12.2
# via psycopg
urllib3==2.2.2
urllib3==2.2.3
# via sentry-sdk
whitenoise==6.7.0
# via -r requirements.in

0 comments on commit e0d1e67

Please sign in to comment.