WebFaction
Community site: login faq

I've been using this guide on how to deploy a flask app on webfaction: http://flask.pocoo.org/snippets/65/

Currently when I visit the URL I get the following error message:

Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log.

I know my http.conf is correct because when I leave the default index.py I see the default content when I visit the url.

A couple questions. The guide says to delete the "content" in index.py and add: from yourapp import app as application

By content does the guide mean everything else in the file? I.E., should:

from yourapp import app as application

be the only thing in index.py? Also, sometimes when the guide refers to things like yourapp and app and application it seems to mean to use that actual text, while other times it seems to want you to replace that text with whatever you named those things. For example, my app is called guitarchordsms and I am using flask. Does this mean the file should be:

from guitarchordsms import flask as application

or something like that?

Finally, once I get the index.py set up, how do I implement the flask app I had locally? Do I just paste it below from yourapp import app as application in index.py? Do I reference it somehow in index.py and just keep it as is? The guide doesn't really mention this.

Sorry for being such a noob!

asked 12 Mar '13, 20:08

kevinflo
111
accept rate: 0%

edited 12 Mar '13, 20:30

ryans ♦♦
5.0k93260


The guide you are using is helpful, but contains some errors. I have just written this guide to installing Flask. Hope that helps!

permanent link

answered 12 Mar '13, 22:20

ryans ♦♦
5.0k93260
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:

×44
×32

question asked: 12 Mar '13, 20:08

question was seen: 3,156 times

last updated: 12 Mar '13, 22:20

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