I'm having an issue with PTVS 2.1 alpha where a Django project won't run if the settings file is in a separate folder to manage.py. With PTVS 2.0 this issue did not occur.
I have the following Django project structure:
In the project properties I have configured:
- Startup file: project\manage.py
- Working directory: .
- Interpreter: project's virtualenv
- Launch mode: Django launcher
- Settings module: config.settings
if __name__ == "__main__":
from configurations.management import execute_from_command_line
Again, no issues with running this configuration using PTVS 2.0. But with PTVS 2.1, running the project doesn't even launch an interpreter window. It just exits with "Build failed" in the status window.
If I try to Execute Project in Python Interactive it reports that "Could not import settings 'config.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named config.settings".