Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3167 Zobrazení

Hello,


I'm trying to edit the main.py controller file to make some sites available only after the user login.


For example, i have two sites:


www.mysite.com/site1

www.mysite.com/site2


I want to be able to view site1 without login and site2 private, only after the user logged in.


In the main.py i'm trying to add a new method:


@http.route('/site2',type='http',auth='user',website=True)

    def site2(self,**kw):

    // i don't know what put here


Someone can help me with the information i have to put to get what i want?


Thanks for your help

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
4
kvě 25
3935
2
led 25
2220
4
led 25
4350
0
lis 24
1655
1
lis 24
2454