Figured this out just after posting this... swear I had tried this, but in 
case anyone else had issues around this:

In your controller that renders the view you want to add a form to (let's 
use the login form as an example) add this to your list of imports:
from flask.ext.security.forms import LoginForm

then change your returned template to include the form like this:

return render_template(... login_user_form=LoginForm())

Where the ellipses is whatever other arguments you had in the 
render_template call. Now in your template you'll have access to the 
variable login_user_form which makes it that you can duplicate the form 
found in the /security/login_user.html 

Hope this helps someone.

On Thursday, September 26, 2013 6:42:42 PM UTC-7, Mark VonRosenstiel wrote:
>
> I'm new to using Flask (and Python as well), so some of this may be an 
> ignorance to how imports work, but I'm playing around with the 
> Flask-Security extension and wanted to display the register and login forms 
> on frontend template of mine. Is there a way to show Flask-Security forms 
> outside of their default view files? Any advice would be much appreciated. 
> Thanks.
>

-- 
You received this message because you are subscribed to the Google Groups 
"pocoo-libs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pocoo-libs.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to