This project is a test by Computiq to test the skills of the participants in the back-end part and their proficiency. This project adds fields to a table and queries about these fields, and there is an integrated application for the Users.
- Fork this repo into your device and open it in any code editor.
- You need Python Versin is 3.11.0
- You need to install the Requirements by Type this in console
pip install -r requirements.txt
- first thing you need to migrate to build database. because i am using a custom User model, you can do 4 steps:
- Comment out django.contrib.admin in
CareerAcceleratorTask0/settings/INSTALLED_APPS
INSTALLED_APPS = [
...
#'django.contrib.admin',
...
]
- Comment out admin path in
CareerAcceleratorTask0/urls.py/
urlpatterns = [
...
#path('admin/', admin.site.urls)
...
]
- Then run
python manage.py makemigrations
python manage.py migrate
- When done, uncomment all back
-
now you can run project by type
python manage.py runserver
-
To see the api go to this url http://127.0.0.1:8000/api/docs/