On Friday, December 7, 2018 at 4:35:53 AM UTC-8, Morteza Tabibi wrote:
>
> Hi, my friend, I'm having this problem. I want to, for example, take a 
> picture of a flower on my site and explain about it. What should I do? 
> Thank you for saying, for example.
>
>
Are you wanting to make a page that permanently displays the same image and 
text?  For that, it is probably easiest to use non-web2py tools to upload 
the image to the static directory, which is how the welcome app displays 
its banner.

If you want a dynamic selection of an image and text, then the example in 
the book is a good starting point.
<URL:http://web2py.com/books/default/chapter/29/03/overview#An-image-blog>

There are some things that can be done to display a dynamic choice of 
images that aren't in the upload folder (see the example), but those are 
complicated enough you should try the example first.  After doing a lot of 
simple apps first, I've worked out for my personal app that I use to sort 
my photos, and the clues I needed were in the group archives.  But best not 
to start there.

/dps



 

> On Fri, Dec 7, 2018 at 1:29 PM 黄祥 <steve.van...@gmail.com <javascript:>> 
> wrote:
>
>> perhaps you can show the code and the traceback error
>> ref:
>> http://web2py.com/books/default/chapter/29/03/overview#An-image-blog
>>
>> best regards,
>> stifan
>>
>> -- 
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to web2py+un...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> -- 
> باتشکر از شما
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to