Hi,
http://web2py.com/books/default/chapter/29/13/deployment-recipes
this page offers different deployment recipes for hosting like
PythonAnywhere. If your host (i am unfamiliar with go-daddy) provides you
root/shell access to a linux box, you shouldn't have any trouble. I am
Running my web2py i
I am so glad I am not taking intro to programming ever again. I hate string
manipulation!
Massimo - you might want to resend this to your actual students
Calvin
On 4 March 2014 14:20, Massimo Di Pierro wrote:
> During lab today you will begin writing the solutions for these problems:
>
>
>
> Also, relatedly, I was trying to restart apache from within a web2py app.
> That was giving me errors, so I'm doing something else. Is there a way to
> do this?
you can do it from the shell. Look up your relevant distro information
on init scripts.
usually it's something like
sudo service apa
Look at the scheduler documentation. I have mine called this way from
my db.py. This calls a few different tasks, adding file size and also
calling a task called unzip / untar which are functions i have written
to handle zipping and unzipping. Hopefully this explains it somewhat
def upload_post_h
I've been having trouble with centOS getting a 503 Service unavailable
using Apache's httpd. If anyone else is seeing this same problem, I
found that this solved my problem:
adding this to my main httpd.conf:
WSGISocketPrefix /var/run/wsgi
--
Resources:
- http://web2py.com
- http://web2py.com
Hi guys,
I have a fairly typical web2py application I am trying to deploy with a
standard CentOS 6 configuration using Apache and MySQL.
What seems to be bugging me right now is that the responses are very
slow, around .7 seconds to load the home page. I have a feeling this is
because of my
A ghetto way: just open a file and use regular write commands
On Jan 26, 2014 1:30 PM, "horridohobbyist"
wrote:
> I'm looking for a simple way to print out statements in Python. I
> understand the 'print' function outputs to the console on the server side,
> but once web2py is deployed through Ap
elance.com?
On 11 January 2014 23:04, Simon Ashley wrote:
> Often thought that it would be good to push this to another level. We have
> projects from time to time that would be good to outsource, if people were
> interested. Something like a project post board, with bidders, assignment,
> monito
Brando,
Thanks for working this out!
it would be good to make a web2py slice or add it to the documentation/ examples
Calvin
On 8 January 2014 14:35, Brando wrote:
> This works, added the requires statement for form validation:
>
> def submit():
> import datetime
> form = FORM(LABEL("F
that'd be a Jquery thing.
jQuery("input#fileid").change(function () {
alert(jQuery(this).val())
});
On 8 January 2014 14:36, Brando wrote:
> Question, how could I make it so I don't have to click the submit button.
> How could i make it to where they choose the files and it auto submits
Yes I am getting that same problem here.
Like I said, I don't really know how to properly test if the variable has
been set.
Any input from more wise web2pyers would be great
Calvin
On 8 January 2014 14:03, Brando wrote:
> Calvin, I'm getting this error when I select only 1 file to upload:
>
to the local
> disk?
>
>
>
>
>
>
>
> On Wednesday, January 8, 2014 7:18:28 AM UTC-8, Calvin Morrison wrote:
>
>> I just wrote my own way to do it yesterday which worked great. I would
>> love it to go upstream.
>>
>> It's just a standard fi
end and report back.
>
>
>
>
>
> On Wednesday, January 8, 2014 7:18:28 AM UTC-8, Calvin Morrison wrote:
>
>> I just wrote my own way to do it yesterday which worked great. I would
>> love it to go upstream.
>>
>> It's just a standard file upload wit
I just wrote my own way to do it yesterday which worked great. I would
love it to go upstream.
It's just a standard file upload with the multiple attribute.
here's the entire thing: it spits out a form.
my db looks like this:
db.define_table('uploads',
Field('username', 'string'),
Fiel
great thanks!
On 7 January 2014 15:18, Anthony wrote:
>> 1. Where should I put my custom widget logic?
>>
>> Right now i have it grossely stored in my db.py
>
>
> You can always put it in a module file and import it.
>
>>
>> 2. Can i pass more information to my widget other than field, value from
Hi!
I have a field called "Job Type", and another field "database" that
depends on the type. If the user selects "Train" for Job Type, they
don't need to enter a database (a integer id), but i don't know how to
make validators do this for me.
Right now I have this:
db.jobs.db.requires =
IS_NULL_
o wrote:
>>
>> Let's isolate the problem.
>>
>> Are you saying that even if you have this:
>>
>> Field('up_file', 'upload', uploadseparate=True, requires =[IS_NOT_EMPTY(),
>> IS_UPLOAD_FILENAME(extension=ext_regex)]),
>>
>&
if you have this:
>
> Field('up_file', 'upload', uploadseparate=True, requires =[IS_NOT_EMPTY(),
> IS_UPLOAD_FILENAME(extension=ext_regex)]),
>
> You can submit a form that does not upload a file into up_file?
>
> On Thursday, 26 December 2013 13:21:35 UTC-6, Ca
oad', uploadseparate=True, requires =[IS_NOT_EMPTY(),
> IS_UPLOAD_FILENAME(extension=ext_regex)]),
>
> You can submit a form that does not upload a file into up_file?
>
> On Thursday, 26 December 2013 13:21:35 UTC-6, Calvin Morrison wrote:
>>
>> I'm following the docume
I'm following the documentation trying to figure out how to correctly save
a filename to my uploads database.
Basically i have the same code as the website shows in it's examples
def submit():
import datetime
form = SQLFORM(db.uploads, fields=['up_file', notes], deletable=True)
form.va
20 matches
Mail list logo