Skip to content

Procedure in README.txt for setting up djangoproject locally doesn't work #28

Closed
eswenson1 opened this Issue Mar 23, 2012 · 4 comments

3 participants

@eswenson1

The current procedures described in README.txt for setting up the djangoproject locally don't work. This appears to be because they assume that you already have a trac database setup properly with the correct schema. When the ./manage.py migrate step is executed, it fails due to missing relations from the trac model. In particular, the migration fails with the following error:

Running migrations for trac:

  • Migrating forwards to 0001_initial. > trac:0001_initial ERROR: relation "attachment" does not exist STATEMENT: CREATE VIEW "attachment_django_view" AS SELECT "type" || '.' || "id" || '.' || "filename" AS "django_id", * FROM attachment;

Perhaps you could provide a truncated database dump from the live trac instance so that this can be used to create a dummy trac database.

@eswenson1

I decided to try to simply install Trac (0.12) and specify a database connection string that pointed to the code.djangoproject database. Once I did that, I was able to run the "./manage.py migrate" with no errors. The server started up fine after that.

@aaugustin
Django member

I accidentally closed the pull request and GitHub won't let me reopen it, sorry.

@dlo
dlo commented Feb 4, 2013

Asked on the PR, but should I resubmit?

@aaugustin
Django member

Actually we're going to disable GitHub issues for this repository because it's more convenient to have all tickets in Trac.

I copied this issue in https://code.djangoproject.com/ticket/19741. Let's follow-up over there.

And thanks for re-submitting the pull request!

@aaugustin aaugustin closed this Feb 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.