I have been leaning Django so I could use the Django admin form in my GAE application. I have just read that GAE doesn't support the django models so i am thinking that it also does not support the admin form.
我一直在学习Django,以便可以在GAE应用程序中使用Django管理表单。我刚刚读到GAE不支持django模型,所以我认为它也不支持管理表单。
So the question is does GAE support any other 'forms' or 'reports' environment or do you have to do everything with html
问题是GAE是否支持任何其他的“表单”或“报告”环境,或者您是否必须使用html做所有的事情
1 个解决方案
#1
2
If you're using CloudSQL, django models are supported, and you'll be fine.
如果您正在使用CloudSQL,那么将支持django模型,您将不会有问题。
If you're using the HRD, getting the admin pages to work would be more difficult.
如果您正在使用HRD,那么让管理页面工作将会更加困难。
django models are not supported. The app engine SDK comes with django-style forms that work with the GAE db.Model fields.
django模型不受支持。app engine SDK附带了与GAE db一起工作的django风格的表单。领域模型。
Alternatively, you can use django-nonrel which includes a translation layer that allows django models to be used with GAE. The translation layer has various limitations, most prominently, many-to-many relations aren't support. This breaks the Django permissions module which is used by the admin. I've seen some attempts documented to get around this, but I'm not sure how successful people have been.
或者,您可以使用django-nonrel,它包含一个翻译层,允许django模型与GAE一起使用。翻译层有各种限制,最突出的是多对多关系不支持。这将破坏admin使用的Django权限模块。我曾见过一些试图绕开这一问题的尝试,但我不确定人们有多成功。
#1
2
If you're using CloudSQL, django models are supported, and you'll be fine.
如果您正在使用CloudSQL,那么将支持django模型,您将不会有问题。
If you're using the HRD, getting the admin pages to work would be more difficult.
如果您正在使用HRD,那么让管理页面工作将会更加困难。
django models are not supported. The app engine SDK comes with django-style forms that work with the GAE db.Model fields.
django模型不受支持。app engine SDK附带了与GAE db一起工作的django风格的表单。领域模型。
Alternatively, you can use django-nonrel which includes a translation layer that allows django models to be used with GAE. The translation layer has various limitations, most prominently, many-to-many relations aren't support. This breaks the Django permissions module which is used by the admin. I've seen some attempts documented to get around this, but I'm not sure how successful people have been.
或者,您可以使用django-nonrel,它包含一个翻译层,允许django模型与GAE一起使用。翻译层有各种限制,最突出的是多对多关系不支持。这将破坏admin使用的Django权限模块。我曾见过一些试图绕开这一问题的尝试,但我不确定人们有多成功。