Django
- Starting webserver using your first simple Django project
- Creating admin login credentials for Django
- Writing first Django Application
- Understanding Django project and app binding / architecture
- How to define different urlpatterns in view.py for Django
- How to set / change the timezone in Django ?
- Understanding Django application “models”
- Writing first model for your Django App
- How to add Model to Django admin dashboard
- How to change default SQLite database in Django project
- How to solve Django Bad Request 400 error ?
- Solved: DisallowedHost – Invalid HTTP_HOST header
- Solved: Django makemigrations “No changes detected”
- Solved: django.db.utils.OperationalError: no such table
- Solved – /usr/bin/python: No module named django
- Solved: django.template.exceptions.TemplateSyntaxError: ‘staticfiles’ is not a registered tag library
Django Production Server
- Writing first WSGI application and running it with uWSGI
- What is Nginx and how to install Nginx on Ubuntu 20.04 ?
- Hosting a static website with Nginx on Ubuntu
Django REST API
- Install Django REST Framework on Ubuntu
- Developing first REST API using Django Rest Framework ( DRF )
- Developing REST API using functions in DRF application views
- Writing class based Views in Django REST Framework
- How to set password authentication for Api Root / DefaultRouter in Django REST
- How to define different urlpatterns in view.py for Django
- What is routers in Django REST Framework ?
- Understanding many-to-one relationship and implementing it using ForeignKey in Django / DRF
- Understanding many-to-many relationship and implementing it using models.ManyToManyField in Django / DRF
- How to implement writable nested model serializer (Json object in another JSON object) for Django REST Framework
- How to create JSON objects with unique entries in Django REST Framework ?
- How to debug http GET / POST Requests and its data payloads in Django REST Framework ?
- Why filters are required in Django REST Framework ?
- Implementing filtering against query parameters for viewsets in DRF
- How to customise API Root in Django REST Framework
- Using status codes in Django Response to make it better readable
- How to delete single and multiple objects in Django / DRF
- How to implement Edit and Delete with Django REST Framework
Pagination
- How to implement Pagination with Django & Django REST Framework
- Solved: Pagination may yield inconsistent results with an unordered object_list
Common Errors and its solutions
- How to solve Django Bad Request 400 error ?
- Solved: Forbidden (CSRF cookie not set.)
- Solved: MultipleObjectsReturned: get() returned more than one UserInfo — it returned
- Solved : The .create() method does not support writable nested fields by default.
- Solved: In order to allow non-dict objects to be serialized set the safe parameter to False.
- Solved: __init__() takes 1 positional argument but 2 were given
- Solved: TypeError: object is not iterable
- How to fix errors related to REST Http POST & JSON for websites developed using openclassifieds / yclas