WebFaction
Community site: login faq

Hello, I spent most of the afternoon trying to deploy my django app to webfaction. The thing is, I followed every step on Getting Started except the one for static under another app, so my problem is I'm not really sure if my site does not work because of not doing this static step, or it is something else.

I have following configs:

  • Under /home/username/webapps i have 3 webapps:
  • static <-- Not being used for now
  • django <-- default app, I have not touched it
  • my_app <-- which contains all my django code

On the control panel I have the following Website:

  • Name: name-of-my-app
  • Status: enabled
  • Security: http
  • Domains: username.webfactional.com
  • Contents: my_app (see above)

I don't know what could be wrong, but if I change the Contents, to django(the default app) and I got to my URL username.webfactional.com I see the Apache page, something like It works ! If I change Contents back to my_app I see 404, not even the django 404 url not found, I get 404 Not Found The requested URL / was not found on this server.

Please help me.

Edit: I checked the webfaction documentation for this, but I was not making any of those mistakes.

asked 16 Jan '13, 22:07

PepperoniPizza
1337
accept rate: 0%

edited 16 Jan '13, 22:32


A 404 Error with a Django application -- but not a Django 404 -- indicates that the error is actually occurring before it hits your Django application.

Most of the time, this is caused by an incorrect WSGIScript setting, where the httpd.conf file is pointing mod_wsgi to a WSGI file that doesn't exist. For example:

WSGIScriptAlias / /path/to/your/app/wsgi.py

But where /path/to/your/app/wsgi.py doesn't actually exist.

Hope that helps!

permanent link

answered 17 Jan '13, 01:38

ryans ♦♦
5.0k73159
accept rate: 43%

That was it, thanks a lot.

(17 Jan '13, 08:23) PepperoniPizza
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:

×901
×112
×25
×4

question asked: 16 Jan '13, 22:07

question was seen: 6,747 times

last updated: 17 Jan '13, 08:23

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2016 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