To compare two times you need to do the following: ```python from datetime import datetime,timedelta d = datetime.now() d1 = d+timedelta(minutes=20) if d < d1:…
Surprise, surprise, when you want to perform some actions on model delete, overriding delete() method may be not enough, because when you do bulk delete of models via …
Use this: ```python urlresolvers.reverse("admin:%s_%s_change" % (self.model._meta.app_label, self.model._meta.module_name), args=(object_id,)) ``` to redirect to o…
If you wonder sometimes why your subscribers or partners don't receive email messages from you - check your Ip or domain. It can be blacklisted by various mail servers…
This story happened to me last Sunday. That perfect morning, I logged in my email and found a message from GoDaddy telling that all my domains have been transfered. "O…
Hello! My name is Tim and this is my very first post in this blog. Well, I often thought about setting up a standalone blog and here it is, my dream became true. Main …

Get More 🔥 Tips

Subscribe to get notified about new dev tutorials