Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1898 (closed defect: fixed)

Opened 11 years ago

Last modified 11 years ago

make setup of static content serving part of user app, not TG2

Reported by: droggisch Owned by: droggisch
Priority: normal Milestone:
Component: TurboGears Version: trunk
Severity: normal Keywords:


For a discussion, see:


Currently, static content serving is set up in tg.middleware. It should instead go to some place inside the generated user app, to become customizable.

Change History

comment:1 Changed 11 years ago by mramm

Hey, we now have a more configurable middleware setup in config.py, can you take a look and see what remains to be done to make this fit your needs.

If you have questions which you need us to answer, please add them to the ticket so that we can get this cleaned up as soon as possible.

comment:2 Changed 11 years ago by mramm

  • Milestone changed from 2.0-preview-4 to 2.0-preview-3

comment:3 Changed 11 years ago by mramm

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

There is now a serve_static = True on base_config, and if you change it to False, static files will not be served up by the app.

comment:4 Changed 11 years ago by anonymous

  • Milestone 1.9.7a4 deleted

Milestone 1.9.7a4 deleted

Note: See TracTickets for help on using tickets.