Re: Django and google webmaster tools file

2011-01-19 Thread SQ9MEV
galago pisze: > How can I put a file, which is needed by the Google Webmasters Tool? > Where to put it or how to configure django to read it? AFAIR, you can add a DNS record or meta tag as well, meta tag coud be placed in your template, probably base.html -- Bartek -- You received this message

Re: Uploaded File Security

2010-05-20 Thread SQ9MEV
SQ9MEV pisze: > Lee Hinde pisze: >> What's best practice here? > Yet another way using nginx as a webserver: > http://wiki.nginx.org/NginxHttpAccessKeyModule And another one: http://wiki.nginx.org/NginxHttpSecureDownload -- Bart -- You received this message because you a

Re: Uploaded File Security

2010-05-20 Thread SQ9MEV
Lee Hinde pisze: > What's best practice here? Yet another way using nginx as a webserver: http://wiki.nginx.org/NginxHttpAccessKeyModule -- Bart -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@

strange behaviour of custom view based on date_based.object_detail - random 404

2009-09-29 Thread Bartek SQ9MEV
I've got some strange problems in my hosting enviroment using mod_wsgi like that: WSGIDaemonProcess mygroup user=myuser group=users processes=3 threads=10 display-name=mygroup Enviroment: python-2.6.1 python-apache-2.2.11 psycopg2-2.0.11 apache-mod_wsgi-2.5 glibc-2.10.1 The problem is that ran

Re: Django and Ajax (mootools/clientcide) Fupdate encoding problems

2009-04-28 Thread Bartek SQ9MEV
Karen Tracey pisze: > > Sharing with the list what, exactly, the 'results far from expected' > look like would be a start. I assume from the subject that you are > getting some sort of encoding exception, but without the traceback it is > a bit difficult to say where exactly the problem is. Ind

Django and Ajax (mootools/clientcide) Fupdate encoding problems

2009-04-28 Thread Bartek SQ9MEV
Hi Im using clientcide fupdate which generates ajax request: http://dpaste.com/38671/ My post data includes some national (polish) characters, when i try to save them i get results far from expected. My view is at http://dpaste.com/38672/ What would be the best idea to handle this problem? Wher

date_list in date_based.archive_index and date_based.archive_year but why not in archive_list and archve_month?

2009-04-22 Thread Bartek SQ9MEV
Hi Why there are not extra_centext date_list in date_based views except archive_index and archive_year? I've found this: http://code.djangoproject.com/ticket/3274 but this patch isn't applied in Django-1.0.2-final.tar.gz? What is the best way to have date_list in archive_list and archive_month

Re: pagination

2009-03-30 Thread Bartek SQ9MEV
Konstantin S pisze: > Hello! > second one I found at code.google.com. (Url is > http://code.google.com/p/django-pagination/). Which one would you > recommend ? This one works well for me (it uses the built-one), but remember not to use {% if object_list %} before pagination tags in your template

Re: django 1.0.2, django_pagination-1.0.5, postgresql, LIMIT & OFFSET question

2009-02-11 Thread Bartek SQ9MEV
Karen Tracey pisze: > On Wed, Feb 4, 2009 at 3:01 AM, Bartek SQ9MEV <mailto:bar...@sq9mev.info>> wrote: [...] > So, any idea where's the clue? > Is it possible to use django-pagination with generic views without so > senseless overhead? > The cause wa

Re: django 1.0.2, django_pagination-1.0.5, postgresql, LIMIT & OFFSET question

2009-02-04 Thread Bartek SQ9MEV
Bartek pisze: > so... looks like everytime I need 20 Post items my database is hit by > query returning all records... I find it a big overhead, and my app > suffers from that... Today I'm still investigating this issue, and I've just tried to use Paginator object as described at http://docs.djan

How to delete template fragment cache?

2008-12-02 Thread Bartek SQ9MEV
Hi all, I'm quite newbie in Django. I use template fragment caching ({% cache ...%}...{% endcache %}. This fragment changes rather seldom, changes originate only from admin site, są for me its obvious to delete cache at adding objects from admin, and use quite large tiemeout for my caches. How ca