Hi guys,

I realise this is a frequent question, but as far as I can tell I've got everything set up correctly. I'm trying to get OSQA running under IIS, and have been following the instructions here:

http://code.djangoproject.com/wiki/DjangoOnWindowsWithIISAndSQLServer

[Edit] I've successfully got this working with a default set of Django files, and displayed a hello world view. However, when I drop the OSQA files into the same folder, it then can't find the settings any more? I'm getting the following error:

File "C:\\Program Files\\Python27\\lib\\site-packages\\django\\conf\\__init__.py", line 40, in _setup
    self._wrapped = Settings(settings_module)
File "C:\\Program Files\\Python27\\lib\\site-packages\\django\\conf\\__init__.py", line 75, in __init__
    raise ImportError("Could not import settings '%s' (Is it on sys.path? Does it have syntax errors?): %s" % (self.SETTINGS_MODULE, e))
ImportError: Could not import settings 'osqa.settings' (Is it on sys.path? Does it have syntax errors?): No module named osqa.settings

I'm running Python 2.7 on Windows using Pyisapie. The OSQA files are installed in a folder

C:\\inetpub\\wwwroot\\osqa, which is its own web application in IIS.

Does anyone have any suggestions? Many thanks

asked 03 Sep '10, 12:41

James%20Crowley's gravatar image

James Crowley
41171315
accept rate: 40%

edited 06 Sep '10, 08:46

What about just net.settings?

(03 Sep '10, 20:50) Hernani Cerq... ♦♦

it doesn't seem to be that (and just to remove any confusion, have renamed the folder without any dots in). With a default django set of files, I've got the settings loading fine and a hello world view loading through django. But when I drop in the OSQA files instead to the same directory, then I'm told it can't find the settings file?

(06 Sep '10, 08:42) James Crowley

The problem was the line in settings.py that does

from settings_local import *

apparently you need to rename settings_local.py.dist to settings_local.py. Helpfully the error doesn't mention it can't find the settings_local file, and I hadn't seen it mentioned in the documentation anywhere?

link

answered 06 Sep '10, 09:05

James%20Crowley's gravatar image

James Crowley
41171315
accept rate: 40%

edited 06 Sep '10, 09:06

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

Tags:

×45
×25
×5

Asked: 03 Sep '10, 12:41

Seen: 1,204 times

Last updated: 06 Sep '10, 09:06

powered by OSQA