Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Will Django send me an email if exception rises at admin site?
- $ ./manage.py shell
- >>> from django.core.mail import EmailMessage
- >>> email = EmailMessage('Hello', 'World', to=['email@example.com'])
- >>> email.send()
- class MyModelAdmin(ModelAdmin):
- raise Exception
- class MyModelAdmin(ModelAdmin):
- def get_queryset(self, request, queryset):
- raise Exception
Add Comment
Please, Sign In to add comment