I make new app and some controller in it without any view - only 
generic.html

than I try open url to that coontroller from public - error rised "Not 
found"

so I need to search WHY?
one day I lose for solve "WHY?"

may be open access to generic.html by default?

вторник, 14 июля 2015 г., 21:01:21 UTC+3 пользователь Dave S написал:
>
>
>
> On Tuesday, July 14, 2015 at 9:41:29 AM UTC-7, [email protected] 
> wrote:
>>
>> I make simple app and upload it to server
>> then all external request raise "Not Found" :(
>>
>> I kill a day for solve it problem
>>
>> Please edit in menu.py code: 
>> ####response.generic_patterns = ['*'] if request.is_local else []
>> #IS_LOCAL = request.is_local
>> response.generic_patterns = not IS_LOCAL and (request.aplication == 
>> 'admin' or request.controller == 'appadmin') and [] or ['*']
>>
>>
>
> Isn't that a security feature?  Generic views are restricted to local use 
> for debuging (they expose a lot of stuff the user doesn't need).  The admin 
> functions are also restricted to local or https, to limit the number of 
> people trying to crack the password.
>
> Did you implement a specific view  for your controller functions?
>
> /dps
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to