Django nonrel 和 gae 入门遇到问题
我很难开始使用 Django nonrel 和 GAE。我已按照此处的说明进行操作:http://www.allbuttonspressed.com/projects/djangoappengine其中解释了如何安装 Django nonrel。当我使用 Google App Engine Launcher 运行该项目时,它似乎正在工作,因为我看到“它有效!”页。
但我试图浏览 Django 书中的示例,但没有看到我期望看到的内容。这本书谈到有一个views.py 文件,我可以在其中添加自己的视图,但我在项目目录的根目录中没有看到该文件。我确实看到了 urls.py。
我错过了什么吗?完成复制 django nonrel 教程中列出的文件后,是否需要从 django nonrel 运行一些 .py 脚本?尽管书上说应该为我创建这个文件,但我是否只是自己创建这个文件?
I'm having a hard time getting started with Django nonrel and GAE. I've followed the instructions here: http://www.allbuttonspressed.com/projects/djangoappengine Which explain how to install Django nonrel. When I run the project using Google App Engine Launcher, it seems to be working because I see the "It works!" page.
But I'm trying to go through the examples in the Django book and I don't see what I expect to see. The book talks about having a views.py file where I add my own views, but I don't see this file in the root of my project directory. I do see urls.py.
Am I missing something? Do I need to run some .py script from django nonrel once I finish copying over the files listed in the django nonrel tutorial? Do I just create this file on my own, even though the book says that it should have been created for me?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要将您的应用程序添加到项目中。在项目目录中运行 python manage.py startapp myapp 将会创建一个新文件夹,供您添加视图、模型、表单等。
You're going to need to add your app to the project. Running
python manage.py startapp myapp
in your project directory will create a new folder for you to add your views, models, forms and such.