protect from brute force attacks on login

2009-02-09 Thread Markos Gogoulos
Hi all, I'm using django-registration to handle logins, registrations etc. It is very handy and easy to set up, but allows unlimited login attempts, and thus people can brute-force any django-application! So far I've been using fail2ban to ban users that brute force passwords. I would be

Include user profile's thumbnail on django comments

2009-01-23 Thread Markos Gogoulos
Hi all, I have subclassed User in order to create my own Profile objects. User's can upload an image for their profile. The question is how I can include this on their comments? There is an interesting post on http://thejaswi.info/blog/2008/11/20/part-2-django-comments-authenticated-users/where

Re: save_model and how to ignore any changes to an object

2008-10-20 Thread Markos Gogoulos
e.djangoproject.com/wiki/FullHistoryhttp://code.google.com/p/django-reversion/http://code.google.com/p/django-history/ > > Good luck > > On Sun, Oct 19, 2008 at 7:21 PM, Markos Gogoulos <[EMAIL PROTECTED]>wrote: > > > > > hi all. When I edit an object on django ad

save_model and how to ignore any changes to an object

2008-10-19 Thread Markos Gogoulos
hi all. When I edit an object on django admin and press save, I want the object NOT to be saved, but instead create another object that contains any changes (I want to be able to review it later). So the original object has to be unchanged. I tried with this: def save_model(self, request, obj,

Re: ManyToManyField edited on admin by both sides?

2008-10-04 Thread Markos Gogoulos
Solved, for reference check http://blog.abiss.gr/mgogoulos/entry/many_to_many_relationships_and On Sep 19, 5:39 pm, Markos Gogoulos <[EMAIL PROTECTED]> wrote: > Hi Jerry > > this doen't work with ManyToManyField > > Exception > has no ForeignKey to > > Regards

Re: ManyToManyField edited on admin by both sides?

2008-09-19 Thread Markos Gogoulos
Hi Jerry this doen't work with ManyToManyField Exception has no ForeignKey to Regards On Sep 19, 4:48 pm, Jerry Stratton <[EMAIL PROTECTED]> wrote: > On Sep 19, 6:45 am, Jerry Stratton <[EMAIL PROTECTED]> wrote: > > > class SoftwareInline(admin.StackedInline): > >         model = Software

ManyToManyField edited on admin by both sides?

2008-09-19 Thread Markos Gogoulos
Hi there, on the admin panel I am trying to display both models of an ManyToManyField relationship. Say for example there are these two models: class Software(models.Model): name = models.CharField(max_length=50) categories = models.ManyToManyField(Category) class