0👍
Standard datetime formatting requires preformatted characters to be surrounded in quotes. Try this:
DATETIME_FORMAT = "Y-n-j'T'H:i:s"
- [Django]-Static Sitemap.xml Django
- [Django]-Django – How to update a field inside a model save() method?
0👍
You should just use the c
value on its own, which matches the standard ISO format – which is what your desired format is.
- [Django]-Django Migration: Not reflecting changes | creates only id
- [Django]-Django – button url
- [Django]-Celery use wrong broker
Source:stackexchange.com