Hey Jon,

I guess this is because of a bug in django. Django already has a open
ticket for this bug. Check it out
here<https://code.djangoproject.com/ticket/17015>
.

On Fri, Aug 31, 2012 at 7:17 AM, Jon Blake <jc.bla...@gmail.com> wrote:

> Just discovered Django and trying out the Django 1.4 tutorial with an
> Oracle backend database. In my database, I have created user django with
> privs create session, create table, create sequence, create trigger. The
> DATABASES dictionary in settings has been edited to set the default
> settings to the Oracle engine, and the database name, user and password
> specified.
>
> When I run:
>
> $ python manage.py syncdb
>
> I see tables are created, but I also get a traceback ending with:
>
> File "/usr/lib/python2.7/site-packages/django/db/backends/oracle/base.py",
> line 675, in execute
>     return self.cursor.execute(query, self._param_generator(params))
> django.db.utils.IntegrityError: ORA-01400: cannot insert NULL into
> ("DJANGO"."AUTH_PERMISSION"."ID")
>
> I did not see a prompt to create a superuser account.
>
> Oracle SQL*Developer shows that schema django contains 9 tables (including
> auth_permission), 16 indexes, 7 triggers and 8 sequences. Table
> django_content_type contains three rows, and the others are empty.
>
> Can anyone advise on how to resolve the ORA-01400 error?
>
> Run-time environment:
>   O/S: Fedora 14
>   Django: 1.4.1
>   Python: 2.7
>   DB: Oracle Database 11.1.0.6.0
>   cx_Oracle client: 11.1.0.6.0
>
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/O5XePWI1ee4J.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
Thanks & Regards
----------------------------

Amyth [Admin - Techstricks]
Email - aroras.offic...@gmail.com, ad...@techstricks.com
Twitter - @a_myth_________
http://techstricks.com/

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to