管理.py以及其他.py文件不在同一级别fi中

2024-06-16 12:12:22 发布

您现在位置:Python中文网/ 问答频道 /正文

我有django1.4和python2.6.6 当我用“django”时-安丁.pystartproject djproject”按照网页中的步骤操作 https://www.ibm.com/developerworks/cn/linux/l-django/#resources 我得到的文件如下:

djproject/
|-- djproject
|   |-- __init__.py
|   |-- settings.py
|   |-- urls.py
|   `-- wsgi.py
`-- manage.py

注:管理.py以及其他.py文件不在同一级别的文件夹中,为什么?在

+

^{pr2}$

当我将'ENGINE'配置为'sqlite3'而不是'django.db.后端.sqlite3',我得到错误:

^{3}$

这也是1.4的新特性吗?在


Tags: 文件djangopyhttpscom网页linuxwww
2条回答

Django1.4中更改的项目目录结构

{es-^更多详情^

已更改in Django 1.4

Django 1.4 ships with an updated default project layout and manage.py file for the startproject management command. These fix some issues with the previous manage.py handling of Python import paths that caused double imports, trouble moving from development to deployment, and other difficult-to-debug path issues.

相关问题 更多 >