Code

#19741 closed Bug (fixed)

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

Reported by: aaugustin Owned by: nobody
Component: *.djangoproject.com Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

[originally reported by eswenson1 at https://github.com/django/djangoproject.com/issues/28]

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.

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.

dlo

Pull request: https://github.com/django/djangoproject.com/pull/46

Attachments (0)

Change History (1)

comment:1 Changed 14 months ago by Aymeric Augustin <aymeric.augustin@…>

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

In ccde1930c05f90bbc28278a379d6e1ad60e1f29c/djangoproject.com:

Updated installation instructions in README.

Fixed #19741.

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.