This is a backup of an abandoned project that implements APIs for a partyroom booking system using Django, Django Rest and MySQL.
!
-
download python 3.9 and run
pip install requirements.txt -
Then remove and create a new db.sqlite3 in folder partyroom_server
-
Find setting.py in partyroom_server folder
-
goto line 116 uncomment the code
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': BASE_DIR / 'db.sqlite3', } }and comment the that code use mysql -
Under the path partyroom_server, run
python manage.py makemigrations,python manage.py migrate
Under the path partyroom_server
run python manage.py runserver
If you want to check docs, goto docs