Opened 19 years ago

Closed 19 years ago

Last modified 19 years ago

#511 closed defect (worksforme)

django-admin.py init fails at rev 641

Reported by: anonymous Owned by: Adrian Holovaty
Component: Core (Management commands) Version:
Severity: critical Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

espen@newauburn:~/django/web$ django-admin.py init --settings=web.settings.main
Error: The database couldn't be initialized. Here's the full exception:
ERROR: syntax error at or near "user" at character 70

CREATE TABLE auth_messages (

id serial NOT NULL PRIMARY KEY,
user integer NOT NULL REFERENCES auth_users (id),
message text NOT NULL

);
root@newauburn:/home/espen/django_src # svn up
At revision 641.

Change History (3)

comment:1 by Espen Grindhaug, 19 years ago

I forgott tu put inn my name, and to use the code block :/

espen@newauburn:~/django/web$ django-admin.py init
Error: The database couldn't be initialized. Here's the full exception:
ERROR:  syntax error at or near "user" at character 70

CREATE TABLE auth_messages (
    id serial NOT NULL PRIMARY KEY,
    user integer NOT NULL REFERENCES auth_users (id),
    message text NOT NULL
);
root@newauburn:/home/espen/django_src # svn up
At revision 641.

comment:2 by Adrian Holovaty, 19 years ago

Resolution: worksforme
Status: newclosed

Works fine for me!

Have you made any local changes to your Django source code, perhaps?

comment:3 by Espen Grindhaug <espen@…>, 19 years ago

Yes, i got it to work now. The problem was that my symlink to /usr/lib/python2.4/site-packages/django/ was broken, and because of some absurd reason it was using an old, old, version of django in stead of giving an error.

Note: See TracTickets for help on using tickets.
Back to Top