WebFaction
Community site: login faq

Hi all, I'm having some problems with my first Django App when trying to host it. I believe that this error is coming from my wsgi.py file as the error trace brings me back there. I think it cannot sync with my settings.py file for some reason.

here's the error:

 ImportError: Could not import settings 'mvp_landing.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named mvp_landing.settings

Here's my wsgi.py file

import os
import sys

os.environ['DJANGO_SETTINGS_MODULE'] = 'mvp_landing.settings'

from django.core.wsgi import get_wsgi_application

application = get_wsgi_application()

The parent directory is named "mvp_landing" and it also contains my settings.py file.

asked 29 Nov '14, 02:37

Luxa
1112
accept rate: 0%


Hello,

Your application cannot locate the module 'mvp_landing.settings'. So you need to add it to your PATH.

Please see:

http://docs.webfaction.com/software/python.html?highlight=ImportError#fixing-importerror-exceptions

If there are any further issues, please feel free to open up a support ticket so we can look into it further:

http://docs.webfaction.com/user-guide/help.html#support-tickets

permanent link

answered 29 Nov '14, 04:37

NickR ♦♦
4165
accept rate: 18%

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
×108
×62
×13

question asked: 29 Nov '14, 02:37

question was seen: 3,485 times

last updated: 29 Nov '14, 04:37

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