feat(src/djinit/templates/project): add optional Tailwind, HTMX, and database URL dependenciesAdd conditional dependencies for Tailwind, HTMX, and database URL in pyproject.toml template; update dockerignore to include staticfiles; fix Dockerfile CMD newline handling.
Details: - New Features: Conditional Tailwind, HTMX, and database URL dependencies - Enhancements: Updated dockerignore to include staticfiles - Bug Fixes: Fixed Dockerfile CMD newline handling
This commit is contained in:
3 files changed
+8
-2
No files matched your search
@@ -41,4 +41,4 @@ RUN python manage.py collectstatic --noinput || true
|
|||||||
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|
||||||
CMD ["gunicorn", "[[ module_name ]].wsgi:application", "--bind", "0.0.0.0:8000"]
|
CMD ["gunicorn", "[[ module_name ]].wsgi:application", "--bind", "0.0.0.0:8000"]
|
||||||
@@ -23,4 +23,4 @@ node_modules
|
|||||||
*.log
|
*.log
|
||||||
db.sqlite3
|
db.sqlite3
|
||||||
media
|
media
|
||||||
staticfiles
|
staticfiles
|
||||||
@@ -20,6 +20,12 @@ dependencies = [
|
|||||||
# @IF database_type == 'postgresql'
|
# @IF database_type == 'postgresql'
|
||||||
"psycopg[binary]",
|
"psycopg[binary]",
|
||||||
# @ENDIF
|
# @ENDIF
|
||||||
|
# @IF use_tailwind
|
||||||
|
"django-tailwind-cli",
|
||||||
|
# @ENDIF
|
||||||
|
# @IF use_htmx
|
||||||
|
"django-htmx",
|
||||||
|
# @ENDIF
|
||||||
# @IF use_database_url
|
# @IF use_database_url
|
||||||
"dj-database-url",
|
"dj-database-url",
|
||||||
# @ENDIF
|
# @ENDIF
|
||||||
|
|||||||
Reference in new issue
Block a user