Skip to content

Instantly share code, notes, and snippets.

@altendky
Forked from morenoh149/django_synthetic_monitor.py
Last active January 11, 2017 17:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save altendky/703f6dead8e602d91f03ba9504f950c6 to your computer and use it in GitHub Desktop.
Save altendky/703f6dead8e602d91f03ba9504f950c6 to your computer and use it in GitHub Desktop.
def monitor_model():
try:
user = User().save()
except:
result = 'failed'
else:
result = 'passed'
user.delete()
return django.http.Response(result)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment