Some text
-
Slug: A slug is a short label for something, containing only letters, numbers, underscores or hyphens.
-
JSON: JavaScript Object Notation
Example:
{
"name": "John",
"age": 30
}
- CSV: Comma Separated Values
Example:
name,age
John,30
- YAML: Yet Another Markup Language
Example:
name: John
age: 30
- XML: eXtensible Markup Language:
Example:
<name>John</name>
<age>30</age>
HTML: HyperText Markup Language
Example:
<h1>John</h1>
<h2>30</h2>
Auth User Model:
https://docs.djangoproject.com/en/4.2/topics/auth/customizing/#using-a-custom-user-model-when-starting-a-project
API: Apllication Programming Interface. It is a set of routines and standards established by a software application to be used by another software as a layer of abstraction.
REST: Representational State Transfer. It is a set of constraints to be used when creating web services.
RESTFul: A web service that implements the REST constraints.
Queryset: A list of objects of a given model.
Mixin: n object-oriented programming (OOP), a mixin is a class that provides a specific set of behaviors or functionalities that can be added to other classes. Mixins allow for code reuse and composition by providing a way to add functionality to multiple classes without using traditional inheritance.
Kwargs: Keyword arguments. It is a dictionary that contains the names and values of the arguments of a function.
Decorator: A decorator is a function that takes another function and extends the behavior of the latter function without explicitly modifying it. Example:
WSGIRequest: Class is an integral part of Django's request/response cycle. It provides a standardized and convenient way to access and manipulate information about an incoming HTTP request within Django's framework. By extending the HttpRequest class, WSGIRequest inherits all the core functionalities of an HTTP request and adds additional features specific to the WSGI interface.
@api_view(['GET', 'POST'])
- Q1
- Q2
- Q3
[Include any other notes or observations you wish to make.]
python manage.py makemigrations polls