By the way, I suspect that during moving existing data into the new database, somethings might have been broken, like auto incrementation sequences. But, although I experimented with them a little, it didn't help.
On 7 Haziran, 21:07, omat <[EMAIL PROTECTED]> wrote: > My application is working in the development environment. I deployed > the application in the production and copied the data in Posetgresql > db. > > When I try to insert a new "Page" using the admin application, I > receive an "IntegrityError: null value in column "id" violates not- > null constraint". > > Any ideas? > > Thanks... > > The "Page" model class is as follows: > > class Page(models.Model): > title = models.CharField('Başlık', > maxlength = 100, > core = True, > db_index = True) > slug = models.SlugField(prepopulate_from = ('title',)) > body = models.TextField(blank = True, > null = True) > sections = models.ManyToManyField(Section, > blank = True, > null = True) > > And this is the traceback: > > Traceback (most recent call last): > > File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py", > line 77, in get_response > response = callback(request, *callback_args, **callback_kwargs) > > File "/usr/lib/python2.4/site-packages/django/contrib/admin/views/ > decorators.py", line 55, in _checklogin > return view_func(request, *args, **kwargs) > > File "/usr/lib/python2.4/site-packages/django/views/decorators/ > cache.py", line 39, in _wrapped_view_func > response = view_func(request, *args, **kwargs) > > File "/usr/lib/python2.4/site-packages/django/contrib/admin/views/ > main.py", line 254, in add_stage > new_object = manipulator.save(new_data) > > File "/usr/lib/python2.4/site-packages/django/db/models/ > manipulators.py", line 108, in save > new_object.save() > > File "/usr/lib/python2.4/site-packages/django/db/models/base.py", > line 243, in save > ','.join(placeholders)), db_values) > > IntegrityError: null value in column "id" violates not-null constraint --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---