I'm trying to run tracd. I'm having trouble getting Trac's CSS &
graphics files to load correctly. It seems the "chrome" directory is
not being served in the right location. Any idea on how to change
trac.ini or the commandline to get CSS files to load properly?
I've tried many variations of base_url settings in trac.ini and
--base-path on the command line, to no avail. Following a hunch I got
from playing with the URLs below I was able to get the CSS to display,
but not the images, by setting both of those to sgs_trac/sgs_trac
(duplicating the project's name).
Using the settings below, the HTML returned contains URLs like this:
<link rel="stylesheet" href="/sgs_trac/chrome/common/css/trac.css"
type="text/css" />
But (here's where I got the hunch I followed above) where that
stylesheet can actually be loaded from is:
/sgs_trac/sgs_trac/chrome/common/css/trac.css
Here's the relevant section of trac.ini:
[trac]
authz_file =
authz_module_name =
base_url = /sgs_trac/
check_auth_ip = true
database = sqlite:db/trac.db
default_charset = iso-8859-15
default_handler = WikiModule
htdocs_location =
ignore_auth_case = false
mainnav = wiki,timeline,roadmap,browser,tickets,newticket,search
metanav = login,logout,settings,help,about
permission_store = DefaultPermissionStore
repository_dir = /home2/username/webapps/j15a
repository_type = bzr
templates_dir = /home2/username/lib/python2.4/trac/share/templates
Here's the command line:
os.execl('/home2/username/bin/tracd', '/home2/username/bin/tracd', '-p
7560', '-s', '--base-path=sgs_trac', '/home2/username/webapps/sgs_tracd')
Here's the list of 404 errors:
127.0.0.1 - - [21/Apr/2009 21:57:53] "GET / HTTP/1.1" 403 -
127.0.0.1 - - [21/Apr/2009 21:57:53] "GET /chrome/common/css/trac.css
HTTP/1.1" 404 -
127.0.0.1 - - [21/Apr/2009 21:57:53] "GET /chrome/common/js/jquery.js
HTTP/1.1" 404 -
127.0.0.1 - - [21/Apr/2009 21:57:53] "GET /chrome/common/js/trac.js
HTTP/1.1" 404 -
127.0.0.1 - - [21/Apr/2009 21:57:53] "GET /chrome/common/js/search.js
HTTP/1.1" 404 -
127.0.0.1 - - [21/Apr/2009 21:57:54] "GET /chrome/common/trac_banner.png
HTTP/1.1" 404 -
127.0.0.1 - - [21/Apr/2009 21:57:54] "GET
/chrome/common/trac_logo_mini.png HTTP/1.1" 404 -
Tim Black
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---