ary_headers(response, ('Accept-Language',))
perhaps be:
patch_vary_headers(response, ('Content-Language',))
Could it be that simple? I will check. If this is indeed the solution I
will file a bug.
Berry
On 24 dec, 04:23, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote
ary_headers(response, ('Accept-Language',))
perhaps be:
patch_vary_headers(response, ('Content-Language',))
Could it be that simple? I will check. If this is indeed the solution I
will file a bug.
Berry
On 24 dec, 04:23, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote
However you did make me think. You suggested that the Vary header
should include Content-Language. If I look at my response header the
Content-Language header looks like: Content-Language: nl and if I
switch to English it looks like: Content-Language: en. Obviously.
Perhaps there is a bug in l
switching is not working
anymore.
Berry
On Dec 26, 3:28 pm, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote:
On 12/26/06,Beegee<[EMAIL PROTECTED]> wrote:
...
> > Perhaps there is a bug in locale.py. Should:
> > patch_vary_headers(response, (
.middleware.FlatpageFallbackMiddleware",
)
Then the cache_header files show that the cache is also varying on
cookie. I can switch once between Dutch and English using the set
language redirect view. And I got two cache_pages for each page. But, I
can only switch once!
I am almost there. I th
I want my application to be i18n enabled. So, in my project directory I
ran: make-messages -l nl. Before this I created the conf/locale
directory in projectdirectory.
This all worked just fine. Compilation also worked fine.
In my settings file I have put:
LANGUAGE_CODE = "nl"
LANGUAGES = (
Yep. And now it works perfectly. Reading the documentation again and
again I see it is actually in the documentation! You have to very
carefully read the documentation.
What confused me was the following part in the documentation. It is the
paragraph called "How to create language files". It cont
I have build a website in three languages and I want to use caching. I
have read the documentation thouroughly. I also read the source code
repository and the django newsgroups.
I am very confused about the order in which to put all the Middleware
classes.
Does anybody know what the right order
# CacheMiddleware settings
CACHE_BACKEND = "locmem:///"
CACHE_MIDDLEWARE_KEY_PREFIX = 'beegee'
CACHE_MIDDLEWARE_SECONDS = 60 * 5
MIDDLEWARE_CLASSES = (
"django.middleware.sessions.SessionMiddleware",
"django
Has anybody been observing the same thing? For a couple of weeks now I
have a website running build with Django. I was looking for way to
improve the performance. One way of improving the performance is
turning on the Query Cache for MySQL. By default this is activated. It
also was on my MySQL ins
No, then it also doesn't work. When I repeat the following query:
cursor.execute('select * from wifidog_businesses limit 10')
using MySQLdb the number of Cache hits do not increase. However, the
number of Qcache_queries_in_cache also do not increase. Strange.
I did find an issue on the MySQL fo
This is a part from the manual of MySQL: "In MySQL 4.0, the query cache
is disabled within transactions (it does not return results). Beginning
with MySQL 4.1.1, the query cache also works within transactions when
using InnoDB tables (it uses the table version number to detect whether
its contents
Currently I am using MySQL version 4.0.24. Looking at all the answers
the best thing to do is to try MySQL v5. I will do some testing over
the weekend and post my experiences.
Thanks very much for your help.
Berry
--~--~-~--~~~---~--~~
You received this message
My test results. I installed
mysql-standard-5.0.20-linux-x86_64-glibc23. Created a completely new
database and restored a backup from my 'old' django database into the
newly created MySql 5 instance.
Restarted Apache and everthing was up and running again. Great!
I checked with SHOW variables LI
I build a Dutch and English website: http://www.localpoint.nl. Traffic
to the website is increasing. That is why I am looking at enabling
Django caching.
However, it does not seem to work! I tried different backends. The file
backend for example does not store any files. I also tried memcached.
15 matches
Mail list logo