80333/how-to-change-the-default-django-date-template-format
Hello @kartik,
Within your template, you can use Django's date filter. E.g.:
<p>Birthday: {{ birthday|date:"M d, Y" }}</p>
Gives:
Birthday: Mar 05, 1998
hope this helps!! Thank you!!
Hello @kartik, The easiest way for your use ...READ MORE
Hello @kartik, In your profile model provide related_name user ...READ MORE
Hello @kartik, You can fetch the URL in ...READ MORE
You can use str(variablename) This is called conversion ...READ MORE
Hi, there is only that way and ...READ MORE
Hi all, with regard to the above ...READ MORE
Hello @kartik, To turn off foreign key constraint ...READ MORE
Hello @kartik, Let's say you have this important ...READ MORE
Hello @kartik, Only change your pub_date if published has ...READ MORE
Hello @kartik, The basic way is import os os.rename('a.txt', 'b.html') For ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.