Metadata-Version: 2.1
Name: df_site
Version: 0.1.2
Summary: More batteries to Django
Home-page: https://github.com/d9pouces/df_site
License: CECILL-B
Author: d9pouces
Author-email: github@19pouces.net
Maintainer: d9pouces
Maintainer-email: github@19pouces.net
Requires-Python: >=3.10,<4.0
Classifier: Development Status :: 5 - Production/Stable
Classifier: Framework :: Django :: 5.0
Classifier: License :: CeCILL-B Free Software License Agreement (CECILL-B)
Classifier: License :: OSI Approved :: CEA CNRS Inria Logiciel Libre License, version 2.1 (CeCILL-2.1)
Classifier: Natural Language :: English
Classifier: Natural Language :: French
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: POSIX :: BSD
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: Unix
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: df-config (>=1.2.42)
Requires-Dist: df-websockets (>=1.0.9,<2.0.0)
Requires-Dist: django (>=5.0)
Requires-Dist: django-allauth[mfa,socialaccount] (>=65.1.0,<66.0.0)
Requires-Dist: django-bootstrap5 (>=23.3)
Requires-Dist: django-ckeditor-5 (>=0.2.13,<0.3.0)
Requires-Dist: django-cookie-consent (>=0.6.0,<0.7.0)
Requires-Dist: django-csp (>=3.7,<4.0)
Requires-Dist: django-minio-storage (>=0.5.7,<0.6.0)
Requires-Dist: django-pipeline (>=3.1.0,<4.0.0)
Requires-Dist: django-postman (>=4.5,<5.0)
Requires-Dist: django-prometheus (>=2.3.1,<3.0.0)
Requires-Dist: django-prose-editor (>=0.8.0,<0.9.0)
Requires-Dist: django-recaptcha (>=4.0.0,<5.0.0)
Requires-Dist: django-redis (>=5.4.0,<6.0.0)
Requires-Dist: django-redis-sessions (>=0.6.2,<0.7.0)
Requires-Dist: django-tinymce (>=4.1.0,<5.0.0)
Requires-Dist: fido2 (>=1.1.3,<2.0.0)
Requires-Dist: jsmin (>=3.0.1,<4.0.0)
Requires-Dist: lxml-html-clean (>=0.3.1,<0.4.0)
Requires-Dist: nh3 (>=0.2.18,<0.3.0)
Requires-Dist: psycopg (>=3.2.1,<4.0.0)
Requires-Dist: redis (>=5.0.1,<6.0.0)
Project-URL: Documentation, https://github.com/d9pouces/df_site
Project-URL: Repository, https://github.com/d9pouces/df_site
Description-Content-Type: text/markdown

df_site
---------

A single Django app that contains many features and tools to create a website.
It offers a template based on Bootstrap5 with the required views for:
- login/logout (with Django-allauth and all its methods like passkeys)
- a profile management view
- a dark mode
- a cookie consent banner (with DjangoCookieConsent)
- a message app between users (django-postman)
- a connection to websockets (django-channels and df_websockets) for pushing data to the client
- a configurable object lists with sorting, pagination and filters (similar to the Django admin list views) integrable in any template
- a configurable object detail view similar to the Django admin detail view

## Frontend

- [X] [SCSS](https://sass-lang.com/): Bootstrap uses SCSS
- [X] [pnpm](https://pnpm.io/): easy to use, most efficient than npm and yarn
- [X] [Bootstrap](https://getbootstrap.com/): the only CSS framework with a Django package
- [X] [TypeScript](https://www.typescriptlang.org/)
- [X] [Webpack](https://webpack.js.org/)
- [X] [Node.js](https://nodejs.org/): used by webpack
- [X] [Font-awesome](https://fontawesome.com/)
- [X] [Dark Mode](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme)
- [ ] [Htmx](https://htmx.org/)
- [ ] [Select2](https://select2.org/): still use jQuery in 2024 and no real plan to remove it
- [ ] Javascript editor

### Excluded
- [X] [Vite](https://vitejs.dev/): created SPA
- [X] [Material-UI](https://material-ui.com/): no Django package
- [X] [TailwindCSS](https://tailwindcss.com/): no Django package
- [X] [npm](https://www.npmjs.com/): replaced by pnpm
- [X] [yarn](https://yarnpkg.com/): replaced by pnpm
- [X] [AlpineJS](https://alpinejs.dev/): hard to comply with a strong CSP
- [ ] [React](https://react.dev/)
- [ ] [Better-nice-Select](https://kevingostomski.github.io/better-nice-select/documentation/options)

## Backend

- [X] [Django](https://www.djangoproject.com/)
- [X] [Django-pipeline](https://django-pipeline.readthedocs.io/en/stable/)
- [X] [Django debug toolbar](https://django-debug-toolbar.readthedocs.io/en/stable/)
- [X] [Poetry](https://python-poetry.org/)
- [X] [Python3.12](https://www.python.org/)
- [X] [DjangoCookieConsent](https://django-cookie-consent.readthedocs.io/en/latest/)
- [X] [Django-postman](https://django-postman.readthedocs.io/en/latest/)
- [X] [Django-allauth](https://docs.allauth.org/en/latest/)
- [ ] [Django Rest Framework](https://www.django-rest-framework.org/)
- [ ] [Django Channels](https://channels.readthedocs.io/en/stable/)
- [ ] [Gunicorn](https://gunicorn.org/)
- [ ] [Hypercorn](https://hypercorn.readthedocs.io/en/stable/)
- [ ] [Celery](https://docs.celeryproject.org/en/stable/)
- [ ] [Django-auto-complete-light](https://django-autocomplete-light.readthedocs.io/en/master/)
- [ ] [Django-htmX](https://django-htmx.readthedocs.io/en/latest/)
- [ ] [Django-components](https://django-components.readthedocs.io/en/latest/)
- [X] [Django-recaptcha](https://pypi.org/project/django-recaptcha/)
- [X] [django-ckeditor-5](https://github.com/hvlads/django-ckeditor-5)
- [X] Complete solution for ListView,
- [X] Complete solution for DetailView
- [ ] CreateView, UpdateView, DeleteView
- [ ] alert messages when the site is offline (maintenance mode)
- [ ] wait for the database to be ready
- [ ] display global messages and banners
- [ ] Error templates
- [ ] Smileys in the Editor

### Excluded

- [X] [Django-select2](https://django-select2.readthedocs.io/en/latest/): django-auto-complete-light is better

## WYSIWYG editor

- [X] [CKEditor](https://ckeditor.com/) with [django-ckeditor-5](https://github.com/hvlads/django-ckeditor-5): GPL license
- [X] [TinyMCE](https://www.tiny.cloud/) with [django-tinymce](https://django-tinymce.readthedocs.io/en/latest/): cannot use a strong CSP (unsafe-inline styles are required)
- [X] [Trix](https://trix-editor.org/) with [django-prose](https://github.com/withlogicco/django-prose): use nonce for inline styles
- [X] [summernote](https://summernote.org/) with [django-summernote](https://github.com/summernote/django-summernote): still use jQuery and cannot use a strong CSP
- [X] [Froala](https://www.froala.com/wysiwyg-editor): expensive
- [X] [ACE](https://ace.c9.io/): code editor
- [X] [Django-RichtextField](https://github.com/jaap3/django-richtextfield): use CKEditor or TinyMCE

## Specific URLs

- [X] [robots.txt](https://www.robotstxt.org/)
- [X] [humans.txt](http://humanstxt.org/)
- [X] [.well-known/change-password](https://w3c.github.io/webappsec-change-password-url/)


## HTML and web server

- [ ] [Nginx](https://www.nginx.com/)
- [ ] [Apache](https://httpd.apache.org/)
- [ ] [HTTP/2](https://http2.github.io/)
- [X] [Mozilla observatory](https://observatory.mozilla.org/)
- [X] [OpenGraph meta tags](https://ogp.me/)
- [ ] [Performances](https://web.dev/)
- [ ] [Generate a favicon](https://favicon.io/favicon-generator/)
- [X] [Favicon validation](https://realfavicongenerator.net/favicon_checker)
- [X] [HTML validation](https://html5.validator.nu/)
- [X] [OpenGraph validation](https://www.opengraph.xyz/)
- [ ] [Structured data validation](https://search.google.com/structured-data/testing-tool)
- [ ] [Webhint](https://webhint.io/)
- [ ] [Lighthouse](https://developers.google.com/web/tools/lighthouse)
- [ ] [SSL validation](https://www.ssllabs.com/ssltest/)
- [ ] [XML site map](https://www.xml-sitemaps.com/)
- [ ] [Schema.org](https://schema.org/)
CSS Validator, Link Checker, JS Validator

## DevOps

- [X] [git](https://git-scm.com/)
- [X] [Precommit](https://pre-commit.com/)
- [X] [Docker](https://www.docker.com/)
- [X] [Docker Compose](https://docs.docker.com/compose/)
- [ ] [SonarQube](https://www.sonarqube.org/)
- [ ] [Pytest](https://docs.pytest.org/en/stable/)
- [ ] [Jest](https://jestjs.io/)
- [ ] [Playwright](https://playwright.dev/)
- [X] [editorconfig](https://editorconfig.org/)
- [ ] Copyright checking
- [ ] Monitoring and alerting
- [ ] [django-probes](https://github.com/painless-software/django-probes)
- [X] [Django-prometheus](https://github.com/korfuri/django-prometheus)


## Code analysis and formatting

- [ ] Dockerfile
- [ ] HTML [DjHTML](https://github.com/rtts/djhtml)
- [X] ini
- [ ] JavaScript:  [ESlint](https://eslint.org/)
- [X] JSON
- [ ] Markdown
- [X] Python: [Ruff](https://docs.astral.sh/ruff/)
- [ ] SCSS [StyleLint](https://stylelint.io/)
- [X] TOML
- [ ] TypeScript:  [ESlint](https://eslint.org/)
- [X] YAML

### Excluded tools

- [X] [JSHint](https://jshint.com/): replaced by ESLint
- [X] [JSLint](https://www.jslint.com/): replaced by ESLint
- [X] [JSCS](https://jscs.dev/): replaced by ESLint and limited to code style
- [X] [Pylint](https://pylint.pycqa.org/): replaced by Ruff
- [X] [Flake8](https://flake8.pycqa.org/en/latest/): replaced by Ruff
- [X] [Black](https://black.readthedocs.io/en/stable/): replaced by Ruff
- [X] [isort](https://pycqa.github.io/isort/): replaced by Ruff
- [X] [PyDocStyle](https://www.pydocstyle.org/en/stable/): replaced by Ruff
- [X] [PyUpgrade](https://pypi.org/project/pyupgrade/): replaced by Ruff
- [X] [Autoflake](https://pypi.org/project/autoflake/): replaced by Ruff
- [X] [SassLint](https://www.npmjs.com/package/sass-lint): no longer maintained

## Database and storage

- [X] [PostgreSQL](https://www.postgresql.org/)
- [X] [Redis](https://redis.io/)
- [X] [minio](https://min.io/)

### Technologies

https://www.saaspegasus.com/guides/modern-javascript-for-django-developers/client-server-architectures/

