Critical Warning:
This guide is only for development environment. If you want to deploy this application into production, please turn off the debug mode and set your own secret key inenligencelab_backend/settings.py
. Find more at Django Documentation.
This Django application is used as the backend of the Enligence Laboratory Official Website, also used as the administration system of the laboratory.
First, you need to install Python 3.8 or higher, and then install the dependencies.
pip install -r requirements.txt
Secondly, you need to get into the project directory and run the following commands to initialize the database.
python manage.py makemigrations
python manage.py migrate
Finally, you can run the development server. The default port is 8000.
python manage.py runserver
Use the following command to create a superuser account.
python manage.py createsuperuser
After the all those steps, you can finally visit the administration website at http://localhost:8000/admin.