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-toolsto installpip-toolswhich 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-examplewith your environment variables, including database name and run migrations. - To make changes to the
requirements.txt, editrequirements.inthen runpip-compileto generate an updatedrequirements.txt.
- Run
coverage run -m pytestto run tests.
- Create a superuser.
- Login through Django admin and add posts and all other content.