Re: Customised admin saving

2009-07-11 Thread Friðrik Már Jónsson
Daniele Procida wrote: > I think this means that I need to add a routine to my admin.py so that > when the user hits Save, it will also manually assemble the information > and save it for the affected models. > > Is that correct? If so, what is doing this called, so I can look it up > in the docu

Re: Make three columns without violating DRY

2009-07-09 Thread Friðrik Már Jónsson
Javier Guerra wrote: > > write a column template: > --- > {% [f]or article in col_articles %} >{{article}} > {% endfor %} > --- > > and call it three times, with a different col_articles That's still breaking the DRY principle. :) Alex got it right. Regards, Friðrik Már --~--~-

Re: creating user directories upon account activation

2009-07-09 Thread Friðrik Már Jónsson
Hi, >if SHA1_RE.search(activation_key): >try: >profile = self.get(activation_key=activation_key) >except self.model.DoesNotExist: >return False >if not profile.activation_key_expired(): >user = profile.us

Re: Django way to design this model

2009-07-09 Thread Friðrik Már Jónsson
Hi Divesh, > I have this model that I want to design on Django. I have already > created the mysql side of it, and the mysql database is ready. Also, i > have loaded mysqldb and i think it works. It sounds like you've created something with MySQL and imported it to a database that's used by Dj

Re: ImportError: No module named urls

2009-07-09 Thread Friðrik Már Jónsson
Hey! A full traceback could be helpful. A lot of time when you've got really strange import errors they have something to do with circular imports. Did you change any imports right before or after the upgrade? Regards, Friðrik Már On Jul 9, 2009, at 3:25 PM, huw_at1 wrote: > > Hi all, > >

Re: django reporting

2009-07-08 Thread Friðrik Már Jónsson
Hi ankit, ankit wrote: > What is django reporting is anybody has some idea ? I think you should have put some more time into crafting your question. If you're referring to the django-reporting module (in which case a Google search should have sufficed), you can read up on it online[2]. Regar