Re: The best hoster to install Django

2009-06-07 Thread Bro
Thanks a lot to Kenneth Gonsalves and Dj Gilcrease :) Regards Bro On 7 juin, 02:20, Kenneth Gonsalves wrote: > On Sunday 07 June 2009 05:14:20 Bro wrote: > > > I ask a question : What is the best hoster to install Django ? > > http://djangofriendly.com/hosts/  < study

The best hoster to install Django

2009-06-06 Thread Bro
Hi Everyone, I ask a question : What is the best hoster to install Django ? Because Django is a very cool project, I want to buy a Hoster that support Django. Thanks :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

Re: open flash chart 2 & django

2009-05-24 Thread Bro
The problem is resolved, thank to everyone On 21 mai, 17:09, Bro wrote: > I've just installed python-cjson 1.0.5 available here > :http://pypi.python.org/pypi/python-cjson/1.0.5 > But the problem remains. --~--~-~--~~~---~--~~ You received this m

Re: open flash chart 2 & django

2009-05-21 Thread Bro
I've just installed python-cjson 1.0.5 available here : http://pypi.python.org/pypi/python-cjson/1.0.5 But the problem remains. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gro

open flash chart 2 & django

2009-05-21 Thread Bro
Hi, I'm trying to use Open Flash Chart 2 with django. + Installation - I've downloaded OFC2 in this address : http://sourceforge.net/project/showfiles.php?group_id=201148 - In my Django Project, I've created a directory (openFlashChart) for the module with a __init__.py file inside. --- I put i

Re: Category list in Django

2009-05-12 Thread Bro
Big thanks to Matthias and everyone that help me a lot. To correct this error, I get the last Django and Django-mptt trunk. The error is gone :) On 11 mai, 14:19, Andy Mikhailenko wrote: > Hi, > > > in register dispatcher.connect(pre_save, > > signal=model_signals.pre_save, sender=modem) > > At

Re: Category list in Django

2009-05-10 Thread Bro
, order_insertion_by=['name']) But Django send me this error : in register dispatcher.connect(pre_save, signal=model_signals.pre_save, sender=modem) AttributeError: 'module' object has no attribute 'connect' On 10 mai, 17:57, Bro wrote: > Thanks :) > >

Re: Category list in Django

2009-05-10 Thread Bro
Thanks :) On 10 mai, 17:15, Antoni Aloy wrote: > 2009/5/10 Bro : > > > Thanks, I try to use django-mptt. > > I've installed it but how do you use it ? > > You have the documentation at: > > http://django-mptt.googlecode.com/svn/trunk/docs/models.txt > >

Re: Category list in Django

2009-05-10 Thread Bro
Thanks, I try to use django-mptt. I've installed it but how do you use it ? On 10 mai, 16:15, Antoni Aloy wrote: > 2009/5/10 Bro : > > > How to create a correct Tree of category ? > > Take a look at django-mptt athttp://code.google.com/p/django-mptt/it > would help

Re: Category list in Django

2009-05-10 Thread Bro
How to create a correct Tree of category ? On 10 mai, 15:51, Bro wrote: > I want to create a list of category with subcategory. > Here is the class : > > class Category(models.Model): >     parent = models.ForeignKey('self', blank=True, null=True) >     name = mo

Category list in Django

2009-05-10 Thread Bro
I want to create a list of category with subcategory. Here is the class : class Category(models.Model): parent = models.ForeignKey('self', blank=True, null=True) name = models.CharField(max_length=63) child_list = [] def __unicode__(self): return self.name I use this to c

Category list in Django

2009-05-10 Thread Bro
I want to create a list of category with subcategory. Here is the class : class Category(models.Model): parent = models.ForeignKey('self', blank=True, null=True) name = models.CharField(max_length=63) child_list = [] def __unicode__(self): return self.name I use this to c

Re: models.ForeignKey('self' ... -> Can't create new elem

2009-05-09 Thread Bro
Yes but I've just try to delete de .db file (I user sqlite3) I syncdb and It works now :) Thanks Alex for your good advice :) On 9 mai, 11:00, Alex Gaynor wrote: > On Sat, May 9, 2009 at 10:58 AM, Bro wrote: > > > Here is the code : > > > class Category(mo

models.ForeignKey('self' ... -> Can't create new elem

2009-05-09 Thread Bro
Here is the code : class Category(models.Model): parent = models.ForeignKey('self', blank=True, null=True) name = models.CharField(max_length=63) def __unicode__(self): return self.name I don't understand why but when I create a category in the admin page, there is this error

Re: Caught an exception while rendering: coercing to Unicode: need string or buffer, SentenceText found

2009-04-30 Thread Bro
I love you all :) Thanks :) --~--~-~--~~~---~--~~ 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 djang

Caught an exception while rendering: coercing to Unicode: need string or buffer, SentenceText found

2009-04-30 Thread Bro
class SentenceText(models.Model): language = models.ForeignKey(Language) text_id = models.IntegerField() text = models.TextField() def __unicode__(self): return self.id + ' ' + self.text class Box(models.Model): label = models.ForeignKey(SentenceText, to_field='text_id

Re: Json Serialization / Form Validation error

2009-04-02 Thread Bro
But before, is it possible to serialize a form in JSON ? Thanks --~--~-~--~~~---~--~~ 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

Re: Json Serialization / Form Validation error

2009-04-02 Thread Bro
But beforce, is it possible to serialise a form in JSON ? Thanks On 11 fév, 00:50, adrian wrote: > Thank you all for posting this.  You saved me probably hours of head > scratching. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Sessions living through HttpResponseRedirect

2009-04-01 Thread Bro
Hi Josh, I think the best is after you create a client, he should log in. When the client log in, you can use : request.user to get user information. Good luck Bro --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: ManyToMany

2009-03-26 Thread Bro
Thanks a lot for your answer Russ Magee %-) --~--~-~--~~~---~--~~ 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

ManyToMany

2009-03-25 Thread Bro
Hi, I'm trying to use ManyToMany in 2 sens : --- class Person(models.Model): name = models.CharField(max_length=128) groups = models.ManyToManyField(Group, through='Membership') def __unicode__(self): return self.name class Group(models.Model):

Re: Beginner URL question.

2009-03-23 Thread Bro
I use {% url myproject.core.views.member_create %} But in the production server, it give :( http://www.mysite.fr/var/www/mysite/mysite/user/create/ instead of : http://www.mysite.fr/user/create/ --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: Beginner URL question.

2009-03-23 Thread Bro
Hi, I use the same answer but I have another problem in the production server (in local, it works perfectly) On 23 fév, 23:57, "Joe Goldthwaite" wrote: > >You could try using a tag to explicitly state what the > >base for relative URLs should be. > > Thanks Ned. That sounds like it will work.

Re: Absolute URL

2009-03-23 Thread Bro
Hi, django.template.defaultags exist ? On 20 mar, 16:36, Rajesh D wrote: > On Mar 20, 6:16 am, Alfonso wrote: > > > > > Hi, > > > Insanely simple answer here I think but I'm trying to sort someurl > > errors in a mapping app.  Virtual earth requires an absoluteurlto > > the KML file django is

Re: How to get the root path ?

2009-03-23 Thread Bro
f/templates/builtins/#url > > ~Jakob > > On 18 Mar., 13:35, Bro wrote: > > > Hi, > > > My project root path is :http://127.0.0.1:8000/ > > > The user path is :http://127.0.0.1:8000/user/ > > The change form path is :http://127.0.0.1:8000/user/change/ > &

Re: FIXED: Can't run django on Apache

2009-03-18 Thread Bro
What's the best way to do it ? I don't understand the official tutorial --~--~-~--~~~---~--~~ 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 unsub

Re: How to get the root path ?

2009-03-18 Thread Bro
Thanks Jakob :) It works perfectly :) Bro --~--~-~--~~~---~--~~ 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

Re: FIXED: Can't run django on Apache

2009-03-18 Thread Bro
Thanks Graham !! It works perfectly, you own :) Bro --~--~-~--~~~---~--~~ 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

How to get the root path ?

2009-03-18 Thread Bro
Hi, My project root path is : http://127.0.0.1:8000/ The user path is : http://127.0.0.1:8000/user/ The change form path is : http://127.0.0.1:8000/user/change/ In the template.html file I use : {{ root_path }}change/ My question : how to get the variable of the root path (http:// 127.0.0.1:800

Re: FIXED: Can't run django on Apache

2009-03-17 Thread Bro
Hi I've installed Django 1.02 on my dedibox. I'm trying to make .py file readable and executable. Apache, Python, Django are installed. We have many website : /var/www/mysite1 /var/www/mysite2 /var/www/mysite3 we have : /var/django/mysite1 /var/django/mysite2 We configure in /etc/apache2/site-a

Re: FIXED: Can't run django on Apache

2009-03-17 Thread Bro
The result is : SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE mysite.settings PythonOption django.root /home/rex/django/mturk PythonDebug On PythonPath "['/home/rex/django/'] + sys.path"

Re: User, Auth, Group

2009-03-17 Thread Bro
I go for it :) I hope I will manage :) Thanks Dougal for your help --~--~-~--~~~---~--~~ 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 unsubscr

Re: User, Auth, Group

2009-03-17 Thread Bro
admin part ? Thanks Bro On Mar 17, 12:56 pm, Dougal Matthews wrote: > The permission system doesn't understand the concept of users 'owning' > things. Therefore, the permissions apply to everything. Can all, can change > any or can delete any. > This is something you nee

User, Auth, Group

2009-03-17 Thread Bro
Hi, I am using the User model with additional information. This model is called : MyUser. I try to use permission with group in admin but I have 'can add', 'can change', 'can delete'. When I give a 'can change' permission, a MyUser login, he can change every MyUser. My question is how do I give

Re: Django critter helps us code at the speed of light.

2009-03-17 Thread Bro
It's so sweet and sincere :) Thank to your daughter :) --~--~-~--~~~---~--~~ 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