Hi,
Thanks for your reply.
I went for the short circuit option:
if request.application == 'admin':
redirect('https://ldc.leonexus.nl')
What would the routes.py solution look like? I have a parametric routes.py
which amongst others
contains the following lines of code:
routers = dict(
B
this is far clearer.
If you want a single web2py instance to behave like that, you NEED to use
routes.py, enabling/disabling routes to the admin app inspecting the
hostname it's called in.
OR, you can just short-circuit admin adding a model file (name it
alphabetically so it gets executed bef
Hi Anthony,
Thanks for your reply.
I apologize for not being clear enough,
I have one installation of web2py and 4 applications each being referenced
by their own domain.
dbadmin by admin.mydomain.com
init by www.mydomain,com
etc.
I only want acces the web2py interface via admin.mydomain.com
On Friday, December 2, 2016 at 9:29:00 AM UTC-5, Annet wrote:
>
> Hi,
>
> Thanks for your reply. You mean an empty .py file named DISABLED
>
That will completely disable the app, not prevent it from showing up in
admin.
>
> What does ATM stand for?
>
"at the moment," probably.
Anthony
--
R
On Friday, December 2, 2016 at 5:38:56 AM UTC-5, Annet wrote:
>
> I have an application with limited functionality in which I want to access
> web2py's admin interface.
>
> I have 3 application in the same web2py installation in which I want to
> disable the admin interface.
>
So, when you log int
Hi,
Thanks for your reply. You mean an empty .py file named DISABLED
What does ATM stand for?
Kind regards,
Annet
--
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
you open /admin ?!
why is that an issue ?
BTW: for disabling ATM you can just put a "DISABLED" file in the root
folder of the app.
On Friday, December 2, 2016 at 11:38:56 AM UTC+1, Annet wrote:
>
> I have an application with limited functionality in which I want to access
> web2py's admin inte
the thing is that tickets are generated only in google chrome, in FF admin
iface works just fine.
'dict' object has no attribute
'is_mobile'
On Tuesday, December 3, 2013 10:05:36 PM UTC+2, shapova...@gmail.com wrote:
>
> hmmm,
>
> Had the same problem with admin (looked like no js and css),
hmmm,
Had the same problem with admin (looked like no js and css), I've replaced
^/([^/]+)/static/?(.*)
with
AliasMatch ^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*) \
in two places in my vhosts configuration section, now all I get is tickets,
that I cannot see. Any ideas?
On Tuesday, De
On Monday, December 2, 2013 7:46:46 PM UTC-8, Dave S wrote:
>
> On Monday, December 2, 2013 7:10:10 PM UTC-8, lucas wrote:
>>
>> hey everyone,
>>
>> got web2py 2.8.2 working on apache and centos. fixed under
>>
>> https://groups.google.com/forum/#!topic/web2py/DexgEESPk38
>>
>> however, i mentio
On Monday, December 2, 2013 7:10:10 PM UTC-8, lucas wrote:
>
> hey everyone,
>
> got web2py 2.8.2 working on apache and centos. fixed under
>
> https://groups.google.com/forum/#!topic/web2py/DexgEESPk38
>
> however, i mentioned that admin interface is all messed up. my admin
> interface is not r
In your apache config files you need to replace
^/([^/]+)/static/?(.*)
with
^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*)
in two places.
On Monday, 2 December 2013 21:10:10 UTC-6, lucas wrote:
>
> hey everyone,
>
> got web2py 2.8.2 working on apache and centos. fixed under
>
> https://groups.
Yes, not a bug but these are issues which come up when messing with the
admin interface on GAE.
NOTE that the issues occur when running locally using the GAE SDK as well.
So I assume the correct approach is to run it once as a normal web2py app
i.e. python web2py.py to get those special files
to
You are right. This is a different problem. Please open a ticket about it,
if not done already and I will check later today or tomorrow.
On Wednesday, 21 November 2012 11:08:55 UTC-6, Sebastian Cambeo wrote:
>
> I don't know if we understand us correctly. I don't use get_or_create_key
> anywhere
I don't know if we understand us correctly. I don't use get_or_create_key
anywhere and I am not referring to dlypka posts (I think our problems are
not related).
However my problem remains existing: If you deploy web2py trunk/stable with
no other changes than altering the app.yaml in order to u
This is not a bug!
1) First of all, for new apps, do not use get_or_create_key any more. The
new web2py had better security using salted password. You do not need a key.
2) If you must use a key (because you have a legacy app or because you want
to use hmac) the key must be saved on a file. You
http://code.google.com/p/web2py/issues/detail?id=1177
--
I had to work around this problem in tools.py in my web2py 1.9x code.
Maybe this issue is still in 2.x
@staticmethod
def get_or_create_key(filename=None):
request = current.request
if not filename:
filename = os.path.join(request.folder,'private','auth.key')
if os.path.exists(filename):
key
Please open a ticken about this. I will be able to look at it later
tomorrow.
On Monday, 19 November 2012 10:57:27 UTC-6, Sebastian Cambeo wrote:
>
> might it be, that "users.create_login_url(request.env.path_info)" in
> "check_credentials" needs some kind of file access?
>
> Anyhow this request
might it be, that "users.create_login_url(request.env.path_info)" in
"check_credentials" needs some kind of file access?
Anyhow this request appears to trigger the error
--
Strange. this is a gae error.
On Monday, 19 November 2012 03:16:46 UTC-6, Sebastian Cambeo wrote:
>
> What comes as a surprise to me is that the admin interface is working in
> the GAE SDK emulation...
>
> The error log:
>
> In FILE:
> /base/data/home/apps/s~cambeoserver/1.363277968286640588/app
What comes as a surprise to me is that the admin interface is working in
the GAE SDK emulation...
The error log:
In FILE:
/base/data/home/apps/s~cambeoserver/1.363277968286640588/applications/admin/models/access.py
Traceback (most recent call last):
File
"/base/data/home/apps/s~cambeoserver
Can you show use a traceback from the GAE logs. Admin is readonly on GAE.
On Sunday, 18 November 2012 12:53:49 UTC-6, Sebastian Cambeo wrote:
>
> Is it possible to use the admin interface on GAE? I get internal errors
> although I changed the app.yaml accordingly
>
> Thank You!
>
> Sebastian
>
-
I think this is because the ticket was created with an older web2py
version. We should catch this error but if you delete the old tickets it
will work fine.
On Sunday, 28 October 2012 09:00:18 UTC-5, mweissen wrote:
>
> I have tried to have a look at the error list from the admin interface ->
>
I'd suggest putting the images outside the web2py directory or not using
the web interface.
You should not let rocket serve static files. I would use a production
quality server luke apache or ngnix.
Anyway, it is not a good idea to have too many files in the same folder.
Just accessing the file system becomes a bottle neck.
One way to increase efficiency is to move the static files to
Is this being addressed? I am finding the same problem. Other than that,
and a couple of other suggestions for having more links to speed up the
admin interface workflow I am loving web2py!
I think it should be there by default! It is very better to have subfolders.
On Tue, Mar 6, 2012 at 8:26 PM, Bruce Wade wrote:
> If anyone is interested (note there may be a better way) I customized my
> ad to have the views collapse/expand like the static ones based on folders.
>
> Replace the
If anyone is interested (note there may be a better way) I customized my ad
to have the views collapse/expand like the static ones based on folders.
Replace the code in admin->views->default->design.html between:
and
{{=T("Views")}}
{{=helpicon()}} {{=T("The presentations
layer, views
29 matches
Mail list logo