WebFaction
Community site: login faq

I uploaded an existing django project I created locally. I am able to view it with the development server http://127.0.0.1:8000/ but not when hosting on webfaction.

I've created an application under the user.webfactional.com website called 'django_apps'. I've uploaded my project to: /home/user/webapps/django_apps/project.

I also changed the wsgi file:

import os
import sys
from django.core.handlers.wsgi import WSGIHandler
os.environ['DJANGO_SETTINGS_MODULE'] = 'project.settings'
application = WSGIHandler()

When I go to http://user.webfactional.com/django_apps I get a HTTP 404 error. I also set my project's settings.py to 'DEBUG = True' so I don't know why I'm not getting the specific error.

Any help would be great.

Thanks,

asked 17 Aug '13, 22:13

mariob
11
accept rate: 0%


The 404 Error was occurring because your "WSGIScriptAlias" directive in httpd.conf was pointing to a file that didn't exist.

Hope that helps!

permanent link

answered 17 Aug '13, 23:55

ryans ♦♦
5.0k93360
accept rate: 43%

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
×22
×5
×2

question asked: 17 Aug '13, 22:13

question was seen: 1,731 times

last updated: 17 Aug '13, 23:55

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