[go: up one dir, main page]

0% found this document useful (0 votes)
62 views1 page

Django Sample Exercises

The document outlines a step-by-step guide for setting up a Django project, including installation, configuration, and basic functionality. It covers creating views, templates, forms, user authentication, and CRUD operations, as well as integrating a MySQL database and Django REST Framework for API development. Each step emphasizes best practices and principles such as DRY and input validation.

Uploaded by

ekta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
62 views1 page

Django Sample Exercises

The document outlines a step-by-step guide for setting up a Django project, including installation, configuration, and basic functionality. It covers creating views, templates, forms, user authentication, and CRUD operations, as well as integrating a MySQL database and Django REST Framework for API development. Each step emphasizes best practices and principles such as DRY and input validation.

Uploaded by

ekta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

1.

Install Django and create a new project


2. Customize settings and understand Django environment variables.
3. Display “Hello, World” in a browser using a basic Django view.
4. Setup and connect a MySQL database using Django.
5. Create multiple views and map them to different URLs.
6. Create and use Django templates to render dynamic data.
7. Implement template inheritance to follow DRY (Don’t Repeat Yourself) principle.
8. Display user-entered values from URL patterns using path parameters.
9. Create a form using Django’s Form class and display it in a template.
10. Validate input fields and display error messages.
11. Implement user registration and login using Django’s built-in auth.
12. Perform CRUD operations on a model (Create, Read, Update, Delete).
13. Install Django REST Framework and set it up in a project.
14. Create REST API endpoints for CRUD operations (GET, POST, PUT, DELETE).

You might also like