djangosnippets.org: Latest snippets tagged with 'sqlalchemy'https://djangosnippets.org/tags/sqlalchemy/2009-01-19T14:40:40-06:00Formalchemy hack for newforms-based form validation2009-01-19T14:40:40-06:00erobhttps://djangosnippets.org/snippets/1291/<p>Very simple proof-of-concept that uses the django.forms library (newforms) for validation,
and formalchemy for saving the model instance using sqlalchemy.</p>
<p>it can be used like this (pseudo-code):</p>
<p>if form.is_valid():
form.save(session=Session, app_label='Contact')</p>
<p>Feel free to improve the concept. Ideally, either use formalchemy or django.forms ...</p>
Freely redistributable