I am using version 1.0 and MySQL
When I try to update a record in a model outside the manage.py file I
get the following exception:
"Exception exceptions.SystemError: 'error return without exception
set' in <generator object at 0x014E7D78> ignored"
File Structure
Python
|-rc1_test
|-app1
save_test.py
I am running save_test.py inside komodo using the debugger
Files:
app1.models.py is:
from django.db import models
# Create your models here.
class App1Model(models.Model):
model_name = models.CharField(max_length=50)
model_desc = models.CharField(max_length=200)
Main python script save_test.py
import sys
import os
from django.core.exceptions import ObjectDoesNotExist
sys.path.append('C:/Prog/Projects/Python')
os.environ['DJANGO_SETTINGS_MODULE'] = 'rc1_test.settings'
from rc1_test.app1.models import *
test = App1Model()
test.model_name= 'Test Name'
test.model_desc= 'Test Desc'
test.save()
test = App1Model.objects.get(pk=1)
test.save()
the first test.save() raises no error
the second test.save raises the error
Any ideas?
This seemed to start happening between .96 and 1.0
Thanks in advance
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---