#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 , 20 years ago
comment:2 by , 20 years ago
| Resolution: | → worksforme |
|---|---|
| Status: | new → closed |
Works fine for me!
Have you made any local changes to your Django source code, perhaps?
comment:3 by , 20 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.
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.