Re: sorl.thumbnail is not working

2012-05-24 Thread krzysiekpl
Did you correctly set up MEDIA_ROOT in settings ? Sorl-thumbnail only use files from MEDIA_ROOT try to move uploads/ to media a then use realtive path to file. On 24 Maj, 06:40, Oana Salageanu wrote: > I'm not sure what I'm doing wrong, this is my template code: > {% load thumbnail %} > > {% thum

Re: NoReverseMatch Error

2011-06-09 Thread krzysiekpl
Hi, Look at this: https://docs.djangoproject.com/en/dev/topics/http/urls/#reverse `viewname` is incorrect in your app you must use 'poll_results' instead of 'polls.views.results' Krzysztof Hoffmann On 9 Cze, 09:28, bahare hoseini wrote: > hi there, > this is my views.py that doesn't have an

Re: Logging raw sql

2011-03-09 Thread krzysiekpl
Hi, if you are using postgresql you can use logger_collector. Try this: http://www.postgresql.org/docs/8.3/static/runtime-config-logging.html. On 9 Mar, 05:04, Dave Sluder wrote: > I need to log all insert/update/delete queries such that the database > could be rebuilt from the log. I know I can

Re: CSRF Cookie in IE

2011-03-09 Thread krzysiekpl
Did you try add custom header X-CSRFToken ? Try this solution if youre using jquery $.ajaxSetup({ beforeSend: function(xhr, settings) { if (!(/^http:.*/.test(settings.url) || / ^https:.*/.test(settings.url))) { // Only send the token to relative URLs i.e. locall

Re: Help with Apache/Nginx combo

2011-03-11 Thread krzysiekpl
In my opinion you should add alias in nginx.conf for admin media files. Put this code in server{} # admin uses admin-media/ # alias works different than root above by dropping admin- media location ^~ /media/admin/ { alias /usr/local/lib/python2.6/dist-packages/django/