WebFaction
Community site: login faq

Bit of a webfaction noob here. I successfully installed a django app on webfaction as well as a static app (following the webfaction getting started guide), and served these from /static and /django from my base webfaction domain user.webfaction.com

I believe everything is set up properly and I restart apache. Now when I launch a browser and go to http://user.webfactional.com/django I get the standard django "page not found" message. This is good, because I have no urls mapped to /django. But when I try to hit http://user.webfactional.com/django/admin, I expect to see the django admin page, but instead the url gets shortened to http://user.webfactional.com/admin and I get a webfaction (not a djano) 404 not found page?

TL;DR version. I have the app mapped to /django and the admin url uncommented but /django/admin is not found.

asked 19 Apr '13, 15:02

wabarr
312
accept rate: 0%


Have you followed the Mounting a Django Application on a Subpath section of the documentation, to set "FORCE_SCRIPT_NAME = '/django'", as you are mounting the application at a URL path of "/django"? If not, this could be the problem.

In general, for the sake of convenience, we would generally recommend creating a subdomain like "django.user.webfactional.com" and mounting the application there instead of using "user.webfactional.com/django". This makes it easier to move it later to the root of a domain.

Hope that helps!

permanent link

answered 19 Apr '13, 18:52

ryans ♦♦
5.0k93360
accept rate: 43%

Thanks so very much, and sorry for asking a question that got answered in the basic documentation.

(23 Apr '13, 15:50) wabarr
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
×40

question asked: 19 Apr '13, 15:02

question was seen: 3,048 times

last updated: 23 Apr '13, 15:50

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