Hi Mike,
I've been following your recipe, but I have an 'read-only file system
issue' (I think is due that I did not set up a database and web2py is
trying to create the datatables files)
So, can you give me some clues about it? Also, how should i set up and
configure my rds to work with web2
That's receipe is great, thanks for the work.
One thing that I have not seen is which database are you using? I think
with Zappa you need to use RDS, at least that's what I have seen with
Django apps.
So, I would like to ask you two questions:
1) Can you confirm about the database (is a RDS)?
> On Sunday, October 21, 2018 at 9:22:05 AM UTC-4, Jaime Sempere wrote:
>>
>> Hello to everyone,
>>
>> I need some tips of how to approach a new project that I want to develop.
>>
>> I would like to build a static generator, every user would be able to
>&
018 at 7:05:56 AM UTC-7, Jaime Sempere wrote:
>>
>> Hi,
>>
>> I have had a lot of problems to set up an API REST with basic auth,
>> finally I have used the next code, I left it here for anyone that may need
>> it:
>>
>> from gluon.
Hello to everyone,
I need some tips of how to approach a new project that I want to develop.
I would like to build a static generator, every user would be able to build
his/her own blog using my CMS built with web2py.
I would plan to build static pages and leaving them on static/ folder.
Maybe
Hi,
I have had a lot of problems to set up an API REST with basic auth, finally
I have used the next code, I left it here for anyone that may need it:
from gluon.serializers import json
auth.settings.allow_basic_login = True
@request.restful()
def api():
response.view = 'generic.json'
Hi,
this is gonna sound a littile silly, but I have been wanting to publish a
thread like this from years ago.
I just wanna say to Massimo and all the web2py developers one thing:
thanks. Thanks a lot.
I love web2py and I enjoy programming and developing with it.
I can notice all the effort a
Hi,
I am using last web2py version but for any reason I am not able of sending
email from GAE. I am just trying the forget password mail but after giving
my email to the form, I am only redirected to login and I dont receive any
mail
I am using this settings:
mail.settings.server = 'gae'
ma
Just for future viewers:
I have needed to wrap the answer into a response.json() to be able to parse
the response in the client:
this works for me :
return
response.json(db.Questions.validate_and_insert(**fields))
this doesnt work :
return db.Questions.validat
Yes, that's my problem the web2py server looks like he is not able to
handle spaces on static paths to access those files... any other advice?
El miércoles, 9 de diciembre de 2015, 14:31:36 (UTC+1), Anthony escribió:
>
> Are you serving web2py via the built-in server? If not, you can configure
Hi,
I am trying to put some files inside of folder with a space (i.e: static/my
things/), but I am not been able to handle on web2p, when I try to access
the files on that folder.
It doesn't matter how I encode the url (I tried to replace the ' ' for
'%20') it keeps saying 'invalid request'.
Done!
El domingo, 23 de agosto de 2015, 2:10:27 (UTC+2), Massimo Di Pierro
escribió:
>
> Can you please open a pydal issue about this?
>
> On Friday, 21 August 2015 18:44:02 UTC-5, Jaime Sempere wrote:
>>
>> Hi,
>>
>>
>> Im using web2py 2.9.12, Im de
Hi,
Im using web2py 2.9.12, Im developing on local gae, and when I tried to
execute this query:
pics = db(db.pics.user_id==user_id).select(db.pics.img_link,
projection=True
,orderby=~db.pics.up_date, limitby=(num_min, num_max))
I got that error
WARNING 2015-08-21 23:40:54,728 tas
Im using same web2py version and python 2.7.x
My db.py works (user is inserted on db marked as 'pending') with this
configuration:
from gluon.tools import Auth, Service, PluginManager
auth = Auth(db)
service = Service() plugins = PluginManager()
## create all tables needed by auth if not cus
miércoles, 19 de agosto de 2015, 19:12:55 (UTC+2), Carlos Cesar
Caballero escribió:
>
> Works perfectly, many thaks for your answer in a RTFM-like question...
>
> El 18/08/15 a las 15:31, Jaime Sempere escribió:
>
>
> I have just checked a side project that I did today, and
I have just checked a side project that I did today, and noticed that I
wasnt able to see the pic either. I have been able to fix it using the
upload field:
form = SQLFORM(db.person, record, upload=URL('download'))
I simply added that : upload=URL('download') to my SQLFORM() syntax and it
wo
Hi,
thanks a lot for the help Paollo, I have tried that but the error is still
there with the development version. But... I have been able to 'fix it'
I went to _compat.py line 27 and just print the obj:
if not isinstance(obj, unicode):
print obj
return uni
I like the idea. I think we would need something like web2pyslices but in a
more modern/updated way... and easy to contribute. Web2py has a lot of
details very good to know but difficult to learn or to get. Also it would
be great to be able to upload litlle projects (I have just implemented some
Hi,
I am having problems when I try to deploy my app on local SDK GAE.
I can start the app on my local gae, but when I try to register first user,
after fill the form and press submit, I got this:
Traceback (most recent call last):
File "/home/jukvoxman/web2py/gluon/restricted.py", line 227,
I guess you did not reload routes.py... from the admin panel there is a
botton that says "reload routes.py"... other option (I guess you did this)
is restart web2py server
El martes, 27 de mayo de 2014 05:23:46 UTC+2, Jesse Ferguson escribió:
>
> It seems to be working now... I guess it just ta
Theorically that should do the trick, and mywebsite.com should load your
index page. Just silly question, do you have index.html and def index():
Btw, maybe you are checking in it in no-local server (i mean 'live' server,
internet server, or whatever is called), and you are using the general
t
>
> Hi Annet,
>
that looks very nice, but doesn't change anything in my case (same html).
Could you copy and past all your definition of def bootstrap3(form, fields)
?
The problem is that verify passwords fields (label & input) are not wrapped
with like other input fields, leaving him outsi
Hi,
I am having the same issue pointed here by Ricardo Pedroso:
https://groups.google.com/forum/#!searchin/web2py/verify$20password$20style/web2py/ZzRYjegMHw8/8iHikvlR23sJ
See, I use this:
auth.settings.formstyle='bootstrap3'
for making the register form in bootstrap style but verify password
ions.
>
> usually, there are alternatives for "famous" packages that solve with pure
> python what c extensions do in the "original" package. A simple google
> search for "tweepy gae" brought up this
> https://github.com/firelabi/tweepy-gae
>
>
Hi,
I am using Tweepy which uses ssl, and developing on GAE.
I donwload Tweepy and put the folder on /modules... then it failed due to I
needed ssl module too. I did the same, and then it failed again:
ImportError: Cannot import module '_ssl2'
_ssl2 is a .c file that is in /modules/ssl/_ssl2
t; code saving them into the global variables. The result set doesn't need to
> be persistent, so storing it to the database would be unnecessary. It will
> only be displayed to the user once.
>
> On Friday, January 24, 2014 1:38:01 PM UTC-7, Jaime Sempere wrote:
>>
>&
That link is outdated, check
this: http://web2py.com/books/default/chapter/29/04/the-core#URL-rewrite
And for www.example.com/someapp/default/index to www.example.com/
you only need to do:
routers = dict(
BASE = dict(default_application='someapp'),
)
--
Resources:
- http://web2py.com
- h
You are not storing the images. When you do :
form=FORM(fields, onvalidation=qrparse)
Did you guessed qrparse return values are being stored in form or somewhere?
You need to store in a cookie, global variable, or maybe in the form (I
don't know where you want to show the images).
Could y
I would like to cache every row of my database table, in order to be able
to do updates based in the key query.
This would be my table:
channel :string (Unique)
id_playing: integer
tstart: integer
duration:integer
order: integer
The querys are like
This could be
related:
https://groups.google.com/forum/#!searchin/web2py/gmail/web2py/CU_1qWYixjI/A2IuDsRDJ_oJ
(Although you said that email works in another app which is weird)
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (S
Damn... I forgot the
link:
https://groups.google.com/forum/#!searchin/web2py/prepopulate$20form/web2py/GF2sDS7uWi8/x8SVU09CFIoJ
El jueves, 23 de enero de 2014 02:07:19 UTC+1, Jaime Sempere escribió:
>
>
> I don't understand completely the flow of the process... do you have
Good luck! And glad to hear news like this. I am using again web2py and I
am loving it. It was long time ago since I didn't enjoy programming so
much. And I think you can see almost everywhere of 'him' the effort of the
creators for develope something easy and fast to use. So.. as everyone say
I don't understand completely the flow of the process... do you have two
submitt buttons, one for "autocomplete" and the other for "final submit?
I am not very sure, but here are my thoughts: What I would do is use
SQLFORM.factory something like this:
new_post_form = SQLFORM.factory(db.po
Hi,
I am having some doubts about routes.py
I going to explain what I think I understand:
routes_in = (
('/', '/welcome/default/'),
)
This will maplocalhost:8000to localhost:8000/welcome/default.
What about routes_out?
routes_out = (
('/welcome/default/','/'),
)
I guess this
Thanks a lot (and it was great adding support for several playlist), just
for future reference there is a small typo on db definition:
'playlist_name' should be 'playlist_title'
But I wanted to ask you... I would change the query:
query = db.playlist.playlist_title==record.playlist_title
,
Stef
On 19-01-14 4:37, Jaime Sempere wrote:
I have just discovered "services" in web2py xD
When I needed to pass a parameter via link is in the classic way:
yourlink.com?myvar=value <http://yourlink.com/?myvar=value>
and then you can grab them using value=request.vars.myvar
> I'm trying to automatically count each time a record is being updated. I
> could make a lambda function that worked for a dictionary:
> Field('edits', 'integer', compute=lambda r: int(r['edits'] or 0) + 1 ),
>
> However, I don't get this to work in practice. Can a lambda for edits not
> use i
I think you are mixing concepts you cannot return something from
process().accepted, you need to return at the end of your "tracer_form()"
function, is the function who returns things. In the proccess().accepted
you can do some operations, and modify variables that will be later
returned b
>
>
> I have tried this and work, let me know if it's the think you wanted. I
have used SQLFORM but i guess the code will be the same for CRUD (I have
never used it)
Just my workaround, I think there will be a better method perhaps
import time # This is required to include time module.
impo
Hi everyone,
Although I have used database serveral times, I have not done anything
beyond very basic, so I am wondering what would be the best practice for
this case:
I have a database table for storing a 'real-time' playlist of songs like
this:
db.define_table('playlist',Field('title','st
Hi everyone,
I plan to do an app for webs that have about 10k-100k visits per day. This
app would be an iframe of my own webpage/app.
I don't need a lot of bandwith (say that I will send an STATIC page, size
less than 30-20kb per request), but I need to update some data of this
static page
Hi everyone, this is driving me mad.
I used web2py and GAE one year ago and I liked a lot, fast and easy to work
with gae. Now that I wanted to start another app, I have download GAE and
Web2Py again (for having last releases and starting in a clean&new folder).
So, first change that I see is t
Sorry to bump this up, but I have not been able of using unique as it is
described here (no validators).
Also I have tried to use instead of unique IS_NOT_IN_DB as in this other
thread is suggested:
https://groups.google.com/forum/?fromgroups=#!searchin/web2py/gae$20unique/web2py/ZepLjcBowZs/Fu
Thanks for the answer and the advice. After reading your answers I think I
will use just simple sessions, as you said it makes sense. If in the future
I need something more, I'll try the sessions in cookies, sounds like a good
alternative.
El domingo, 10 de marzo de 2013 14:43:10 UTC+1, Anthon
El domingo, 10 de marzo de 2013 14:32:59 UTC+1, Niphlod escribió:
>
>
>
> On Sunday, March 10, 2013 2:20:02 PM UTC+1, Jaime Sempere wrote:
>>
>> Thanks for your answer.
>>
>> I am not storing too much, currenty I am storing for every user these
>> st
Thanks for your answer.
I am not storing too much, currenty I am storing for every user this string:
facebook_id
another string for the category of the forum where the user is right now
the thread page were the user is
the page of thread list
This is for every user. I've been trying to use cooki
Hi,
I have an application for facebook where I need to store some variables.
The application is like a little forum but with just one page and
everything is loaded via Ajax calls, so I need to store for example, the
user that is logged in, the page of the forum where he is right now... etc.
N
Thanks a lot for pointing me the way, now is working
I am a beginner in web2py & GAE and I didn't know anything about
index.yaml. I was developing locally with web2py and uploading directly to
GAE (in the beginning I used locally GAE, but later I skipped this step).
So index.yaml was not being
Thanks a lot for pointing me the way, now is working
I am a beginner in web2py & GAE and I didn't know anything about
index.yaml. I was developing locally with web2py and uploading directly to
GAE (in the beginning I used locally GAE, but later I skipped this step).
So index.yaml was not being
Hi,
I've been searching about this but can't found any info abut it.
I have an application which locally work well, but when I upload and test
it in google app engine this line gives me error:
for row in db(db.posts.thread_id==thread_id).select(orderby=db.posts.
post_date):
Google app en
A little correction for any future visitor:
compute= lambda row: "%(username)s-%(songname)s-%(playlist_name)s"),
should be:
compute= lambda row: "%(username)s-%(songname)s-%(playlist_name)s" %row),
Anyway the solution is great. Thanks a lot.
El miércoles, 12 de septiembre de 2012 00:54:45 UTC+2,
Hi, i'm getting mad using facebook.py, I cannot get it work.
Anyway, I have almost been able of using your facebook.py, but I am using
Google App Engine, so urllib doens't work there. Web2py book suggest using
fetch instead of urllib for GAE:
http://web2py.com/books/default/chapter/29/14#Fetchi
52 matches
Mail list logo