Posts

Showing posts with the label Django

How to query with Django DateTimeRangeField

Image
 Some examples of querying DateTimeRangeField with Django ORM

If I need a Django free hosting service

Image
 there are two free hosting platform: 1]  2] 

Technical Notes: Django migrations system

Image
I read Real Python blogs about Django migrations In this blog I'll refer to the most important ideas blogs mentioned In end of the blog, I will put the links to these blogs Section 1: Understanding SeparateDatabaseAndState: SeparateDatabaseAndState is instantiated with two lists of operations:     1. State Operations:             contains operations that are only applied to the project state     2. Database Operations:            contains operations that are only applied to the database      This operation lets you do any kind of change to your database, but it’s your responsibility to make sure that the project state fits the database afterwards. Example use cases for  SeparateDatabaseAndState  are moving a model from one app to another or creating and index on huge database without downtime.     It is  an advanced operation and you won’t need on your first...