KU Lend is a website that allows staff and students who want to borrow a device that they need to use for education from Kasetsart University. This website would reduce the process of borrowing and the staff can prepare the device before the borrowing date.
git clone https://github.com/ChanunyaO/KU-Lend.git
python -m pip install --upgrade pip
pip install -r requirements.txt
Create a new file .env
and copy the content of .env.template
. Add django Secret key and Email Password to your .env
file.
python manage.py makemigrations
python manage.py migrate
Load site data
python manage.py loaddata ku_lend/fixtures/site.json
Load user data for login via admin if you not setting OAuth login
python manage.py loaddata ku_lend/fixtures/users.json
Load item data
python manage.py loaddata ku_lend/fixtures/item.json
python manage.py runserver
Your app should now be running on https://127.0.0.1:8000/
You should login as admin before using web application at https://127.0.0.1:8000/admin or click staff button at index page.
Username | Password |
---|---|
admin | 123 |
For login as user, you should using Google service for enable oauth login.
- Please follow Step 4 and Step 5 in Google Oauth setting guide.