Code

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#511 closed defect (worksforme)

django-admin.py init fails at rev 641

Reported by: anonymous Owned by: adrian
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: UI/UX:

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.

Attachments (0)

Change History (3)

comment:1 Changed 9 years ago by Espen Grindhaug

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 Changed 9 years ago by adrian

  • Resolution set to worksforme
  • Status changed from new to closed

Works fine for me!

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

comment:3 Changed 9 years ago by Espen Grindhaug <espen@…>

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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.