Welcome to the project! This project is made with Django and includes a MySQL database. You can import SQL files to initialize the database with sample data.
The project was made to manage maintenance requests
To run this project, you need to install the following dependencies:
- Python 3.7 or higher
- Django 3.2.18 or higher
- MySQL 5.7 or higher
- mysqlclient
You can install other dependencies using pip. Run the following command in your terminal:
pip install -r requirements.txt
To import SQL files into the database, follow these steps:
- Open your terminal and navigate to the project directory.
- Activate your virtual environment if you are using one.
- Make sure you have MySQL installed and running.
- Create a new database by running the following command:
mysql -u <username> -p -e "CREATE DATABASE <database_name>"
Replace <username>
with your MySQL username and <database_name>
with the name of the database you want to create.
- Import the SQL file by running the following command:
mysql -u <username> -p <database_name> < <path_to_sql_file>
Replace <username>
with your MySQL username, <database_name>
with the name of the database you created, <path_to_sql_file>
with the path of the SQL file found in the project root directory
- Rename the file
.env.example
to.env
and replace<your_mysql_password>
with your database password
To run the project, follow these steps:
- Open your terminal and navigate to the project directory.
- Activate your virtual environment if you are using one.
- Run the following command to start the development server:
python manage.py runserver
-
Open a web browser and navigate to the URL shown in the terminal output.
-
To view the project use the following username and password
Username: admin Password: Sh@redP@ss123
That's it! You should now be able to view and interact with the project.