A helper function for quick and dirty sql calls.
1 2 3 4 | def executesql(query,param):
from django.db import connection
cursor = connection.cursor()
return cursor.execute(query,param)
|
More like this
- csrf test by zukosdead 1 month, 2 weeks ago
- find even number by Rajeev529 9 months, 3 weeks ago
- Form field with fixed value by roam 10 months, 2 weeks ago
- New Snippet! by Antoliny0919 10 months, 3 weeks ago
- Add Toggle Switch Widget to Django Forms by OgliariNatan 1 year, 1 month ago
Comments
Please login first before commenting.