My Tennis Club is a web application used to represent some data about the members of a tennis club. This is my first-ever Django project and it was intended for learning purposes only.
- WhiteNoise: Pip package that allows web apps to serve their static files such as JavaScript, CSS, and Images.
- SQLite: Embedded, serverless relational database management system.
You can follow these steps to set up and run the project on your local machine.
Before you begin, ensure you have met the following requirements:
- Python 3.7 or later is required (You can download Python from the official website: https://www.python.org/downloads/)
-
Clone the repository
git clone https://github.com/SSHshadow222/my-first-django.git cd my-first-django
-
Create and activate a virtual environment
> py -m venv .venv > .venv\Scripts\activate.bat
$ python -m venv .venv $ source .venv/bin/activate
-
Install dependencies
cd src pip install -r requirements.txt
-
Configure the environment file
Create a .env file in my_tenis_club and add a secret key:
SECRET_KEY=your_secret_key
To generate a random secret key run the following commands:
$ python manage.py shell >>> from django.core.management.utils import get_random_secret_key >>> print(get_random_secret_key())
-
Finally, run the server
$ python manage.py runserver