Re: Multilingual search with Haystack

2014-08-19 Thread Simon Bächler
It's not that simple. When using a search server you should have a separate index per language. Search server are processing text to improve indexing such as saving only the stem of a verb or removing plurals. This is highly language specific. The main problem is therefore the schema creation a

Multilingual search with Haystack

2014-08-17 Thread Simon Bächler
Hi I need to set up a search server for our production servers. Each production server has multiple Django instances and every instance has multiple languages. As a search backend I'm leaning towards Elasticsearch because it is easier to add new sites to the index. Unfortunately Haystack asso

Re: Taggit fragmentation

2012-05-29 Thread Simon Bächler
Hi Russ I understand that Alex is busy doing other things now. But he is the owner of the django-taggit repo. If someone is searching for django-taggit it's his repo that shows up. What you are suggesting, creating my own fork and fixing my issues there is not the solution. It would only lead

Taggit fragmentation (open letter)

2012-05-28 Thread Simon Bächler
I was just checking on github if there was a new version of django-taggit and was quite shocked what I saw. The original repository had not been updated for over a year. Yet there are 41 issues and 12 pull requests. There are 114 forks, 17 of which had commits within the last month. Shortly, i

Re: DatabaseError when running unit tests after upgrade to Django 1.3.1

2012-05-02 Thread Simon Bächler
Yes, exactly the same here. Even creating the table in setUp doesn't help. Regards Simon > Did anybody experience something similar? > > Cheers, > Flo -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Re: Django deployment practices -- do people use setup.py?

2012-04-27 Thread Simon Bächler
Hi > > We have been using git and git submodules and just started using virtualenv and pip. Submodules works well but you need a git repo of your packages. I wrote a blog post on using them: http://www.feinheit.ch/blog/2012/04/18/using-git-submodules/ Now we use pip for working packages like

Re: Detect runserver in settings.py?

2011-11-21 Thread Simon Bächler
Hi Jim use: import sys if 'runserver' in sys.argv: Regards Simon -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+u

Re: browser detection in django

2011-11-16 Thread Simon Bächler
Hi Do you know modernizr? http://www.modernizr.com/ It's a small Java script that detects browser capabilities and adds them to the 'body' tag. Also check out http://html5boilerplate.com/. There is a browser reset css that tries to get all browsers to a common base. Regards Simon On 16 Nov.,

Open the Django page raw-id widget within TinyMCE

2011-11-14 Thread Simon Bächler
Hi Django's raw_id widget is very well suited for selecting a page as a foreign key in the admin frontend. Even from a tree view as it is the case for instance in FeinCMS. TinyMCE on the other hand allows for a dropdown list for link targets. Which is not that great if you have a few hundred page

Re: Django login() fails when using custom Facebook backend

2011-11-05 Thread Simon Bächler
Hi Some browsers (IE and Safari 5.0) don't store a cookie from within an iframe. For IE you can fix this by using special response headers. Set this in a middleware: def process_response(self, request, response): """ p3p headers for allowing cookies in Internet Explorer. more inf

Re: Facebook Authentication: Client side vs. Server side

2011-10-21 Thread Simon Bächler
Hi The Javascript SDK only lets you authenticate on facebook. You still need to authenticate the user in Django. The difficulty is keeping the two logins in sync. The django-facebook-graph has a Django backend for facebook login: https://github.com/feinheit/django-facebook-graph I use a javascri

Https with runserver

2011-09-14 Thread Simon Bächler
Any news considering HTTPS and runserver? I tried the stunnel method but I get the message: Line 5: End of section https: SSL server needs a certificate. Stunnel also complains about the openssl version. I have 0.9.8r installed. The build of 1.0 fails on OSX. When I then try to access the page I