Is it possible to rewrite a URL according to preferred language of browser?
I mean if the browser's preferred language is, for example, English then
rewrite example.com/app/controller/index to
example.com/app/en/controller/index. In routes.py I could set up languages
but if I set default_langua
I have these tables and I'd like to get every file which has no article
referred to it so I can delete them. What's the simplest way of achieving
this?
db.define_table('articles',
Field('created_on', 'datetime', default =
datetime.today(),required
= True, notnull = True, requir
Hi,
I'm trying to setup Nginx to handle all my static contents bypassing uwsgi
and thus web2py. Everything works fine as long as I don't specify a
language in the URL. If I do then I end up with broken links to static
files. Also, I don't quite understand what map_static should do but from
wha
Yes, it seems like that is the problem. I couldn't find a way of dealing
with this case in routes.py so I guess my only option is to handle these
cases separately in my nginx config. It is a shame, though, that there's
not a simple way of dealing with this directly in web2py by rewriting
outgoi
Yes, it seems like that is the problem. I couldn't find a way of dealing
with this case in routes.py so I guess my only option is to handle these
cases separately in my nginx config. It is a shame, though, that there's
not a simple way of dealing with this directly in web2py by rewriting
outgoi
This sounds like a nice approach to solve this issue without causing
backwards incompatibilities. Thank you for your efforts :)
2012. augusztus 6., hétfő 16:11:22 UTC+2 időpontban Jonathan Lundell a
következőt írta:
>
> On 6 Aug 2012, at 2:33 AM, Athelionas wrote:
>
> Yes, it see
Let's suppose we have a page for creating blog posts with a form with text
area transformed into an editor. That editor has properly configured custom
upload mechanism meaning that it uses a controller function such as
upload_file() and it also has a view which is only needed to run some
javasc
ion some identifier of
> the post that is going to be edited and use that to "tag" every row of the
> uploads.
>
> On Saturday, July 7, 2012 11:17:19 PM UTC+2, Athelionas wrote:
>>
>> Let's suppose we have a page for creating blog posts with a form wit
What is the proper way of uploading a file without SQLFORM into the
following database table?
db.define_table('files',
Field('original_filename', 'string'),
Field('file', 'upload', uploadfield='file_data'),
Field('file_data', 'blob'))
A simple inse
re of that field?
Or do I need to put file content there manually?
Thanks in advance.
2012. július 9., hétfő 16:54:26 UTC+2 időpontban Anthony a következőt írta:
>
> http://web2py.com/books/default/chapter/29/6#Manual-uploads
>
> On Monday, July 9, 2012 10:15:27 AM
Alright, finally I got it working by manually assigning file content to
uploaded_data field. Looks like store() function does not actually store
data if files are to be placed in DB rather than in filesystem.
2012. július 9., hétfő 19:32:06 UTC+2 időpontban Athelionas a következőt
írta:
>
&
I've been experimenting with deploying web2py on a Cherokee server with
uWSGI. Everything works perfectly fine, although there's still room for
improvements. First thing that comes to mind is caching. Problem is this
topic can be very confusing for a newcomer like me as Cherokee, uWSGI, and
web
What is the preferred way of rewriting URLs?
Also, are there any advantages or disadvantages of choosing one over the
other?
I like the idea of routes.py better because of portability, but is it any
good in case of static files?
Than I'll go with routes.py. It's much easier than mod_rewrite and also
100% portable which is a killer feature.
Thanks for the responses.
2012. július 10., kedd 23:51:54 UTC+2 időpontban Athelionas a következőt
írta:
>
> What is the preferred way of rewriting URLs?
>
14 matches
Mail list logo