WebFaction
Community site: login faq

Hi!

I'm trying to accomplish the same as described in this question but for Django sites. I almost got it working but I have some issues with the URLs. My setup: In Websites, I have the main website and Site 2 as an app with the path /site2/, like this: Site 1: http://example.com/ Site 2: http://example.com/site2/

The root urls for Site2 are working, eg. http://example.com/site2/app1/, but everything after that disregards the root url, so http://example.com/site2/app1/page1/ becomes http://example.com/app1/page1/ (/site2/ goes missing).

One thing I should mention is that our Django apps aren't the one-click ones, but mod_wsgi's.

Thank you!

asked 19 Jun '13, 15:43

mistalaba
313
accept rate: 0%


Here you go: Mounting a Django Application on a Subpath

Hope that helps!

permanent link

answered 19 Jun '13, 17:25

seanf
12.2k41836
accept rate: 37%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×909
×113
×11

question asked: 19 Jun '13, 15:43

question was seen: 4,120 times

last updated: 19 Jun '13, 17:25

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM