我在哪里将简单页面放在django应用程序中?

时间:2022-06-13 18:01:55

I new in django, but I am really old in web developpement. My question is about how to properrly organize your project into a django project. I am about to build my first web site in django and i have the following question :

我是django的新人,但我在网络开发方面真的很老了。我的问题是如何正确地将项目组织成django项目。我即将在django建立我的第一个网站,我有以下问题:

I want a contact page in my website? basically it's a form/view/template, but where do I create that ? should I create a whole new app?

我想在我的网站上找一个联系页面?基本上它是一个表单/视图/模板,但我在哪里创建它?我应该创建一个全新的应用程序吗?

1 个解决方案

#1


0  

Django projects deliver functionality through apps. A project is the configuration holding your chosen apps together. It's highly likely you'll need to write at least one app yourself. Your app will have models, views and forms.

Django项目通过应用程序提供功能。项目是将您选择的应用程序放在一起的配置。您很可能需要自己编写至少一个应用程序。您的应用将拥有模型,视图和表单。

There are a number of projects that can help bootstrap your project. See the matrix on djangopackages.com related to boostrapping.

有许多项目可以帮助引导您的项目。请参阅djangopackages.com上与boostrapping相关的矩阵。

Pinax is a good application bootstrapping tool providing a standard project layout, starter projects, reusable apps and default templates.

Pinax是一个很好的应用程序引导工具,提供标准项目布局,入门项目,可重用应用程序和默认模板。

The authors of Two Scoops of Django have a layout on GitHub which is focused on the environment and file/directory layout.

Django的Two Scoops的作者在GitHub上有一个布局,它专注于环境和文件/目录布局。

#1


0  

Django projects deliver functionality through apps. A project is the configuration holding your chosen apps together. It's highly likely you'll need to write at least one app yourself. Your app will have models, views and forms.

Django项目通过应用程序提供功能。项目是将您选择的应用程序放在一起的配置。您很可能需要自己编写至少一个应用程序。您的应用将拥有模型,视图和表单。

There are a number of projects that can help bootstrap your project. See the matrix on djangopackages.com related to boostrapping.

有许多项目可以帮助引导您的项目。请参阅djangopackages.com上与boostrapping相关的矩阵。

Pinax is a good application bootstrapping tool providing a standard project layout, starter projects, reusable apps and default templates.

Pinax是一个很好的应用程序引导工具,提供标准项目布局,入门项目,可重用应用程序和默认模板。

The authors of Two Scoops of Django have a layout on GitHub which is focused on the environment and file/directory layout.

Django的Two Scoops的作者在GitHub上有一个布局,它专注于环境和文件/目录布局。