I'm looking at a web host that uses python 2.4. I'm wondering what
the compatibility is with python 2.4? Is there any caveats? Should I
just move on and find another host that uses python 2.5?
Is this possible without root permissions?
I just found this documentation on AlterEgo, is this all thats needed?
http://web2py.com/AlterEgo/default/show/231
Sorry I should have been more clear, its a shared web host running
python 2.4. I do not have root access. Will this still be possible?
Still looking for help if anyone has the answer.
I just setup a new install of web2py on a shared host. Using the
fastcgi instructions results in the webpage displaying the contents of
dispatch.fcgi instead of executing it. What am I doing wrong?
Here is dispatch.fcgi:
#!/usr/bin/env /home//w2env/bin/python
import sys
from flup.server.fcgi_fo
Answering my own question, the host provider didn't have mod_fcgid
enabled.
Any idea why I'm getting this error?
[Thu Jun 10 17:59:15 2010] [error] [client 74.76.167.89]
AttributeError: module '/path/to/modpythonhandler.py' contains no
'handler'
[Thu Jun 10 17:59:15 2010] [error] [client 74.76.167.89] Filename: '/
path/to/500.shtml'
[Thu Jun 10 17:59:15 2010] [error] [cl
Getting this on an initial setup of web2py trying to load the welcome
application. Not much in the logs...
[Fri Jun 11 12:45:39 2010] [notice] mod_python (pid=3793,
interpreter='example.com'): Importing module '/path/to/
modpythonhandler.py'
[Fri Jun 11 12:45:39 2010] [notice] mod_python (pid=379
I'm using python 2.4 on a shared host. I installed hashlib, uuid,
pysqlite, psycopg2, MySQL-python, PyGreSQL. I'm using web2py with
mod_python with my htaccess as follows:
SetHandler python-program
PythonHandler web2py_modpython
PythonDebug On
PythonPath "sys.path + ['', '/path/to/w2env/lib/pyth
It seems to be failing on the model. I can't seem to get any DAL
working. If I do a simple hello world test it works fine. If I add
in a model like sqlite or postgresql, it gives "Internal error".
Whats going on here?
Here is the error when using SQLite:
Traceback (most recent call last):
File "gluon/restricted.py", line 178, in restricted
exec ccode in environment
File "/path/to/applications/test/models/db.py", line 15, in ?
db = DAL('sqlite://storage.sqlite')
File "gluon/sql.py", line 3855, in DAL
raise Runt
Here is the error when using PostGreSQL:
Traceback (most recent call last):
File "gluon/restricted.py", line 178, in restricted
exec ccode in environment
File "/path/to/applications/test/models/db.py", line 17, in ?
db=SQLDB('postgres://user:p...@localhost:5432/database')
File "gluon/sql.py", line
I did end up getting it working with MySQL although I would have
preferred PostGreSQL.
I found some compatibility problems with web2py 1.79.2 and python
2.4.3. The syntax in gluon/tools.py doesn't appear to work in this
version of python so I made to make some modifications to get it
working. Here is a diff:
2838,2841c2838,2839
< if not refsearch:
<
Found another problem with the welcome application. When attempting
to register an account I get this error:
Traceback (most recent call last):
File "gluon/restricted.py", line 178, in restricted
exec ccode in environment
File "/path/to/applications/welcome/controllers/default.py", line 57,
in ?
Another problem is, I can't launch from the cli because the rocket
module doesn't work with python 2.4:
-bash-3.2$ python web2py.py -i 127.0.0.1 -p 8001 -a 'password'
sh: ifconfig: command not found
WARNING:root:unable to import Rocket
web2py Enterprise Web Framework
Created by Massimo Di Pierro,
According to the postgresql 8.1 documentation,
standard_conforming_strings is a read-only variable.
http://postgresql2.openmirrors.org/docs/8.1/static/release-8-1.html
Any idea why sqlite is not working?
See above, post #5.
On Jun 15, 11:42 pm, mdipierro wrote:
> No. the error you reported was with postgresql 8.1. What is the
> problem with sqlite?
The databases directory is chmod 777 and I have pysqlite-2.6.0 for
python 2.4 installed and included in the path PythonPath for
htaccess. Is this version not compatible?
On Jun 17, 8:11 am, mdipierro wrote:
> Only two possibilities come to mind:
> - unable to write on filesystem
> - sqllite driv
Sorry for my delay in testing. The gluon/tools.py seems to be
compatible now and the rocket patch seems to work also. However, the
hashlib issue still exists as I'm still getting this error:
AttributeError: 'builtin_function_or_method' object has no attribute
'new'
How would I integrate editarea in my application without going through
the admin interface?
I checked the manual and didn't see anything regarding TEXTAREA. Is
there a way to enable the editarea editor on TEXTAREA fields?
On Aug 21, 1:41 am, KMax wrote:
> What does mean 'without going through the admin interface' ?
> Try search TEXTAREA in book?
How do you use dashes in controller names? I get errors, "Invalid
request".
Add to the list:
* Hyphens are preferred to underscores for SEO,
http://www.google.com/support/webmasters/bin/answer.py?answer=76329&topic=15261
Can we make this a feature request?
I suppose I could pass in bogus arguments in the url with dashes that
never get used. Still would be nice if the controllers would support
dashes.
You're 100% correct. However, since the functionality is lacking I
would use this as a workaround for SEO.
On Aug 30, 3:37 pm, Kevin wrote:
> That last point of yours is why I feel the way I do: the slug is
> redundant. Then again, I'm not the kind of programmer to put SEO
> ahead of cleanlines
Is it possible to dynamically create a sql object to be used in the
orderby field?
Example:
sort="db.table.id"
records=db().select(db.table.ALL,orderby=sort)
Gives error:
ProgrammingError: schema "db" does not exist
--~--~-~--~~~---~--~~
You received this message
That worked, thanks!
On Dec 9, 1:02 am, mdipierro <[EMAIL PROTECTED]> wrote:
> or using war SQL (not nice but possible)
>
> sort="table.id, table.otherfield, table.yetanotherfield DESC"
> records=db().select(db.table.ALL,orderby=sort)
>
> Notice in the second case there is no "db." becaus
How do you call a function from another function in a controller? And
how do you pass variables between them? The only way I can see how to
do this is using ajax but their must be a better way.
--~--~-~--~~~---~--~~
You received this message because you are subscr
pm, Baron wrote:
> within the controller you can call other functions directly like
> normal Python! Did you try it?
>
> On Dec 17, 12:58 pm, Cory Coager wrote:
>
> > How do you call a function from another function in a controller? And
> > how do you pass variables betw
This is a new setup of web2py using mod_wsgi on a shared host. Any
idea what is wrong?
.htaccess:
SetHandler wsgi-script
Options +ExecCGI
RewriteEngine On
RewriteRule ^((static|auth|admin|mycontroller).*)$ /wsgihandler.py/
myapp/$1 [QSA,PT,L]
Error logs:
[Wed Jan 19 17:52:06 2011] [error] [clien
I have created some database tables externally to web2py. Does web2py
require an id field for tables? The reason why I'm asking is, when I
use the DAL to do an insert, web2py tries to retrieve the currval of
the insert. Seeing how I don't have an id, this throws an exception.
How should I handle
Thanks both. I ended up adding an id field to the tables.
Could you tell me the last release of web2py that supported python 2.4
and where I can download it? The new version of web2py obviously
don't support it and don't work either.
Thank you both, version 1.95.1 seems to be working so far on python
2.4.
I designed and setup a database that was created directly in Postgres,
not web2py. When attempting to view the database administration tool
in web2py it gives me constant errors:
Jul 29 07:32:38 postgres postgres[11459]: [6-1] 2011-07-29 07:32:38
EDT testdb postgres 192.168.148.68 WARNING: ther
That worked, thank you!
On Jul 29, 9:25 am, Richard G wrote:
> Sorry, the id type declaration should be in quotes:
>
> db.define_table('test',
> Field('test_id', 'id'),
> Field('name'),
> migrate=False, fake_migrate=True)
39 matches
Mail list logo