BenL's picture

Hi, sorry if this is not the right place this.

Bug concerning web2py ISO appliance: CSS is not functioning correctly in admin page of web2py

Fix: in /etc/apache2/sites-enabled/web2py ..

change this line 

AliasMatch ^/([^/]+)/static/(.*) /var/www/web2py/applications/$1/static/$2


AliasMatch ^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*) /var/www/web2py/applications/$1/static/$2

Solution in!topic/web2py/thSs622POoA



BenL's picture

Just another note when using this appliance: you might get an mysql error when following the tutorial

The error is 

1071, 'Specified key was too long; max key length is 767 bytes'

Culprit : 

   Field('title',unique=True),   <-----
   Field('file', 'upload'),
   format = '%(title)s')

either use 


db.image.title.requires = IS_NOT_IN_DB(db, db.image.title)

after the statement.



Jeremy Davis's picture

I have lodged it as a bug on the TKL Issue Tracker
BenL's picture

Hi Jeremy, Yes, the first post is a bug, but for the  mysql problem,  it is more of a mysql bug-feature than anything to do with TKL. It applies to anything running web2py-mysql not just TKL. Other database servers dont have this problem.  regards!

Add new comment