Skip to main content
Use JsonResponse instead
Use ‘django.db.models.OneToOneField’ instead of ‘ForeignKey’ with unique=True. ‘OneToOneField’ is used to create one-to-one relationships.
You are using environment variables inside django app. Use django-environ as it a better alternative for deployment.
I