Django LMS is a Learning Management System using the framework, you guessed it right, Django. The system gives teachers and students a simple platform to upload resources and assignments.
The project started as a challenge to improve and test my knowledge of Django. The initial version of this project was created within 5 days.
- Python
- Django
- HTML
- CSS
- Bootstrap
- Tailwind
This platform is fairly simple yet provides most of the necessary features required in a Learning Management System. It uses Django's MTV architecture.
- Signup
- Login
- Logout
- Course Creation
- Course Deletion
- Assignment Creation
- Assignment Submission
- Assignment Deletion
- Delete Submission
- Grade Submission
- Resource Creation
- Resource Deletion
- User Profile
The installation process involves cloning this repository, installing mysql-server, running this website and installing tailwind whic is used for styling.
-
Clone this repo to your local machine.
-
Install mysql-server and create a database named 'django_lms'. For those using linux, you can follow this tutorial to install mysql-server.
-
Note the password you have assigned to the root user you will need it later.
-
Open the project in your favorite code editor
-
Delete the existing virtualenv folder then ,open terminal then create a virtual Environment using the command
python3 -m venv virtualenv
. -
Activate the virtual environment using the command
source virtualenv/bin/activate
. -
Install the requirements using the command
pip install -r requirements.txt
. -
Open the settings.py file in the django_lms folder of the project and change the password in the database dictionary to the password you assigned to the root user.
this is how the database dictionary should look like after changing the password.
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'django_lms', 'USER': 'root', 'PASSWORD': 'your_password_type_here', 'HOST': 'localhost', 'PORT': '3306', }
-
Run the command
python manage.py makemigrations
thenpython manage.py migrate
to create the tables in the database. -
Then install tailwind for django using this commands:
python -m pip install django-tailwind[reload]
python manage.py tailwind install #ensures tailwind dependencies are installed
- Finally to run the project use the command
python manage.py tailwind start
in one terminal then open another terminal in the same directory and ensure you are in the virtual environment by typingsource virtualenv/bin/activate
. then the command :python manage.py runserver
to run the website. - Open your browser and type
localhost:8000
in the address bar to view the website.