Re: Full text search available on PostgreSQL?

2014-07-08 Thread Bastian Kuberek
This looks promising. Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to

Full text search available on PostgreSQL?

2014-06-28 Thread Bastian Kuberek
Hi, Just saw that django.contrib.admin.ModelAdmin.search_fields full text search only support MySQL. Are there plans on any progress towards getting this functionality on PostgreSQL?

Re: How to link different kinds of objects?

2013-04-22 Thread Bastian
Thanks to both of you for your in depth answers and insight. The objects that go to the feed are premade. I will try to see to what extent I can use the links you provided. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: How to link different kinds of objects?

2013-04-22 Thread Bastian
Thanks for your answer. About the constraints: a feed can be empty or contain one or more objects. And an object must belong to at least one feed. I have run some tests and the m2m field works perfectly for that. -- You received this message because you are subscribed to the Google Groups

How to link different kinds of objects?

2013-04-21 Thread Bastian
In the mean time I will try with a many to many field. That's probably more than enough. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

How to link different kinds of objects?

2013-04-21 Thread Bastian
! Bastian -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@google

CSRF verification fails on a specific browser

2013-04-08 Thread Bastian
When I try to log in on a Django project that has been working for some time with Firefox on Ubuntu I get a CSRF verification failure while with other browsers I can log in just fine (Chromium on Ubuntu or Safari on iPad or even another Firefox on MacOS). I have checked in the POST that the

Re: 'url' template tag throws and error after upgrading to 1.4

2013-04-04 Thread Bastian
I am trying now in a brand new environment, I have set up a new os, a new virtualenv with all the dependencies upgraded to latest versions, and I installed the project from the repository. It loads with debug = False, quite strange. I need it to work with debug = True and I want to understand

Re: 'url' template tag throws and error after upgrading to 1.4

2013-04-04 Thread Bastian
I'm not sure what you mean with 'connect to views'. In this case Django is complaining about the URL tags, the first one that gives an error tries to load django.views.i18n.javascript_catalog. When I manage.py shell I can do from django.views import * without problem. I really have no clue,

Re: 'url' template tag throws and error after upgrading to 1.4

2013-04-04 Thread Bastian
I have tried with runserver and debug = True and it gives me the error but when I turn off debug then the site loads fine. Then I installed gunicorn and with debug = true and the error appears but with debug = False the site loads fine but without the static content. I don't know if this is a

Re: 'url' template tag throws and error after upgrading to 1.4

2013-04-04 Thread Bastian
Thanks for the answer. But it does not really make any difference. I am still trying to figure out what is wrong in there... -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send

'url' template tag throws and error after upgrading to 1.4

2013-03-28 Thread Bastian
Hi, I am trying to upgrade an existing project from 1.3 to 1.4.5. I have it almost done but when I try to load the home page, in the base.html I have this line: and it throws an error: No module named views. When I replace the tag with the real url (/jsi18n/) then the error disappears but

Re: makemessages failing with non ascii characters in templates

2013-03-26 Thread Bastian
. Thanks for your help, much appreciated. On Tuesday, March 26, 2013 4:07:02 PM UTC+1, Ramiro Morales wrote: > > On Tue, Mar 26, 2013 at 9:23 AM, Bastian <bastien@gmail.com> > wrote: > > If I understand well, your fix is used to allow non ascii characters in > the >

Re: makemessages failing with non ascii characters in templates

2013-03-26 Thread Bastian
If I understand well, your fix is used to allow non ascii characters in the comments of a template. I found non ascii characters outside comments too, won't this break also? On Tuesday, March 26, 2013 12:19:36 PM UTC+1, Ramiro Morales wrote: > > On Tue, Mar 26, 2013 at 8:04 AM, B

Re: makemessages failing with non ascii characters in templates

2013-03-26 Thread Bastian
Thanks Ramiro, I don't know the actual burden of upgrading a whole project from 1.3 to 1.4 but it does sound terrifying :) I might go the patch way. On Tuesday, March 26, 2013 12:19:36 PM UTC+1, Ramiro Morales wrote: > > On Tue, Mar 26, 2013 at 8:04 AM, Bastian <bastien@gmail.com&

makemessages failing with non ascii characters in templates

2013-03-26 Thread Bastian
Hi, I am trying to create a .po file to start a translation. I use the command './manage.py makemessages -l ru' to try to create the Russian locale. The script seems to be working for a while and then crashes with: processing language ruTraceback (most recent call last): File "./manage.py",

Re: from django.contrib.admin.models import User

2012-11-06 Thread Bastian
Thanks for your answers, I will stick with the official django.contrib.auth.models. On Monday, November 5, 2012 11:59:16 PM UTC+1, Russell Keith-Magee wrote: > > > On Mon, Nov 5, 2012 at 7:50 PM, André Dieb > wrote: > >> From what I see on django's source code (dev), there

from django.contrib.admin.models import User

2012-11-05 Thread Bastian
of importing 'User'? Cheers! Bastian -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/aLj2wmpfr0oJ. To post to this group, send email to dj

Re: ordering by generic foreign key

2012-10-19 Thread Bastian
e 'filter(likes__user=user)' part must iterate through them in a way. Anyway it works. Cheers, Bastian On Thursday, October 18, 2012 6:46:14 PM UTC+2, Bastian wrote: > > Hi, I'm not sure to understand what I'm doing here :) I have a model of a > photo with name, description, image field... an

Re: Failed Unit tests in 1.4.2

2012-10-18 Thread Bastian Kuberek
I just cloned the master branch (1, 5, 0, 'alpha', 2) and ran the tests and they all passed. So I believe there is an issue with the packaged 1.4.2 source I downloaded. On Thursday, October 18, 2012 4:06:21 PM UTC-4, Bastian Kuberek wrote: > > Hi I am getting the following

Failed Unit tests in 1.4.2

2012-10-18 Thread Bastian Kuberek
Hi I am getting the following errors: == FAIL: test_broken_unicode (regressiontests.model_regress.tests.ModelTests) -- Traceback (most recent call last): File

ordering by generic foreign key

2012-10-18 Thread Bastian
been uploaded a long time ago it appears very far away in the favorites list. I would like to order that list by the pk of the Like object but I have no idea how to do that. I don't know if I made myself clear. Any help is welcome. Cheers, Bastian -- You received this message because you

Does pagination has to load all objects before showing the pages?

2012-10-17 Thread Bastian
of paginating to load all the objects before doing anything and thus getting slower as the number of objects get bigger? Thanks for your help! Bastian -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the

Re: Translation outside the broswer

2012-10-10 Thread Bastian
the latest language used in the user session? Or something similar? Thanks! On Friday, October 5, 2012 12:19:38 PM UTC+2, Tom Evans wrote: > > On Fri, Oct 5, 2012 at 10:12 AM, Bastian <bastien@gmail.com> > wrote: > > Hi, > > > > I understand quite well how

Re: Translation outside the broswer

2012-10-05 Thread Bastian
i, Oct 5, 2012 at 10:12 AM, Bastian <bastien@gmail.com> > wrote: > > Hi, > > > > I understand quite well how translations and i18n work inside a browser > for > > Django but I'm not sure about the correct way to do it outside a > browser. I > &g

Translation outside the broswer

2012-10-05 Thread Bastian
Hi, I understand quite well how translations and i18n work inside a browser for Django but I'm not sure about the correct way to do it outside a browser. I mean when sending a mail or a tweet. What should I use to get the language of the user that is going to receive the mail or in case of a

Re: Userena, how to set the avatar (mugshot) at signup time?

2012-09-13 Thread Bastian
() profile = new_user.get_profile() profile.mugshot = self.cleaned_data['avatar'] profile.save() return new_user Cheers. On Wednesday, September 12, 2012 12:20:45 PM UTC+2, Bastian wrote: > > Hello, > > I use userena to manage signups and profiles. I

Userena, how to set the avatar (mugshot) at signup time?

2012-09-12 Thread Bastian
option and B) how to render the mugshot (ThumbnailerImageField) in a form (tried forms.ImageField without success). Any help is welcome! Bastian -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web vi

Re: ./manage.py cleanup gets killed

2012-09-07 Thread Bastian
: > > On Fri, Sep 7, 2012 at 10:20 AM, Bastian wrote: > > When I try to do a ./manage.py cleanup it seems to be working for a > while (a > > few seconds) and suddenly it stops and I receive a message on bash > simply > > saying 'killed'. Then I tried to enter the mysql shell

./manage.py cleanup gets killed

2012-09-07 Thread Bastian
When I try to do a ./manage.py cleanup it seems to be working for a while (a few seconds) and suddenly it stops and I receive a message on bash simply saying 'killed'. Then I tried to enter the mysql shell to see if anything had been done and at the point when I type mysql> select * from

Re: have an object available in every templates

2012-06-29 Thread Bastian
Good point, thanks for your input. On Friday, June 29, 2012 12:51:09 PM UTC+2, bruno desthuilliers wrote: > > > > On Thursday, June 28, 2012 5:53:46 PM UTC+2, Bastian wrote: >> >> Well, I was curious to see if it worked with a context processor so I >> tried and i

Re: have an object available in every templates

2012-06-28 Thread Bastian
Well, I was curious to see if it worked with a context processor so I tried and indeed it works. After all it's only returning an object or list of objects in a dictionary. Now I don't know which method is the most efficient. On Thursday, June 28, 2012 2:11:37 PM UTC+2, Bastian wrote: > &

Re: have an object available in every templates

2012-06-28 Thread Bastian
Well, I was curious to see if it worked with a context processor so I tried and indeed it works. After all it's only returning an object or list of objects in a dictionary. Now I don't which method is the more efficient. On Thursday, June 28, 2012 2:11:37 PM UTC+2, Bastian wrote: > > Hi,

have an object available in every templates

2012-06-28 Thread Bastian
Hi, I don't know if this is possible or how to do it. I would like to write a sort of context processor where I pass an object to the template. I have always passed strings to these variables. Let's say I have a Book model and in a view I list the latest books I've added to the database. In

Re: Userena configuration

2012-06-25 Thread Bastian
')), ) Now I'm going to try what Kurtis suggests about the privacy part. On Sunday, June 24, 2012 11:45:56 PM UTC+2, Bastian wrote: > > Hi, > > I just installed Userena and it works fine. I would like to use the signup > form where the button for the terms of service appear but I

Userena configuration

2012-06-24 Thread Bastian
Hi, I just installed Userena and it works fine. I would like to use the signup form where the button for the terms of service appear but I can't find how. And also when editing a user profile, there is a field called privacy, it does not really make sense in my case so I set it up to default

Django Chuck - Your powerful project punch button

2012-06-11 Thread Bastian Ballmann
Django Chuck we are happy to hear from you either on github, stackoverflow (with tag django-chuck) or by email (ch...@notch-interactive.com). Wish you an awesome day The Django Chuck team -- Bastian Ballmann / Web Developer Notch Interactive GmbH / Badenerstrasse 571 / 8048 Zürich Phone Phone +41 44

uploading images via API

2012-05-29 Thread Bastian
to follow. I don't know if using a branch of Tastypie that handles images, or using another API or just building my own view for that purpose, does it even have to be RESTful? If anybody wants to share some experience I'll be glad to read it. Thanks, Bastian -- You received this message because

Re: Sorl permissions issues in media directory

2012-05-25 Thread Bastian
will own most things. > > Hope that helps more than hurts. > > On May 10, 6:33 am, Bastian <bastien.roche...@gmail.com> wrote: > > One more things, there is Redis installed too. > > > > > > > > > > > > > > > > On

Re: Sorl permissions issues in media directory

2012-05-10 Thread Bastian
One more things, there is Redis installed too. On Thursday, May 10, 2012 1:13:00 PM UTC+2, Bastian wrote: > > I have read the threads, searched google... to no avail. Stuck. > > I have Django running with Apache2 on Debian Squeeze and mod_wsgi in a > WSGIDaemonProcess with us

Sorl permissions issues in media directory

2012-05-10 Thread Bastian
I have read the threads, searched google... to no avail. Stuck. I have Django running with Apache2 on Debian Squeeze and mod_wsgi in a WSGIDaemonProcess with user=www-data, my user_media directory belongs to www-data and is 777, as is the cache directory inside it. And sometimes the

'ascii' codec can't encode characters in position 36-38: ordinal not in range(128)

2012-05-02 Thread Bastian
This happens when trying to upload a file with a filename that is not in ascii. In this case I tried éè´´çoöp_iI$.jpg. The strange thing is that firefox uploads it but chrome gets the error! I know this has been discussed already but the solutions mentioned did not work: I tried to change

Re: Django unable to write to an NFS share

2012-04-13 Thread Bastian
? On Friday, April 13, 2012 11:22:48 AM UTC+2, Bastian wrote: > > Hi, > > I have a working Django project and I am trying to add a second server. In > the process I am making an NFS share on one server. The Apache instances on > this server (the NFS host) can write (mostly images)

Re: Django unable to write to an NFS share

2012-04-13 Thread Bastian
see any error in the logs. I have my user-media set to the NFS share in my django settings. I have no idea what is going on! On Friday, April 13, 2012 11:22:48 AM UTC+2, Bastian wrote: > > Hi, > > I have a working Django project and I am trying to add a second server. In > the proc

Django unable to write to an NFS share

2012-04-13 Thread Bastian
. There is this lock issue thing that I'm not sure to understand if it has been fixed. Any clue is welcome. I'm using Debian Squeeze, Django 1.3 and this is the options I use in the export: rw,sync,no_root_squash,no_subtree_check,insecure Thanks, Bastian -- You received this message because you

Re: ModelForm based on User allows any username without checking

2012-04-10 Thread Bastian
? regards, Bastian On Tuesday, April 10, 2012 8:51:18 AM UTC+2, Pavan Verma wrote: > > I went through django/contrib/auth/models.py to check the definition > of the User model. I don't see this file defining any restrictions on > what a username can be. So, I think the form

Re: ModelForm based on User allows any username without checking

2012-04-09 Thread Bastian
Yes that's what I ended up doing but isn't it supposed to be automatic, coming from the restrictions of the model since it's a ModelForm? On Thursday, April 5, 2012 7:51:14 PM UTC+2, Pavan Verma wrote: > > Hi Bastian, > you need to define the restrictions on the username fiel

ModelForm based on User allows any username without checking

2012-04-04 Thread Bastian
Hi, I have a form that asks the registering user to choose a username. That form is a ModelForm based on the django.contrib.auth.models Users: class usernameForm(forms.ModelForm): class Meta: model = User fields = ('username', ) The strange thing is that when it appears on

Re: Is it secure to have IDs show up in URLs?

2012-03-23 Thread Bastian Ballmann
ate or title or a combination of both in the url? Not the > most convenient in this case. > > On Friday, March 23, 2012 12:17:02 PM UTC+1, Bastian Ballmann wrote: > > > > Hi Bastien, > > > > it's the task of the backend to manage the authorization including > > us

Re: Is it secure to have IDs show up in URLs?

2012-03-23 Thread Bastian Ballmann
> Is it a good idea to try to change this behavior? Maybe with some > sort of middleware? Is there any project doing it already? For > instance the urls in Instagram seem to be encoded at least. > -- Bastian Ballmann / Web Developer Notch Interactive GmbH / Badenerstrasse 571 / 8048 Zür

Re: what is the best IDE to use for Python / Django

2012-02-15 Thread Bastian Ballmann
Hey thats a cool list and I feel like I must answer on it :) Am 01.02.2012 17:43, schrieb Masklinn: On 2012-02-01, at 17:00 , Bastian Ballmann wrote: And what exact feature makes PyCharm an IDE that emacs hasnt? * Semantics navigation (not via tags, it knows to find a class when you want

Re: what is the best IDE to use for Python / Django

2012-02-01 Thread Bastian Ballmann
Check my latest projects <http://ishowcase.alwaysdata.net>/ -- 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-u

Model Inheritance Downcasting

2011-11-16 Thread Bastian Kuberek
Hi, I have looked a lot and have not yet figured out how to accomplish this. Let me show with an example what I am trying to accomplish. class WidgetType(models.Model): """WidgetType categorizes the type of Widget""" name = models.CharField(max_length=255) slug =

Re: Second coming of Java?

2011-10-13 Thread Bastian Ballmann
Am 13.10.2011 15:05, schrieb Tom Evans: Only people who are brought up on Java EE/.NET believe SOAP is useful/good. The rest of the world (yes, even us Enterprise with a big E) prefer simpler REST interfaces. Full ack! :) -- Bastian Ballmann / Web Developer Notch Interactive GmbH

Re: Unicode in unit tests

2011-10-13 Thread Bastian Ballmann
Am 13.10.2011 11:02, schrieb Tom Evans: # -*- coding: utf-8 -*- Is that on the first or second line of your file? If not, python will ignore it, as mentioned in the linked PEP. It's on the very first line of the tests.py Greets Basti -- Bastian Ballmann / Web Developer Notch Interactive GmbH

Re: Second coming of Java?

2011-10-13 Thread Bastian Ballmann
> bottleneck." - from the above article > -- Bastian Ballmann / Web Developer Notch Interactive GmbH / Badenerstrasse 571 / 8048 Zürich Phone +41 43 818 20 91 / www.notch-interactive.com -- You received this message because you are subscribed to the Google Groups "Django users&quo

Unicode in unit tests

2011-10-10 Thread Bastian Ballmann
SET and TEST_DATABASE_CHARSET to utf8, but still no luck. Any hints on how to solve that? TIA && have a nice day! Basti -- Bastian Ballmann / Web Developer Notch Interactive GmbH / Badenerstrasse 571 / 8048 Zürich Phone +41 43 818 20 91 / www.notch-interactive.com -- You received this

Re: Generic relation content_type does not exist

2011-09-14 Thread Bastian Ballmann
Hi again, maybe I get an answer if I ask the other way round. I've got an inline admin model with a generic foreignkey and I want to validate a set of it's properties in the models clean() method. If I add a new model neither content_type nor object_id is set in the clean() method, but if I

Generic relation content_type does not exist

2011-09-13 Thread Bastian Ballmann
to solve my problem in another way? Any hint is appreciated! Thx && have a nice day! :) Basti -- Bastian Ballmann / Web Developer Notch Interactive GmbH / Badenerstrasse 571 / 8048 Zürich Phone +41 43 818 20 91 / www.notch-interactive.com -- You received this message because you are su

Re: Django Development environment

2011-08-30 Thread Bastian Ballmann
ango-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en. -- Bastian Ballmann / Web Developer Notch Interactive GmbH / Badenerstrasse 571 / 8048 Zü

Re: PYTHONPATH and Django

2011-08-11 Thread Bastian Ballmann
s Basti Am Thu, 11 Aug 2011 15:20:16 +0200 schrieb Reinout van Rees <rein...@vanrees.org>: > On 11-08-11 09:37, Bastian Ballmann wrote: > > Now I start a new project and app, configure Django and last but not > > least I have to set the PYTHONPATH variable to my Django pr

PYTHONPATH and Django

2011-08-11 Thread Bastian Ballmann
share his or her virtualenv / Django config with me? TIA && have a nice day Basti -- Bastian Ballmann / Web Developer Notch Interactive GmbH / Badenerstrasse 571 / 8048 Zürich Phone +41 43 818 20 91 / www.notch-interactive.com -- You received this message because you are subscribed to th