To convert the datetime object to a Unix timestamp using Django:
from django.utils.dateformat import format
timestamp_string = format(datetime.now(), u'U')
Now go forth and be happy!
Mainly notes to future-Twig (and for anyone else who may find them useful)
If you've found one or more of my blog posts helpful, why not say thanks by buying me a coffee or beer?
To convert the datetime object to a Unix timestamp using Django:
from django.utils.dateformat import format
timestamp_string = format(datetime.now(), u'U')
Now go forth and be happy!