我在Visual Studio 2015中编写了一个Django项目,该项目在通过IDE进行调试时在本地服务器上成功运行。但是,当我...
Microsoft Azure Web Apps
作为发布目标App Service Plan
Resource Group
Region
:北欧Database server
:没有数据库Web Deploy
并成功验证连接到新的Azure Web App ...“输出”窗口显示“发布失败:
”------ Publish started: Project: RaceLogger, Configuration: Debug Any CPU ------
Validating Web Deploy package/publish related properties...
Gather all files from Project items @(Content). Adding:
app\templates\app\performance_form.html;app\templates\auth\login.html;app\templates\index.html;app\templates\layout.html;app\templates\app\performance_detail.html;app\templates\app\performance_list.html;requirements.txt
Gather all files from Project output (IntermediateSatelliteAssembliesWithTargetPath). Adding:
Gather all files from Project items @(ReferenceCopyLocalPaths,ReferenceComWrappersToCopyLocal,ResolvedIsolatedComModules,_DeploymentLooseManifestFile,NativeReferenceFile).
Gather all files from Project items @(AllExtraReferenceFiles). Adding:
Gather all files from Project items @(_binDeployableAssemblies). Adding:
DjangoStaticUrlSetting=/static/
Regenerating web.config
Copying file from "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Python Tools\web_config.xml" to "obj\Debug\web.config".
Updating app settings in web.config
Made 1 replacement(s).
Updating rewrite conditions in web.config
Made 1 replacement(s).
Updating FastCGI handlers in web.config
Made 1 replacement(s).
Copying file from "obj\Debug\web.config" to "C:\Users\username\Documents\Files\Web_Projects\django\RaceLoggerProject\RaceLogger\web.config".
Regenerating web.debug.config
Copying file from "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Python Tools\web_debug_config.xml" to "obj\Debug\web.debug.config".
Updating ptvsd secret in web.debug.config
Made 1 replacement(s).
Copying file from "obj\Debug\web.debug.config" to "C:\Users\username\Documents\Files\Web_Projects\django\RaceLoggerProject\RaceLogger\web.debug.config".
========== Build: 0 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========
========== Publish: 0 succeeded, 1 failed, 0 skipped ==========
我已检查新创建的Azure Web App是否通过Azure管理门户运行并修改了Web应用程序Application settings
,以便选择Python版本3.4(在我的本地环境中)我运行Python 3.4.4和Django 1.9.3)无济于事。我已尝试更新到VS2015 Update 2 RC,但这也没有区别。
我还尝试在Python 3.4.4 / Django 1.9.4虚拟环境中创建VS2015的New Project窗口中提供的示例Django Web Project
,并且无法以完全相同的方式发布。
有没有人对如何从VS2015成功将Django项目发布到Azure Web App有任何建议?
非常感谢任何帮助。