Re: Context processor

2010-08-19 Thread Pep
each view, I need to call the city argument to get an object_list Event. Ex : paginator = Paginator(Event.objects.filter(city=city), 5) I never used custom templatetags. Is it a better way in my case ? On 19 août, 16:14, bruno desthuilliers wrote: > On 19 août, 11:31, Pep wrote: > > >

Re: Context processor

2010-08-19 Thread Pep
Thanks for your help. This is my code : def custom_proc(request): "A context processor that provides 'authForm'" return { 'authForm' : authForm, 'event': event } def home(request, city): paginator = Paginator(Event.objects.all(), 5) try: page = int(re

Re: Context processor

2010-08-19 Thread Pep
t): I have another view : def home(request, city): which call context. And I want to use the city argument of home in the context view. How can I do it ? If I add city in context, I have an argument error. Thanks for your help On 19 août, 10:30, Daniel Roseman wrote: > On Aug 19, 8:42 am, Pe

Context processor

2010-08-19 Thread Pep
Hi everybody, I would like to use the context processor I wrote with my registration views. But I don't see how to do it without changing the registration views ? Somebody has an idea ? Thanks ! PEP -- You received this message because you are subscribed to the Google Groups "Dj

Django-registration and backend

2010-06-22 Thread Pep
Hi everybody ! I'm installing django-registration but I have a problem in my server while it works with the runserver. When I want to go to the register view, the debug mode tell me that : register() got an unexpected keyword argument 'backend' Anybody have an idea ? Thanks

Re: Is it possible to add a table on my database with a django code ?

2010-05-19 Thread Pep
:) Thanks for your answers. Effectively, I won't do this but I was curious on manipulate a database like this. However it could be useful in a few project with a limited number of users. On 19 mai, 14:35, Dj Gilcrease wrote: > On Wed, May 19, 2010 at 8:18 AM, Pep wrote: > >

Is it possible to add a table on my database with a django code ?

2010-05-19 Thread Pep
t automatically ??? Thanks for your answers PEP -- 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...@g

Autocomplete with two tables

2010-04-23 Thread Pep
to do it ? I thought on something like that : add in filter "name is present on list" where list is the client products list. What's your opinion ? Thanks PEP -- You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: Concat a message with send_mail

2010-04-15 Thread Pep
Ok thanks, I choose this one On 15 avr, 18:23, "ge...@aquarianhouse.com" wrote: > As already mentioned, the best would be to use > render_to_string('email_template.txt', {'name':'John', > 'msg':'message'}) and pass it through. > > On Apr 15, 6:13 pm, Tim Shaffer wrote: > > > > > Can't you just c

Concat a message with send_mail

2010-04-15 Thread Pep
. Thanks PEP -- 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 more options,

Re: Deployment with Apache. Help !

2010-04-07 Thread Pep
Thanks for your answers. Well, it's working now. But I don't understand why. I just add a LocationMatch with a regular expression (CSS, png, etc.). But the location still not working :=° Any idea ? On 7 avr, 17:36, Nadae Ivar Badio wrote: > hi Pep: > > Do you give permi

Deployment with Apache. Help !

2010-04-07 Thread Pep
17 18 Thanks for your help PEP -- 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...@google

Re: Error using comment framework

2010-03-23 Thread Pep
nse('index.html', { 'title' : 'news_content.title'; ... }) PEP On 23 mar, 18:20, Daniel Roseman wrote: > On Mar 23, 5:07 pm, Pep wrote: > > > > > Hi everybody, > > > An error occured when I want to use the comment fr

Error using comment framework

2010-03-23 Thread Pep
Hi everybody, An error occured when I want to use the comment framework. Django debug says me : "Caught an exception while rendering: 'str' object has no attribute '_meta'" I don't understand why because when I use the comment framework on the same project with Diario module, it works fine ! My