Django + Blog = dyablog
An inconsequential blog built on Django, vaguely following the instructions of a soon-to-be four-year-old YouTube tutorial the official Django 4.1 introduction/tutorial.
Note
This project is perhaps mostly a personal exercise in proper python project management, originally as outlined in Alex Mitelman's article "Python Best Practices for a New Project in 2021" through the use of tools such as pyenv and Poetry, since then adapted to astral.sh's uv. If you do for whatever reason go through the effort to set this up and run it and find yourself a bug, I'd be honored by a report!
See also the "wiki" document for additional project information and instructions.
- This project and it's python dependencies are managed through astral.sh's wonderful
uv; making Python bearable, nay; fun to use since '23 - Aside from that, TailwindCSS is used for template styles, in an exercise of "modern" web-dev practices. Their CLI tool is required to update and maintain key styles by the project, although should not be strictly neccecary if you are only modifying the backend.
Get uv, then;
$ git clone https://github.com/0xBA5E64/dyablog # Clone the repository
$ cd dyablog # Enter the project directory
$ uv run ./manage.py collectstatic # Populate project static files
$ uv run ./manage.py migrate # Generate initial empty database
$ uv run ./manage.py createsuperuser # Create an admin account
$ code . # Open project in vscode.
$ tailwindcss -i blog/static/blog/style.css -o blog/static/blog/tailwind.css -w & uv run ./manage.py runserver # start the development server *with* Tailwind CSS