Re: Django vs Postgres Connection

2010-12-17 Thread Mathieu Leduc-Hamel
> > -- > 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...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. &g

Django cache view

2010-11-12 Thread Mathieu Leduc-Hamel
memcached is working properly. What's not working ? -- Mathieu Leduc-Hamel -- 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...@googlegroups.com. To unsubscribe from this group,

Unicode, utf8, mysql

2010-10-11 Thread Mathieu Leduc-Hamel
e next bug for the next incompatible character with MySQL ! -- Mathieu Leduc-Hamel -- 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...@googlegroups.com. To unsubscribe from this group, s

Confoo 2011 Call for Speakers

2010-10-06 Thread Mathieu Leduc-Hamel
! -- Mathieu Leduc-Hamel -- 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...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For mo

Re: Vim for Python and Django

2010-09-26 Thread Mathieu Leduc-Hamel
up. >> > To post to this group, send email to django-us...@googlegroups.com. >> > To unsubscribe from this group, send email to >> > django-users+unsubscr...@googlegroups.com. >> > For more options, visit this group >> > athttp://groups.google.com/g

Re: GoFlow - anybody out there used it?

2010-09-06 Thread Mathieu Leduc-Hamel
l to django-us...@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. > > -- Mathieu Leduc-Hamel -- You received this message because

Re: PIL on 10.6 = PAIN

2010-09-01 Thread Mathieu Leduc-Hamel
env I was using as well just to >> verify, but the problem seem higher up the stream and Bill indicated. >> I will take a look for the ld.conf equiv in OSX at lunch today. >> >> Thanks! >> Ben >> >> On Aug 31, 10:20 am, Mathieu Leduc-Hamel <marra...@gmai

Re: PIL on 10.6 = PAIN

2010-08-31 Thread Mathieu Leduc-Hamel
group, send email to django-us...@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. >> >> > >

Re: how to turn off CSRF in django 1.2?

2010-08-26 Thread Mathieu Leduc-Hamel
d this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options,

Re: virtualenv and standalone scripts

2010-08-24 Thread Mathieu Leduc-Hamel
And what about using "console_scripts" entry in your setup.py script ? http://www.google.com/search?q=console_scripts On Mon, Aug 23, 2010 at 11:11 PM, Oivvio Polite wrote: > On Mon, Aug 23, 2010 at 10:54:21PM +0200, Oivvio

Re: adding a summary field to a model

2010-08-19 Thread Mathieu Leduc-Hamel
But by the way you field seem to be a sum of some others, maybe it should not be a new field but just a new method returing the resulting calculation depending of the attributes of your instance. No ? On Thu, Aug 19, 2010 at 4:56 PM, bruno desthuilliers < bruno.desthuilli...@gmail.com> wrote: >

Re: connect to database from template

2010-08-19 Thread Mathieu Leduc-Hamel
You have to forget the php when you code something in Python and Django. The process doesn't fallow the same way it does in PHP. It's complete new world (and a more beautiful and peaceful one i think). Your connection will be keep alive, don't worry about that. What do you mean by connection ?

Re: django and php

2010-08-19 Thread Mathieu Leduc-Hamel
Have you took a look at the tutorial on the django webpage ? It's a must to read before doing anything with django. After that i can propose to you a solution: If i was you i would code 2 views One for the rendering on the page One as ajax view The first one would use the javascript to reload

Re: How to execute some user defined codes (functions) when Django boot?

2010-08-18 Thread Mathieu Leduc-Hamel
The problem with that way, as said before is that you don't really know if your code will be executed at startup in the wsgi context... and exactly at what time. 2010/8/18 skyjur > You could try to create an app with models.py file and put your calls > in models.py. Then

Re: How to execute some user defined codes (functions) when Django boot?

2010-08-18 Thread Mathieu Leduc-Hamel
Richard, it's not the good way to do this, in the settings.py cause as i said before, the code in the settings.py is executed every time somebody initiate a session for the first time. The point there is a way to have a part of code common to all currently connected user. Tang, I'm not an

Re: How to execute some user defined codes (functions) when Django boot?

2010-08-17 Thread Mathieu Leduc-Hamel
particular thread or process is going to > live, > and no idea how often this "boot" code would get run. > > But assuming that's OK, one naive strategy would be to just call the > function(s) at top level in some module that gets imported by your > app. > Good enough? >

Re: Chopping Queryset

2010-08-17 Thread Mathieu Leduc-Hamel
If you want the job offer of the current logged user it should be pretty simple using a filter like that: jobsfound.filter(userdetail__user=request.user) But if i was you i would invert the order of these two filter like that: jobsfound = joblist.objects.filter(userdetail__user=request.user)

Proxy models and Meta options

2010-08-17 Thread Mathieu Leduc-Hamel
of my proxy model !!! How it's possible ? What should I do ? Mathieu Leduc-Hamel -- 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...@googlegroups.com. To unsubscribe from this group, send

Re: How to execute some user defined codes (functions) when Django boot?

2010-08-17 Thread Mathieu Leduc-Hamel
Tang, do you mean : "How to execute some pieces of code when you launch the "runserver" command by example" ? If this is what you mean, it's not a easy thing to do right now. Then only way i found it possible is by using: twod.wsgi With twod.wsgi you can use the entry points system of python

Re: Changing a model of place from the admin site

2010-08-17 Thread Mathieu Leduc-Hamel
ms': >p='general-content' >elif p=='auth': >p='users' >return HttpResponseRedirect('/admin/#'+p) > > (this basically redirects /admin/auth/ and /admin/cms/ to a named > anchor on the index page instead) > > Andy > > On Aug 16, 4:41 pm, Ma

Re: Best OS - VPS environment

2010-08-16 Thread Mathieu Leduc-Hamel
Yeah but it's a little bit simpler with apache and mod_wsgi... If i don't want to run a separate service like gunicorn or something like, how can we do the same thing than apache+mod_wsgi but with nginx. We've tried passenger but it's not very stable and not necessarily always product's ready.

Changing a model of place from the admin site

2010-08-16 Thread Mathieu Leduc-Hamel
Hi all, I'm currently developing a e-commerce website using satchmo and django. I would like to simplify the admin pannel from the user perspective. This is why i would like to change the different group of models. Right now, these group are organized by application. But when using some external