Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3300 Visualizzazioni

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
4
mag 25
6886
2
gen 25
2494
4
gen 25
4701
0
nov 24
1915
1
nov 24
2716