librelist archives

« back to archive

How to get Django like login page for Flask-Admin

How to get Django like login page for Flask-Admin

From:
Kundan Singh
Date:
2013-04-22 @ 02:32
I'm using Flask-Admin and to make it accessible i have coded that a user
with role ROLE_ADMIN can access the ADMIN interface.

It works fine. But it shows no page to those having non-admin role (a blank
page). and to access the ADMIN, admin need to login into website first and
then got to mywebsite.com/admin to access it.

While in Django we have facility of a Login page in which you can login
with your credentials.

How can we have similar Login page in Flask-Admin?

Please Suggest.

Re: [flask] How to get Django like login page for Flask-Admin

From:
Wellington Cordeiro
Date:
2013-04-22 @ 02:38
Flask-Admin isn't part of the Flask core. You should take this question to
the Flask-Admin issues page at Github.
https://github.com/mrjoes/flask-admin/issues

On Apr 21, 2013 8:34 PM, "Kundan Singh" <ksingh.pilani@gmail.com> wrote:

> I'm using Flask-Admin and to make it accessible i have coded that a user
> with role ROLE_ADMIN can access the ADMIN interface.
>
> It works fine. But it shows no page to those having non-admin role (a
> blank page). and to access the ADMIN, admin need to login into website
> first and then got to mywebsite.com/admin to access it.
>
> While in Django we have facility of a Login page in which you can login
> with your credentials.
>
> How can we have similar Login page in Flask-Admin?
>
> Please Suggest.
>

Re: [flask] How to get Django like login page for Flask-Admin

From:
Nathan M
Date:
2013-04-22 @ 06:11
that's because you didn't coded any path for non admin users. Flask admin
only takes care of the admin part, the rest of your site is up to you
Le 22 avr. 2013 04:40, "Wellington Cordeiro" <willy1234x1@gmail.com> a
écrit :

> Flask-Admin isn't part of the Flask core. You should take this question to
> the Flask-Admin issues page at Github.
> https://github.com/mrjoes/flask-admin/issues
>
> On Apr 21, 2013 8:34 PM, "Kundan Singh" <ksingh.pilani@gmail.com> wrote:
>
>> I'm using Flask-Admin and to make it accessible i have coded that a user
>> with role ROLE_ADMIN can access the ADMIN interface.
>>
>> It works fine. But it shows no page to those having non-admin role (a
>> blank page). and to access the ADMIN, admin need to login into website
>> first and then got to mywebsite.com/admin to access it.
>>
>> While in Django we have facility of a Login page in which you can login
>> with your credentials.
>>
>> How can we have similar Login page in Flask-Admin?
>>
>> Please Suggest.
>>
>