[Answer]-Django throws datetime.datetime has no attribute encode error when activating admin site

1👍

Without seeing your Annoucement model, it’s hard to tell, but it seems probable that you are returning a datetime from your __unicode__ method, instead of an actual unicode string.

Leave a comment