

It takes django user as the parameter to do so. The time/date is not changed if the post is updated later after the post.Īuthor: This attribute takes account of the user posted this post. Default value timezone.now saves the time at which this post is created. If a user upload a picture, it is uploaded in the directory named post_picture, set by the attribute upload_to.Ĭaption: This field depicts the description of the image named as caption for the image field.ĭate posted: This field takes account of the time and date the image is uploaded. This Image is located in a folder named Media in your my_project directory. The default value includes a default image which I have named as default_ is automatically saved when no picture is available or posted by the user.

Image field: This field allows to store image in the database. Let us understand the details of each filed used. Name of the model is post model (it could be any of your choice).

Analysis of Algorithms | Set 4 (Analysis of Loops).Analysis of Algorithms | Set 2 (Worst, Average and Best Cases).Analysis of Algorithms | Set 3 (Asymptotic Notations).Analysis of Algorithms | Set 1 (Asymptotic Analysis).Commonly Asked Data Structure Interview Questions | Set 1.
SQLEDITOR CREATE A COMMENT AREA FULL
