> ## Documentation Index
> Fetch the complete documentation index at: https://docs.codeant.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Best practice

> [accordion] use-json-response
>
> Use JsonResponse instead

> [accordion] use-onetoonefield
>
> Use 'django.db.models.OneToOneField' instead of 'ForeignKey' with unique=True. 'OneToOneField' is used to create one-to-one relationships.

> [accordion] use-django-environ
>
> You are using environment variables inside django app. Use `django-environ` as it a better alternative for deployment.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.