To adhere to Django's best practices, create a view that employs dynamic field serialization for a Django project featuring basic Author and Book models.
The project focuses on maintaining a clear and organized structure, adhering to Django best practices. The Book model leverages custom queryset and manager classes, showcasing an extensible design for future enhancements. The ForeignKey relationship establishes a connection between authors and their respective books. Overall, the project is well-documented, providing usage examples for the custom queryset and manager methods.
List the software and tools that need to be installed before running the Dhango Project. Provide links to installation instructions if necessary.
- Python: Installation Guide
- Django: Installation Guide
-
Clone this repository:
git clone https://github.com/devketanpro/apexive_test
-
Checkout in to the branch:
git checkout main
-
Install dependencies:
pip install -r requirements.txt
-
Goto Project Directory
cd apexive_test
-
Start the development server:
python manage.py runserver
-
Run tests:
python manage.py test
-
Access the application at
http://localhost:8000/
-
Use this book API (
http://localhost:8000/books/
) to perform book related action. -
Use this author API (
http://localhost:8000/author/
) to perform author related action.