WebFaction
Community site: login faq

I've gone through the tutorial for setting up a django appilcation. In my webapps folder there's a myproject folder and a myproject.wsgi file. I've copied my cmlocal django app into the webapps folder and now need to hook it in somehow. I tried renaming myproject.wsgi to cmlocal.wsgi and then edited it and changed "myproject.settings" to "cmlocal.settings". After doing that I get a url not found error. Are there some other steps I need go to through?

asked 15 Feb '12, 12:04

jgold
114
accept rate: 0%


It sounds to me like you might need to update your Apache config to serve your cmlocal.wsgi script. The correct config will look something like this:

WSGIScriptAlias / /home/username/webapps/django_application/cmlocal.wsgi

Restart your Apache after making that change.

If that doesn't work, then feel free to open a support ticket and we'll take a closer look.

permanent link

answered 15 Feb '12, 18:41

seanf
12.2k41836
accept rate: 37%

That was the problem. I knew it had to be something simple but I didn't know where to look. Thanks!

(16 Feb '12, 15:36) jgold
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
×33

question asked: 15 Feb '12, 12:04

question was seen: 1,830 times

last updated: 16 Feb '12, 15:39

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