I've got to move a bunch of stuff around to speed up my site particularly
on the controller folder. My question is that I have nearly 50+ tables
defined in my db.py file. Is there any benefit to splitting these tables
into multiple model files? The tables belong to a single database and most
Thanks very much for this information. I need to examine it more closely
but it looks darn good. I'm hoping with this change and re-organizing my
controllers, then my site will speed up significantly. At present, it is
slower than raw maple syrup and I can't afford to stay with web2py if I
ca
recipe for model-less
> apps...
>
> http://www.web2pyslices.com/slice/show/1479/model-less-apps-using-data-models-and-modules-in-web2py
>
>
> On Monday, July 16, 2012 1:45:23 PM UTC-7, wdtatenh wrote:
>>
>> I've got to move a bunch of stuff around to speed up my site part
When I go through the exercise of re-tooling this site I will catalog what
I did wrong and what I had to do get it right based on the input provided
and perhaps it will be some benefit to others who won't make the same
mistakes I made. :>)
--
Almost 90% of the queries are in DAL and not native SQL. Nothing too
elaborate but there are a number of queries with joins - nothing elaborate
and simple where clauses. I know the model is not the primary bottleneck
as I've got thick controllers that definitely need to be thinned out and
re-
I had to migrate to mysql 5.5. for another application I have. I did not
attempt to migrate things through that administrative interface. Just did
a RESTORE from a mysql dump to file.
I have migrate=False in the DAL() statement.
Am I missing something here?
Appreciate any input on this
Thanks so much.
On Thursday, July 26, 2012 11:59:24 AM UTC-4, Niphlod wrote:
>
> yep. migrate=False in DAL set migrate=False for table definitions.
>
> the auth.define_table() needs to be set to migrate=False explicitely.
>
>
>
> On Thursday, July 26, 2012 5:48:23
Downloaded latest stable src and ran setup.py install and get error
w2p_apps does not exist.
Any suggestions as to how to remedy this issue.
Thanks in advance
Bill
--
I'm about to update the src code on a live site hosted by webfaction. I'm
assuming that web2py server must be stopped and restarted.
Web2py is running from the original installation script and has never had
to be shutdown before. I've not gone through this on a live site
performing a manual s
es to web2py
Step 3: from python cmd shell python web2py.py
On Monday, August 6, 2012 12:55:52 PM UTC-4, viniciusban wrote:
>
> You'll do this in a test environment before, right? ;-)
>
>
> On 08/06/2012 01:37 PM, wdtatenh wrote:
> > I'm about to update the src cod
My site is hosted on webfaction. The web2py src code is the same on local
& remote - both have the latest web2py src.
Compiled my site locally, uploaded to my remote site and I get
raise SystemError, 'compiled code is incompatible'
SystemError: compiled code is incompatible
The Webfaction
Thanks - I'm installing python 2.7 on my machine and that should resolve
the problem.
--
Installed python 2.7. Trying to start up web2py and I get the following
traceback - note URLLIB and SOCKET are located in ...python27/Lib
Appreciate help.
No handlers could be found for logger "web2py"
Traceback (most recent call last):
File "web2py.py", line 16, in
import gluon.widget
I'm using sqlite for my database on a data intensive website that I want to
push up very soon. I understand I need to go through ssh to administer
things remotely. I definitely need to be able to administer groups and
assign membership remotely via ssh. But will my changes show up if I make
Unfortunately, the update didn't occur (was not a schema change) - simple
insert to auth_membership table. Could see change when using local
cmd/python shell. Wasn't visible when I check using appadamin.
sqlite is fine in this case because the site is not a high traffic site and
very low co
I'm running version 1.91.6 installed from binary for localhost testing. I'm
attempting to add some modules to hold utility functions used by other
controllers but I consistently get an import error.
Suggestions?
Thanks in advance
--
Thanks. I do but I still get the same problem. It's interesting that I
have another 3rd party module that I added and it works but mine which just
has some functions test functions in it does not.
I created that file under the module folder through the web2py web
interface.
--
My website is deployed on webfaction. I've compiled the application before
uploading.
Doesn't seem to matter what page is requested, we're talking about 3 to 5
seconds to download (I have high speed internet). Any thoughts? When I go
to the normal webfaction admin pages, I don't have these ki
attempting to login to web2py admin using IE - login fails. - works fine
on Mozilla Firefox
http://127.0.0.1:8000/admin/default/index?send=/default/design/welcome
Security settings for intranet are set low in IE...
I also can't login as a user (parts of my website require user login) on my
de
Thanks - tried it didn't work... even removed the tail and started with
http://.localhost:8000
Yes it does ask for my admin password but it just reloads the page with the
same login screen.
My browser has been set to accept any cookies and it still gives me the
same response.
>
>
OK - now it's working - thanks for the tips.
On Sunday, July 8, 2012 9:21:45 AM UTC-4, Massimo Di Pierro wrote:
>
> Does it ask you for the admin password?
>
> On Sunday, 8 July 2012 07:44:46 UTC-5, wdtatenh wrote:
>>
>> Thanks - tried it didn't work... even
Apologies if this answer is already posted elsewhere - a search didn't
answer my question.
Basically I need to pre-populate some sqlite tables used with my
web2py app with a fair amount of data. Would like to run some scripts
that performs this task via conventional pythonwin IDE.Thus far
con
Thanks in advance -
I've created the sqlite table. The records that I've added thus far
show up in the view. I can add new records without difficulty using
SQLFORM.
However, when I convert the controller to an update/delete form and
hard wire the form to present a specific record in the view to
Thanks all - that was the fix.
Apologies didn't see this anywhere that showed a clear example of what
I'm asking about.
Have custom form - using inpval, dspval, etc. and would like to know
if there is specific formatting that allows me to set form field
properties?
this part I get: {{=dspval.my_field_name}}
My question is us
I could really use an answer to this question.
Using SQLFORM is there a simple notation to set the width of a
with IS_IN_SET defined in the model.
Inserting {{=custom.form.widget.myField}} works but I don't see how I
can set the width?
I've experimented to my eye's bleed but nothing I've attemp
That worked - thanks very so much.
I'm building an application that uses the login features provided by
web2py. Users could login at any time so I was hoping for a solution
that would take the person to the last page they were on before they
logged in instead of going to the index page. Any suggestions would
be greatly appreciated
29 matches
Mail list logo