Forum archive
Apache config for web2py app
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
to
AliasMatch ^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*) /var/www/web2py/applications/$1/static/$2
Solution in
https://groups.google.com/forum/#!topic/web2py/thSs622POoA
Just another note when using this appliance: you might get an mysql error when following the tutorial
http://web2py.com/books/default/chapter/29/03/overview#Startup
The error is
1071, 'Specified key was too long; max key length is 767 bytes'
Culprit :
db.define_table('image',
Field('title',unique=True), <-----
Field('file', 'upload'),
format = '%(title)s')
either use
Field('title',unique=True,length=255)
or
db.image.title.requires = IS_NOT_IN_DB(db, db.image.title)
after the statement.
reference: https://groups.google.com/forum/#!msg/web2py/9AwEHOeLbds/5IzHL50LD2gJ