scragg0x / realms-wiki

Git based wiki inspired by Gollum
http://realms.io
GNU General Public License v2.0
831 stars 90 forks source link

Using a sub-uri #127

Open PeGa opened 8 years ago

PeGa commented 8 years ago

When I configure RELATIVE_PATH to a /sub-uri, apparently all the logic works fine but it still tries to load the static assets from /static instead of /sub-uri/static; is there a correct way to make /static work under a sub-uri?

Thanks in advance.

stephane-martin commented 8 years ago

Not without patching as far i understand the code.

In realms-wiki/realms/__init__.py, function create_app, replace app = Application(__name__) by app = Application(__name__, static_url_path='/yourprefix')

It would be nice if the author could provide a configuration for that :)