This is a simple web application that allows users to schedule events, register for them, and maintains a record of the events and registrations. The application uses MySQL for its database, and you have two options to set up the database:
- Install MySQL on your local machine and configure a username and password.
- Replace the inactive RDS instance endpoint in the
views.py
file with the appropriate local MySQL connection details. - Update the
username
andpassword
in thedatabase_creation.py
file with the credentials you used while installing MySQL. - Use
localhost
for the database host - Run
database_creation.py
to create the necessary database, tables, and relationships.
Follow the steps below to run the Event Scheduling and Registration System application using a local MySQL installation:
-
Install MySQL instance:
- Install MySQL(Follow above steps).
-
Install Required Libraries:
- Open a terminal and run the following command:
pip install -r requirements.txt
- Open a terminal and run the following command:
-
Create Database and Tables:
-
Run
database_creation.py
to create the necessary database. -
Update the
username
andpassword
in thesettings.py
file with the credentials you will use to establish a connection. -
Create and apply the migrations to update the database schema:
python manage.py makemigrations python manage.py migrate
-
-
Run the Server:
- Execute the following command to run the server:
python manage.py runserver
- Execute the following command to run the server:
-
Access the Application:
- Use the local address
127.0.0.0/
- Use the local address
- This application is built for educational purposes and it is not for production.
- It's essential to follow security best practices when deploying applications to production environments.
- Avoid exposing sensitive information, such as database credentials, in public repositories. Consider using environment variables or other secure methods for configuration.
Feel free to explore and modify the code to suit your needs. If you encounter any issues or have suggestions for improvements, please open an issue on this repository.