Re: Django {% regroup %} produces duplicate groups

2011-07-04 Thread Federico Maggi
On Mon, Jul 4, 2011 at 13:32, bruno desthuilliers wrote: > On Jul 4, 12:49 am, Federico Maggi wrote: >> {% block content %} >>   {% regroup object_list|dictsort:"topic" by topic as topic_list %} >> > > Remove the dictsort, it's for li

Django {% regroup %} produces duplicate groups

2011-07-03 Thread Federico Maggi
Hi, I've defined the following models: class Topic(models.Model): class Meta: ordering = [ 'title'] objects = models.Manager() highlighted = HighlightedTopicManager() highlight = models.BooleanField( default=False, help_text='Show this topic on the home page?', db_index=

Outputting plain/text with class-based views

2011-04-25 Thread Federico Maggi
Hello, I need a view to return plain/text and I came up with the following code: from django import http from django.views.generic.base import TemplateResponseMixin from django.views.generic.list import ListView from django.views.generic.detail import DetailView from django.conf import settin

Re: Django webiste down

2010-09-09 Thread Federico Maggi
On Sep 9, 2010, at 4:43 PM, Łukasz Rekucki wrote: > Is it only me or is http://docs.djangoproject.com/ down? http://downforeveryoneorjustme.com/http://docs.djangoproject.com/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to t

Re: Spam filters for Django?

2010-09-04 Thread Federico Maggi
What about leveraging (google "askimet django") for all users and forcing non-logged in users (eg, anonymous, guests) to also solve a reCAPTCHA? -- Federico On 04/set/2010, at 08:31, Kenneth Gonsalves wrote: > On Fri, 2010-09-03 at 22:25 -0700, Andy wrote: >> Only logged in users will be allo

Re: AttributeError at /admin/ when logging into the default Admin site.

2010-09-03 Thread Federico Maggi
On 03/set/2010, at 17:42, "daniel.osterme...@gmail.com" wrote: > There was another issue raised that sounded a little similar, where > the problem was the that django 1.2 was installed over the top of > 1.0. I've installed it as documented, but I do have both 1.0 and 1.2 > installed, so maybe s

Re: extending User

2010-09-03 Thread Federico Maggi
On 03/set/2010, at 12:54, djnubbio wrote: > How can I handle it? which function have i to attach to that url? Could you tell us your urls and settings, and in particular the INSTALLED_APPS variable? -- You received this message because you are subscribed to the Google Groups "Django user

Re: AttributeError at /admin/ when logging into the default Admin site.

2010-09-03 Thread Federico Maggi
Hi, On Sep 3, 2010, at 7:42 AM, daniel.osterme...@gmail.com wrote: > Any help would be appreciated. do you run into the same problem if you remove that 'optiver' stuff? -- Fede -- You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: django-registration + e-mail confirmation

2010-09-02 Thread Federico Maggi
wrote: > How to open port 25 in ubuntu? If you google for "mail ubuntu" or "smtp ubuntu" there is a nice community doc/wiki explaining you all the steps for setting up an SMTP server on Ububtu. Otherwise, for testing purposes, you could use the debug mail backend in Django that writes e-m

Re: django-registration + e-mail confirmation

2010-09-02 Thread Federico Maggi
On 02/set/2010, at 14:10, tom84 wrote: > Unfortunately after sending filled registration form I received 111 > error- connection refused. Looks lice you're trying to connect to a closed/filtered port (25). Have you tested the SMTP outside Django (e.g., using telnet localhost 25)? -- Fede

Re: Web hosting?

2010-08-31 Thread Federico Maggi
On Aug 31, 2010, at 10:13 AM, Sithembewena Lloyd Dube wrote: > We will be going live in a while, and we need hosting. I have a host in mind, > but I wanted to know what others think? In your view, which host provides > good Django support and decent performance? http://djangofriendly.co

Re: Django 1.1.1's Feed only display the latest item

2010-08-10 Thread Federico Maggi
On Tue, Aug 10, 2010 at 13:38, Daniel Roseman wrote: > This was actually an issue with the OP's get_absolute_url method, > which has been diagnosed on StackOverflow. could you please be more specific (e.g., a URL would be useful). Thanks! -- Fede -- You received this message because you ar

Re: Django 1.1.1's Feed only display the latest item

2010-08-10 Thread Federico Maggi
On Tue, Aug 10, 2010 at 09:47, Tomi Pieviläinen wrote: > As mentioned in the IRC channel, the feed did indeed display two > items, but because it was invalid markup (based on W3) Safari didn't > show them properly. I noticed, but has this issue (i.e., invalid RSS markup) been fixed in 1.2 or