在Django项目中修改代码的位置(Where To Modify The Code in Django Project)

编程入门 行业动态 更新时间:2024-10-12 01:32:59
在Django项目中修改代码的位置(Where To Modify The Code in Django Project) python

我已经安装了python和django。 一切都很好。 我可以看到管理仪表板等。但无法找到我可以对html进行更改或使用代码的地方。 任何人都能指出我正确的方向吗? 谢谢。

我有以下目录结构。

I've installed python and django. Everything is working fine. I can see the admin dashboard etc. But couldn't find where I can make the changes to html or play with the code. Can anybody point me in the right direction? Thanks.

I've the following directory structure.

最满意答案

创建项目后,您应该具有以下目录结构:

[projectname]/ ├── [projectname]/ │ ├── __init__.py │ ├── settings.py │ ├── urls.py │ └── wsgi.py └── manage.py

现在您需要使用python manage.py startapp <appname>创建一个新应用程序

然后,您将在[projectname]/<appname>]目录下找到相关文件。

After you have created a project you should have a directory structure like:

[projectname]/ ├── [projectname]/ │ ├── __init__.py │ ├── settings.py │ ├── urls.py │ └── wsgi.py └── manage.py

Now you need to create a new app using python manage.py startapp <appname>

Then you will find your relevant files under [projectname]/<appname>] directory.

更多推荐

本文发布于:2023-07-06 07:42:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1047442.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:位置   代码   项目   Django   Code

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!