Posts Tagged with 'Django'

Django | Check Version  To check for the version of Django installed on your system, you can open the command prompt and enter the following command: python -m django –version You can also try to import …

Last updated 1 year, 10 months ago | 399 views

Tags:- Django

Using the query method we can print SQL query from the queryset post = Post.objects.all() print(post.query)  

Last updated 1 year, 10 months ago | 425 views

Tags:- Django

The csrf_token is used for protection against Cross-Site Request Forgeries. This kind of attack takes place when a malicious website consists of a link, some JavaScript, or a form whose aim is to perform some …

Last updated 1 year, 10 months ago | 373 views

Tags:- PHP Django CodeIgniter

Django is a framework that allows you to build large projects. On the other hand, Flask is used to build smaller websites but flask is much easier to learn and use compared to Django. Django is …

Last updated 1 year, 10 months ago | 406 views

Tags:- Django

Django | NoSQL NoSQL basically stands for “not only SQL”. This is considered an alternative to the traditional RDBMS or relational Databases. Officially, Django does not support NoSQL databases. However, there are third-party projects, such as …

Last updated 1 year, 10 months ago | 397 views

Tags:- Django

Django | Middleware  Middleware is something that executes between the request and response. In simple words, you can say it acts as a bridge between the request and response. Similarly In Django when a request is made …

Last updated 1 year, 10 months ago | 411 views

Tags:- Django

Django | Cookie  A cookie is a small piece of information that is stored in the client's browser. It is used to store a user’s data in a file permanently (or for a specified time). Cookie …

Last updated 1 year, 10 months ago | 431 views

Tags:- Django

Django | Session Framework Using the session framework, you can easily store and retrieve arbitrary data based on the pre-site-visitors. It stores data on the server side and takes care of the process of sending and …

Last updated 1 year, 10 months ago | 390 views

Tags:- Django

Django | Disadvantages  Django has the following disadvantages: Django's modules are bulky. It is completely based on Django ORM. Components are deployed together. We must know the full system to work with it.

Last updated 1 year, 10 months ago | 397 views

Tags:- Django

Django | ORM ORM stands for Object-relational Mapper. Instead of interacting with the database by writing raw SQL queries and converting the data returned from the query into a Python object, ORM allows us to interact …

Last updated 1 year, 10 months ago | 372 views

Tags:- Django

Django |  Loosely Coupled Framework Django is called a loosely coupled framework because of its MVT architecture, which is a variant of the MVC architecture. It helps in separating the server code from the client-related code. Django’s …

Last updated 1 year, 10 months ago | 689 views

Tags:- Django

Django | Model  A model is a Python class in Django that is derived from the django.db.models.Model class. A model is used in Django to represent a table in a database. It is used to interact …

Last updated 1 year, 10 months ago | 424 views

Tags:- Django

Django | Difference between a project and an app The project covers the entire application, while an app is a module or application within the project that deals with one dedicated requirement. So, a project consists …

Last updated 1 year, 10 months ago | 406 views

Tags:- Django

Django rest framework  authentication error “ TypeError: 'type' object is not iterable ” This error comes because "authentication_classes" expecting an iterable(list/tuple) but somehow it is getting something else. So it needs to check a few …

Last updated 2 years, 11 months ago | 4718 views

Tags:- Python Django django-rest-framework

Django I Migrate Error: TypeError expected string or bytes-like object "TypeError: expected string or bytes-like object", says the value we have provided for updating the field for the model is not supported. So to resolve this issue …

Last updated 2 years, 11 months ago | 5674 views

Tags:- Django