开发者

Is there a folder layout structure for Django websites?

I am trying to get an overview of a Django website application structure. The way I have done this in the past with other frameworks (Symfony, RoR etc) is to look at 开发者_运维知识库the application folder structure, work out which bits go where, and then work my way on from there onwards.

I have been searching online for similar info about Django website folder structure - but have been unable to find one. Is there a recommended folder structure for Django apps? - and if yes, where I can obtain the document that details this?


Yes see

Folder structure for a Django project

also see

Writing your first Django app, part 1 - Creating a project

startproject script by default generates

mysite/
    __init__.py
    manage.py
    settings.py
    urls.py


Take a look at the tutorial on djangoproject.com - the directory structure is pretty clearly stated.


I think the philosophy was letting you have control over that. You can take a look at djangoproject's structure for inspiration: http://code.djangoproject.com/browser/djangoproject.com/django_website

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜