python - Cannot save ManyToMany fields from Django Admin interface -
my sqllite3 database , django setup working correctly except single situation involving admin interface:
class box(models.model): name = models.charfield(max_length=200, primary_key=true) balls = models.manytomanyfield( 'ball' ) class ball(models.model): name = models.charfield(max_length=200, primary_key=true)
i have manytomany field in box model contain multiple ball models. can create balls , can create box , link balls. cannot edit/save box's set of balls after it's been created without getting server error:
databaseerror : unable open database file
i using development server (python manage.py runserver). apart admin glitch, database io works fine across site.
things have tried have not helped: 1. deleting database , running syncdb again start fresh. 2. set db path in settings.py full path. 3. running shell start dev server 'as administrator' 4. setting parent, folder , db file permissions rw
i don't know else try. i'm open crazy suggestions, hoping might know cause this...
update:
i got working!
i suspected issue sqllite3 database. perhaps it's lack of transactional updates... can't sure. swapped database out mysql , issue gone. can create 'boxes' , add 'balls' them now.
Comments
Post a Comment