My Tennis Club, powered by Django, which is featured in W3school Django tutorial
These are pages featured in the website:
Notice the yewllo-lined text, which indicates a slug that consists of the member's firstname and lastname. This can enhance search engine optimization
Before running the app, please make sure you have following software installed in your machine:
- Create a virtual environment
python3 -m venv .venv
- Navigate to this directory, then activate the virtual environment
source .venv/bin/activate
- Install required packages
pip3 install -r requirements.txt
- Make a new file named
.env
, then copy.env.example
and paste the content into it
cp .env.example .env
After that, fill .env
with appropriate values
- Create a database (Make sure you have MySQL installed in your machine beforehand)
python3 mydb.py
- Apply database migration
python3 manage.py migrate
- Create a superuser of Django admin panel
python3 manage.py createsuperuser
You will then by asked several questions, such as username
, email
, and password
of the superuser.
- Finally, run the server!
python3 manage.py runserver
- Voila! Visit http://localhost:8000 on your browser
- Fix styling of the
all members
page - Put available routes in the docs
- Add a Dockerfile