[web2py] Copy table with an upload field from one database to another without disturbing the files.

2018-04-02 Thread James McGlynn
Hello, I am using web2py on heroku. I have two installed applications using two different postgres databases. I am trying to copy all the data from one of the databases to the other. One of the tables has an upload field which uses s3 as the filesystem. I don't want to duplicate the files,

[web2py] Re: Web2py-Heroku: Relation "my_table" already exists

2015-09-03 Thread James McGlynn
Anthony > > > On Tuesday, September 1, 2015 at 11:48:27 PM UTC-4, James McGlynn wrote: >> >> Thanks for the response! >> >> I was able to find documentation on how web2py stores metadata in *.table >> files. So I understand what you are saying about them, and I ag

[web2py] Re: Web2py-Heroku: Relation "my_table" already exists

2015-09-01 Thread James McGlynn
ble needs to be created > (resulting in an error if it already exists). Probably you simply want to > turn off migrations in the production environment. > > Anthony > > On Monday, August 31, 2015 at 9:00:38 PM UTC-4, James McGlynn wrote: >> >> >> class 'psycopg2.Pr

[web2py] Web2py-Heroku: Relation "my_table" already exists

2015-08-31 Thread James McGlynn
class 'psycopg2.ProgrammingError' relation "my_table" already exists I have configured my app so that I can set a flag to use either a local sqlite db, or a remote Heroku db when running locally, but when running remotely on Heroku, the Heroku db is always used. The databases do not contain

[web2py] Re: Auth callback settings for reset_password and request_reset_password

2015-06-08 Thread James McGlynn
request_reset_password uses request_reset_password_onaccept request_reset_password_onvalidation On Sunday, 7 June 2015 19:46:33 UTC-5, James McGlynn wrote: Hello, I have a few questions about using callbacks with reset_password and request_reset_password. I'm using web2py 2.9.5, but I checked

[web2py] Auth callback settings for reset_password and request_reset_password

2015-06-07 Thread James McGlynn
Hello, I have a few questions about using callbacks with reset_password and request_reset_password. I'm using web2py 2.9.5, but I checked the corresponding code from the master branch and github in gluon/tools.py and it seems to be the same. Why does the callback

[web2py] Set Content-Type for Uploadfs S3FS

2015-04-09 Thread James McGlynn
Hello, I am using fs.s3fs to upload image files directly to s3. It works great, but users can't visit the image link and view directly in their browser, because the content-type is defaulting to application/octet-stream. From my recent searching, I found that fs.s3fs does not support setting

[web2py] Re: postgresql error ... class 'psycopg2.ProgrammingError'(relation auth_user already exists)

2015-01-11 Thread James McGlynn
I realize this thread is 5 years old, but it still came up when searching for help with the error above and I just wanted to add my struggles. I was getting the following error when deploying to Heroku: class 'psycopg2.ProgrammingError' relation web2py_session_3muses already exists and it was