This repository contains a Django application. Follow the steps below to prepare the environment and run the application.
- Python 3.x installed on your system
- pip package manager
-
Install
virtualenv
if you haven't already:pip install virtualenv
-
Create a virtual environment named
djangoenv
:virtualenv djangoenv
-
Activate the virtual environment. Use the appropriate command based on your operating system:
- Linux/MacOS:
source djangoenv/bin/activate
- Windows:
djangoenv\Scripts\activate
- Linux/MacOS:
-
Install the required dependencies from the
requirements.txt
file:python3 -m pip install -U -r requirements.txt
-
Run database migrations to create necessary database schema:
python3 manage.py makemigrations python3 manage.py migrate
-
Start the Django development server:
python3 manage.py runserver
-
Access the application in your web browser at
http://127.0.0.1:8000/
- Make sure to replace
python3
with the appropriate command if your Python executable has a different name. - Adjust the virtual environment activation command according to your operating system.
- Ensure that the necessary database configurations are set up in the Django settings file (
settings.py
).