This my personal blog I am developing while exploring Python and Django more. The online version is available at https://www.makarudze.com.
This blog requires the following:
- Django 4.0+
- MySQL
- Python 3.9+
- Clone this repo.
- Create a virtual environment.
- Run
pip install pip-tools
to installpip-tools
which is used to manage the requirements for this project. - Install required packages by running
pip install -r requirements.txt
. - Create a MySQL database.
- Edit the
.env-example
with your environment variables, including database name and run migrations. - To make changes to the
requirements.txt
, editrequirements.in
then runpip-compile
to generate an updatedrequirements.txt
.
- Run
coverage run -m pytest
to run tests.
- Create a superuser.
- Login through Django admin and add posts and all other content.