Configuration for Django's Trac instance (code.djangoproject.com)
Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upmaster
Code
Launching GitHub Desktop
If nothing happens,download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens,download GitHub Desktop and try again.
Launching Xcode
If nothing happens,download Xcode and try again.
Launching Visual Studio
If nothing happens,download the GitHub extension for Visual Studio and try again.
Latest commit
Git stats
Files
README.rst
Configuration for Django's Trac instance (code.djangoproject.com)
Local install
Getting a local Trac install running is a bit tricky. Here are a few tricksthat can help:
- Install the requirements in the same virtualenv as djangoproject.com.
- Follow the installation instructions in djangoproject/README.rst (especiallythe database creation).
- Use
psql -U code.djangoproject -d code.djangoproject -c "INSERT INTO permission (username, action) VALUES ('anonymous', 'TRAC_ADMIN')"
to give all permissions to the anonymous user. - Use the command
tracd --port 9000 -s trac-env
to serve Trac locally. - If you've modified the
trackhack.scss
file, usesassc scss/trachacks.scss trac-env/htdocs/css/trachacks.css -s compressed
to compile it to CSS.
How to port the CSS from djangoproject.com
Assumes that code.djangoproject.com and djangoproject.com are stored in thesame directory (adjust paths if needed).
- Copy the generated CSS:
cp ../djangoproject.com/static/css/*.css trac-env/htdocs/css/
- Copy _utils.scss (needed by trackahacks.scss):
cp ../djangoproject.com/static/scss/_utils.scss scss/
- Copy the javascript directory:
cp -rT ../djangoproject.com/static/js trac-env/htdocs/js
- Compile trackhacks.scss:
make compile-scss