On Tue, 15 Jun 2010 21:21:38 +0800 "Traduction.BIZ" <comme...@traduction.biz> wrote:
> Hi, > > I've got Pootle 2.0.4 running with Django 1.2.1, Translate-Toolkit > 1.7.0, Python 2.6.5, and MySQL 5.1.47 on FC12. > > I went into the admin panel and deleted a couple of languages (i.e. > site-wide languages, not languages of a particular project). couldn't recreate the problem by deleting languages (though I got maximum recursion errors while attempting to delete languages with django 1.2). > I've now started getting the error message on the home page and > Admin/Permissions page: > > "Server Error > An error has occurred. Thank you for your patience. > get() returned more than one Directory -- it returned 3! Lookup > parameters were {'parent': None}" so while I'm not sure how this happened (would appreciate more info), here is how to fix it. you need to get a django shell, if you are running from checkout use the command ./manage.py shell if you are running from an install use the command django-admin.py shell --settings='pootle.settings' you'll get a python shell, with the django environment loaded, then run the following python commands from pootle_app.models import Directory Directory.objects.filter(parent__isnull=True).exclude(pootle_path='/').delete() this should delete the broken Directory objects causing the tracebacks. cheers, Alaa ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle