Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/spring-boot/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在GAE上运行django+;云SQL,第三方可重用django应用程序(如South)_Django_Google App Engine_Python 2.7 - Fatal编程技术网

在GAE上运行django+;云SQL,第三方可重用django应用程序(如South)

在GAE上运行django+;云SQL,第三方可重用django应用程序(如South),django,google-app-engine,python-2.7,Django,Google App Engine,Python 2.7,我计划在谷歌云平台(GAE,CloudSQL)上运行一个django项目。该项目使用了几个django可重用应用程序(库),如South、django调试工具栏、django压缩器等。因此,我想知道是否有办法管理appengine上的所有这些库?如果是,如何进行。 PS:我已尝试在app.yaml文件中定义依赖项,但出现错误: Traceback (most recent call last): File "/usr/local/bin/dev_appserver.py", li

我计划在谷歌云平台(GAE,CloudSQL)上运行一个django项目。该项目使用了几个django可重用应用程序(库),如South、django调试工具栏、django压缩器等。因此,我想知道是否有办法管理appengine上的所有这些库?如果是,如何进行。 PS:我已尝试在app.yaml文件中定义依赖项,但出现错误:

      Traceback (most recent call last):
  File "/usr/local/bin/dev_appserver.py", line 197, in <module>
    _run_file(__file__, globals())
  File "/usr/local/bin/dev_appserver.py", line 193, in _run_file
    execfile(script_path, globals_)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/devappserver2.py", line 855, in <module>
    main()
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/devappserver2.py", line 848, in main
    dev_server.start(options)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/devappserver2.py", line 657, in start
    options.yaml_files)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/application_configuration.py", line 556, in __init__
    module_configuration = ModuleConfiguration(yaml_path)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/application_configuration.py", line 82, in __init__
    self._yaml_path)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/application_configuration.py", line 272, in _parse_configuration
    return appinfo_includes.ParseAndReturnIncludePaths(f)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/appinfo_includes.py", line 63, in ParseAndReturnIncludePaths
    appyaml = appinfo.LoadSingleAppInfo(appinfo_file)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/appinfo.py", line 1743, in LoadSingleAppInfo
    listener.Parse(app_info)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/yaml_listener.py", line 226, in Parse
    self._HandleEvents(self._GenerateEventParameters(stream, loader_class))
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/yaml_listener.py", line 177, in _HandleEvents
    raise yaml_errors.EventError(e, event_object)
google.appengine.api.yaml_errors.EventError: the library "django-appconf" is not supported
  in "jobbr/app.yaml", line 13, column 1 
回溯(最近一次呼叫最后一次):
文件“/usr/local/bin/dev_appserver.py”,第197行,在
_运行\u文件(\uuuu文件,globals())
文件“/usr/local/bin/dev_appserver.py”,第193行,在运行文件中
execfile(脚本路径,全局路径)
文件“/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/devappserver2.py”,第855行
main()
文件“/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/devappserver2.py”,主文件第848行
dev_server.start(选项)
文件“/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/devappserver2.py”,第657行,开始
选项。yaml_文件)
文件“/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine default.bundle/Contents/Resources/google\u appengine/google/appengine/tools/devappserver2/application\u configuration.py”,第556行,在__
模块配置=模块配置(yaml\U路径)
文件“/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine default.bundle/Contents/Resources/google\u appengine/google/appengine/tools/devappserver2/application\u configuration.py”,第82行,在__
自我保护(yaml_路径)
文件“/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine default.bundle/Contents/Resources/google\u appengine/google/appengine/tools/devappserver2/application\u configuration.py”,第272行,在\u parse\u配置中
返回appinfo_includes.ParseAndReturnIncludePaths(f)
ParseandReturnIncludePath中的第63行文件“/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine default.bundle/Contents/Resources/google\u appengine/google/appengine/api/appinfo\u includes.py”
appyaml=appinfo.LoadSingleAppInfo(appinfo\u文件)
LoadSingleAppInfo中的文件“/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine default.bundle/Contents/Resources/google\u appengine/google/appengine/api/appinfo.py”,第1743行
解析(应用程序信息)
文件“/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine default.bundle/Contents/Resources/google\u appengine/google/appengine/api/yaml\u listener.py”,第226行,解析
self.\u HandleEvents(self.\u GenerateEventParameters(流、装入器\u类))
文件“/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine default.bundle/Contents/Resources/google\u appengine/google/appengine/api/yaml\u listener.py”,第177行,在HandleEvents中
引发yaml\u错误。EventError(e,事件\u对象)
google.appengine.api.yaml_errors.EventError:不支持库“django appconf”
在“jobbr/app.yaml”第13行第1列中

对不起,至少South和django压缩机不会在GAE上运行

GAE是一个完全不同的平台。然而,您可以使用SQL访问表,它只是非相对数据库上的抽象层。没有文件系统访问,但还有很多其他限制。即使Django本身也无法在没有补丁的GAE上运行-您必须使用特殊版本


我建议您阅读更多GAE文档,这样您就可以决定是否可以在那里运行特定的应用程序。

Django现在直接受Google mysql实现的支持,仅供参考。只需将其包含在app.yaml中@PaulCollingwood
django压缩机
仍然无法正常工作,因为它需要对这些都是很好的评论。我找不到任何地方明确讨论谷歌云上的Django是否完全是普通的(即支持Django生态系统中的任何插件)。