I reinstalled Nginx with
sudo add-apt-repository ppa:nginx/stable
sudo apt-get update
sudo apt-get install nginx
and now have error with sertificates
ssl_certificate /opt/nginx/conf/server.crt;
ssl_certificate_key /opt/nginx/conf/server.key;
Where can I get it?
On 27 мар, 05:55, VP wrote
David, I'd like to try nginx with fastcgi.
Can you give me some helpful links to deploy it?
On 27 мар, 08:32, "David J." wrote:
> I don't know about running web2py using uwsgi;
>
> However;
>
> When I run web2py with nginx I use the fastcgi module;
>
> I configure nginx like described in the stac
OK, here's another try. This is just a shell script which I have verified
works on a clean Ubuntu 10.04 install. This script needs no additional
editing. To get it to work with the script provided by Linode, everything is
owned be the user "uwsgi". Besides the script, the only other place where
Ah, that's probably what caused the problems since my scripts were pulling the
latest version not a specific version.
Huh, it runs :)
Thanks a lot!
I think, this + 443 port should be on web2py slices
Thanks again
On 27 мар, 13:24, pbreit wrote:
> OK, here's another try. This is just a shell script which I have verified
> works on a clean Ubuntu 10.04 install. This script needs no additional
> editing. To get it
Check your python version that you are running on. That tripped me up
badly the 1st time I used GAE with web2py
On Mar 27, 7:10 am, Shark wrote:
> We have troubles in GAE and web2py integration in our graduation
> project
> We tried many tutorials in the web and we fails so I hope you can help
>
Can't configure SSL.
pbreit, can you help?
I used this to create certificate:
cd /opt/nginx/conf; openssl genrsa -out server.key 1024
cd /opt/nginx/conf; openssl req -batch -new -key server.key -out
server.csr
cd /opt/nginx/conf;
openssl x509 -req -days 1780 -in server.csr -signkey server.key -ou
Sorry, it's my bad. Just compiled without http_ssl_module, because I
missed newline when pasted script
On 27 мар, 14:18, LightOfMooN wrote:
> Can't configure SSL.
> pbreit, can you help?
>
> I used this to create certificate:
>
> cd /opt/nginx/conf; openssl genrsa -out server.key 1024
> cd /opt/n
I don't use facebook, but he mentioned it runs on web2py I wanted to
post the link to it here.
http://mytop10gift.appspot.com/
BR,
Jason Brower
More details would be useful. I'm no expert on deploying on GAE,
though I succesfully managed to deploy my first app on GAE
yesterday :) I got some problems with app.yaml file as with some rules
from example file in skip_files section there were errors, that it
couldn't find contrib modules. Other
also need add into nginx.conf something like this:
sendfileon;
client_max_body_size 100M;
to avoid 413 Request Entity Too Large
when upload big files
> Thx, but what is the best solution for now to deploy web2py with more
> than 3k users online, which can upload and download files?
No using a streaming upload webserver will solve your problem
Move to nginx, this will solve your specific problem, and use
X-Accel-Redirect (this is the equivale
Yes, just tested it.
Many parallel downloads, nice speed, and no locks even more.
Nginx Rocks!
On 27 мар, 15:41, "Roberto De Ioris" wrote:
> > Thx, but what is the best solution for now to deploy web2py with more
> > than 3k users online, which can upload and download files?
>
> No using a stream
Ahmed,
I had written a tutorial about Setting up web2py for use with Google
App Engine here:
http://opensourcebroadcasting.blogspot.com/2010/04/setting-up-web2py-for-use-with-google.html
Please feel free to have a look and let me know if this helps you.
Also, please feel free to let me know if
I have an insert SQLFORM of 8 fields, to which I'd like to add a
single "I agree to terms" checkbox at the bottom. There are probably
tons of ways to do this, but I'm hoping someone has a really simple
method that doesn't require resorting to a manual FORM? Can I simply
tack on another INPUT to the
It's also listed on http://web2py.com/poweredby
On Sunday, March 27, 2011 4:51:56 AM UTC-4, encompass wrote:
> I don't use facebook, but he mentioned it runs on web2py I wanted to
> post the link to it here.
> http://mytop10gift.appspot.com/
> BR,
> Jason Brower
>
>
Hi Brian
One rather low-level way to add a field to a SQLFORM would be
something like this:
myinput = INPUT(_type='checkbox',_name='test')
f = SQLFORM(db.job_post)
f[0].insert(len(f[0])-1,myinput)
See also this post from Bruno:
http://groups.google.com/group/web2py/msg/41fbeda903c71f3f
There a
On Mar 26, 9:22 pm, Brian Will wrote:
> Found my own answer: I can create an onvalidation function for the
> form that only runs when the form is accepted but before the new
> record is made.
Right
> The problem this then introduces is how to set the
> enclosing variable from the function witho
Just add
form[0].insert(-2,TR(LABEL('I agree to
terms'),INPUT(_name='agree',value=True,_type='checkbox')))
after the form has been defined.
On submission form.vars.agree will have the status of the checkbox,
which you probably would check using onvalidation.
Where do I collect my bonus points?
See also
http://web2py.com/book/default/chapter/05#Server-side-DOM-and-Parsing and
http://www.web2pyslices.com/main/slices/take_slice/43.
On Sunday, March 27, 2011 9:03:26 AM UTC-4, villas wrote:
> Hi Brian
>
> One rather low-level way to add a field to a SQLFORM would be
> something like thi
Is there a way to pack just app code?
(without images and other uploads)
Or it can be done only by manual delete upload content?
*Thanks for help but I need step by step tutorial for windows if you can so
you elp us in solve a big trouble in our project*
*
*
*Do I need to edit some files ?*
*How to tell GAE that this my app ?*
*
*
*Thanks in advance
*
2011/3/27 johntynan
> Ahmed,
>
> I had written a tutorial about Setting
On Mar 27, 2011, at 3:21 AM, johntynan wrote:
>
> I had written a tutorial about Setting up web2py for use with Google
> App Engine here:
>
> http://opensourcebroadcasting.blogspot.com/2010/04/setting-up-web2py-for-use-with-google.html
>
> Please feel free to have a look and let me know if this
On Mar 27, 2011, at 2:08 AM, Mariusz Zieliński wrote:
>
> More details would be useful. I'm no expert on deploying on GAE,
> though I succesfully managed to deploy my first app on GAE
> yesterday :) I got some problems with app.yaml file as with some rules
> from example file in skip_files section
On 27 mar, 06:54, LightOfMooN wrote:
> Yes, just tested it.
> Many parallel downloads, nice speed, and no locks even more.
> Nginx Rocks!
Hello LightOfMooN,
please, could show me how to configure nginx + + web2py uwsgi. I use
uwsgi + cherokee + web2py and I had the same problems that you
menti
Yes, ofc.
Thanks to pbreit for his script.
I just added support for 443 port (SSL) and Postgres to it.
It installs web2py+nginx+uwsgi+postgres on ubuntu:
===
apt-get update
apt-get -y upgrade
apt-get -y install build-essential psmisc python-dev libxml2 libxml2-
dev python-setuptool
Oh cool, you added ssl and postgres. Looks good. Nice.
Thanks Denes. It is very frustrating when this kind of information is
not readily available, so I have added this pearl of wisdom to the
book.
I appreciate that what I have written is not fully explained, but
sometimes a simple example is worth a thousand words. If you feel this
could or should be
Hmmm...I don't use Cherokee anymore but will try to have a look. Is that a
Web2py-issued ticket? Setting up SSL on Cherokee took me a few tries.
Also, do you see "parameters_443.py" in your web2py directory? If you
see "parameters_80.py" you can duplicate it and rename it. "443" is the SSL
port
http://www.freelancer.com/projects/XML-Python/XMPP-Web-chat-Client-with.html
Fixes some minor issues, including adding the missing *.yaml.
Please report any issue ASAP.
Massimo
I've definitely got parameters_443.py and parameters_8000.py in the
/var/web2py directory. No parameters_80.py file to note though. I tried
the https login in a guessing game to succeed. I'm at a stalemate. I'm a
chemist not a programmer per se. The web2py issued ticket was copy/pasted
from th
Massimo,
Now that we have a setup.py in the tree could you also upload the
package to PyPI?
http://pypi.python.org/pypi/web2py/
python setup.py sdist upload
Should do it.
Thanks,
Praneeth
IRC: lifeeth
On Sun, Mar 27, 2011 at 10:52 PM, Massimo Di Pierro
wrote:
> Fixes some minor issues, incl
I can do it. Do you want to be in charge of it?
Massimo
On Mar 27, 2011, at 12:43 PM, Praneeth Bodduluri wrote:
> python setup.py sdist upload
Massimo:
I don't know if this should be considered a bug, but it appears
requires_login() redirects to default/user/login if a not-logged-in
user accesses a page that requires login. The problem is if the log-
in function is not with the default controller and/or not called
"user", the redirect
I'm curious if anybody has built a federated search engine or a front
end for a federated search engine with Web2py?
Had conversation about this with a client today who suggested Django
as a possible framework. My initial reaction was that Django was more
invested in content management than com
Hello!
I created an app using the wizard. I'd like to create a general view
for a record and its sub-records (1:n relation).
Unfortunately I tend to creating Spaghetti-code and the solution is
quite messy.
Could you suggest any solution that is simpler?
Is it possible to reuse this for differen
I did a little more work on a setup script for Ubuntu + Nginx + uWSGI.
Please let me know if you experience any problems or have any suggestions.
I'm fairly new to this.
+ Tested on Ubuntu 10.04 (Rackspace Cloud)
+ Nginx 0.8.54
+ SSL (self-signed)
+ uWSGI 0.9.7.1
+ Postgres 8.4
+ Web2py Current
If you are running OS X 10.04 this worked well for me :
http://universalcake.blogspot.com/2011/03/installing-python-and-pil-on-os-x-104.html
On Mar 25, 2:50 pm, pbreit wrote:
> I had a lot of trouble getting reliable installs of PIL, especially on my
> Mac. What I currently do is "apt-get insta
Once this has been tested/refined, it might be a nice addition to the
/web2py/scripts folder.
On Sunday, March 27, 2011 3:29:43 PM UTC-4, pbreit wrote:
> I did a little more work on a setup script for Ubuntu + Nginx + uWSGI.
> Please let me know if you experience any problems or have any sugges
consider this proof of concept:
db.define_table('document',Field('title'),Field('body'))
db.define_table('peer',Field('url'))
def index(): return dict(form=crud.create(db.document)
def search():
from gluon.dal import Rows
import xmlrpclib
form = SQLFORM.factory(Field('keyword'))
Let me know when you think this is a ready for inclusion. I agree with
Anthony, it would be a valuable addition to scrips/
On Mar 27, 2:29 pm, pbreit wrote:
> I did a little more work on a setup script for Ubuntu + Nginx + uWSGI.
> Please let me know if you experience any problems or have any sug
Hi!
I use Version 1.94.6 (2011-03-27 18:20:38).
I have in db:
-
db.define_table( 'mail_domain',
Field( 'domainname',
'string',
label =
It needs something like
client_max_body_size 100M;
in nginx.conf to avoid error: 413 Request Entity Too Large
(for example, try to install app with > 6mb or upload big file)
On 28 мар, 01:53, Massimo Di Pierro
wrote:
> Let me know when you think this is a ready for inclusion. I agree with
> Antho
Errata
consider this proof of concept:
db.define_table('document',Field('title'),Field('body'))
db.define_table('peer',Field('url'))
def index(): return dict(form=crud.create(db.document)
def search():
from gluon.dal import Rows
import xmlrpclib
form = SQLFORM.factory(Field('keyword')
On Mar 25, 2011, at 3:53 PM, ChrisM wrote:
>
> wondering if this has been resolved as i have copied a package into
> site packages using latest
> web2py and GAE dev_appserver cant find it.
Try logging sys.path and see if site-packages is there. You should see the
web2py root, gluon, and site-pa
Hello Massimo,
I can help maintain the PyPI uploading for every new revision.
--
Praneeth
IRC: lifeeth
On Sun, Mar 27, 2011 at 11:17 PM, Massimo Di Pierro
wrote:
> I can do it. Do you want to be in charge of it?
>
> Massimo
>
> On Mar 27, 2011, at 12:43 PM, Praneeth Bodduluri wrote:
>
>> pyth
Mike,
asking is always a good thing. lots of stuff flys by and sometimes things
fall through the cracks.
i just looked at your bug report, and honestly am having trouble following
it (which might be why it has not been addressed yet). can you post the
table definition and a post that fails?
Thanks, everyone. That's what I was looking for.
On Mar 27, 9:50 am, villas wrote:
> Thanks Denes. It is very frustrating when this kind of information is
> not readily available, so I have added this pearl of wisdom to the
> book.
>
> I appreciate that what I have written is not fully explained,
I am pretty sure I responded to this but my response disappeared!
My response was something like: I apologize this was overlooked. We
will take care of it asap.
Massimo
On Mar 26, 3:35 pm, tiny wrote:
> Hi-
>
> I reported an issue on the Google projects issues list (#150) on Jan
> 6, and I am w
One small problem with this: my checkbox is now validated with
onvalidate which only runs when everything else validates. I want the
'must agree to terms' error to popup any time the form is submitted
without the checkbox checked, not just when it's the only think that
doesn't validate. If I could
Hello,
Referring to the thread [1], I'm a bit lost.
My current setup in cherokee is as follows:
file /web2py/config.xml
/home/web2py/
wsgihandler
/tmp/web2py.sock
15
45
4096
1000
/tmp/uwsgi.log
Cherokee setting:
Information Sources
• Type: Local Interpre
Actually the insert index depends on the formstyle.
It should be -2 for formstyle='table2cols' as above.
That has to be changed to -1 for formstyle='table3cols'.
I think this is explained somewhere else in the manual but
form[0] is the TABLE and form[0][0] would be the first row (TR), etc.
When
I have this function that displays several fields from two databases.
but I couldn't get it to do the following:
1) the "previous question" button actually causes an error. how come
my session.item_id is always zero when I thought I was passing an
incrementing value session.item_id+1 .
2) when i
On Mar 27, 6:51 pm, Brian Will wrote:
>
> BTW, I got confused by INPUT's value arg. I kept treating it like
> _value until I realized that value is only meant to be set to True to
> turn the checkbox on by default. Maybe deprecate 'value' in favor of
> 'prechecked' for this purpose to avoid the
You can also use the .element and .elements methods of helper objects to
find particular form elements without needing to know exactly where they
are, as explained in
http://web2py.com/book/default/chapter/05#Server-side-DOM-and-Parsing and
http://www.web2pyslices.com/main/slices/take_slice/43.
sorry if i misunderstand your question,
this can be your help.
http://web2py.com/book/default/chapter/07#SQLFORM-and-insert/update/delete
says
SQLFORM creates a new db record when the form is accepted. Assuming
1.
form=SQLFORM(db.test)
, then the id of the last-created record will be accessible i
Thank you very much.
Hi,
I have tried to change the background image of response.flash, but no
matter what I do, its just not working. I have tinkered with the
base.css file, everything. No changes reflected.
Can anyone help out?
thanks
Pystar
Hi Denes,
You are right, we should at least point out that this example depends
on the formstyle. I have altered the book accordingly.
Thanks, D
On Mar 28, 1:07 am, DenesL wrote:
> Actually the insert index depends on the formstyle.
> It should be -2 for formstyle='table2cols' as above.
> That
If you're using the 'welcome' app as the base, then in the 'web2py specific'
section near the end of 'base.css', you can change the 'background' option
of 'div.flash'. Note, you'll probably have to reload the page to see the
change take effect.
Anthony
On Sunday, March 27, 2011 8:45:02 PM UTC
Massimo,
I'll be emailing you a revised script based off of Praneeth's
standalone_exe.py shortly. I decided to make it a bit more interactive
Features:
1) Creates web2py.exe with py2exe
2) Offers to remove the Windows DLLs that py2exe includes but are likely to
have licensing issues.
3) Offers
Fantastic. Yes something got out of sync. I will remove the unwanted files.
On Mar 27, 2011, at 8:23 PM, Brian M wrote:
> Massimo,
>
> I'll be emailing you a revised script based off of Praneeth's
> standalone_exe.py shortly. I decided to make it a bit more interactive
>
> Features:
> 1) Creat
Did that, it didnt work.in previous version, it used to work for me. I
dont know what I am doing wrong. Disclaimer, I included blueprint css
framework into the page I am working on.
On Mar 28, 2:21 am, Anthony wrote:
> If you're using the 'welcome' app as the base, then in the 'web2py specific'
>
Changing base.css has no effect.
I suspect the css is being modified by the jQuery effects applied to
the flash div but I have not been able to prove it.
On Mar 27, 9:21 pm, Anthony wrote:
> If you're using the 'welcome' app as the base, then in the 'web2py specific'
> section near the end of 'b
Hope this isnt a "bug" ?
On Mar 28, 2:34 am, DenesL wrote:
> Changing base.css has no effect.
> I suspect the css is being modified by the jQuery effects applied to
> the flash div but I have not been able to prove it.
>
> On Mar 27, 9:21 pm, Anthony wrote:
>
>
>
>
>
>
>
> > If you're using the
The code is all messed up in the post above.
Could you repost to pastebin.com for example and copy the link here?.
On Mar 27, 8:09 pm, niknok wrote:
> I have this function that displays several fields from two databases.
> but I couldn't get it to do the following:
>
> 1) the "previous question
Hmm, I just tried it in the current 'welcome' app (1.94.5), and changing the
background color in div.flash in base.css works for me. Maybe you've got
another div.flash defined somewhere else that's overriding the one in
base.css. You could try adding '!important' to the declaration in base css
Now it works... grrr.
Restarting web2py & the browser (set to clear all on closing) did it
for me.
On Mar 27, 9:34 pm, DenesL wrote:
> Changing base.css has no effect.
> I suspect the css is being modified by the jQuery effects applied to
> the flash div but I have not been able to prove it.
>
Awesome!!!. it works, I actually had 2 base.css files, and one was
overiding the other. Thanks for the reponses, this community rocks.
Pystar,
Lagos, Nigeria, West Africa.
On Mar 28, 2:44 am, Anthony wrote:
> Hmm, I just tried it in the current 'welcome' app (1.94.5), and changing the
> backgroun
This community really rocks!!! thanks guys, just tweeted about this.
On Mar 28, 2:55 am, Pystar wrote:
> Awesome!!!. it works, I actually had 2 base.css files, and one was
> overiding the other. Thanks for the reponses, this community rocks.
> Pystar,
> Lagos, Nigeria, West Africa.
>
> On Mar 28,
I have asked this question in the past but did not get an appropriate
response. I would like to know how a site like tenthrow.com, which was
built with web2py, incorporates third party authentication mechanisms
like Twitter, Facebook and Google and local authentication on the
site? If the tenthrow
http://code.google.com/p/web2py/issues/detail?id=224 Issue created so this
doesn't get lost. (script is attached if anyone wants it)
Hi, wondering is there exists ExtJS or Qooxdoo wrapper for Python?
I know some but its Pascal wrapper (take a look how they work/wrap), they
parse ExtJS classes source code and create ObjectPascal classes code, this
produced classes interface ability to produce JS code
http://code.google.com/p/ex
On Sunday, March 27, 2011 10:18:42 PM UTC-4, Pystar wrote:
>
> I have asked this question in the past but did not get an appropriate
> response. I would like to know how a site like tenthrow.com, which was
> built with web2py, incorporates third party authentication mechanisms
> like Twitter, F
Hello,
I updated my blog to talk about some Python projects I started. So
take a look and don't be afraid to comment. If you think these
projects can be integrated in another bigger project, suggestions are
welcome.
Note that Python script project to create Eclipse project from web2py
application
tenthrow.com appears to be down. It looks like you were not interested in
Janrain. There are some other
approaches:
http://web2py.com/book/default/chapter/08#Integration-with-OpenID,-Facebook,-etc.
Although it was not clear to me from any docs or gluon code how you could,
for example, code you
Isn't it this CSS in static/css/base.css? Also, If you have any interest in
CSS, Chrome/Safari have an "Inspect Element" command and Firefox has the
terrific Firebug add on. These are all must-have tools for working with web
page styles.
/*** web2py specific ***/
div.flash {
Yeah, it looks like the code didn't come through very well. Pastebin would
be good or go to groups.google.com where you can paste it and format it as
"Courier New" font.
I'd try to stay away from using 0 in your business logic. It might not
always do what you expect since it can have different
79 matches
Mail list logo