python - Django in Eclipse, laying out the project -
any "best practice" or "recommended" project layouts django project in eclipse?
in eclipse looks this:
project name -src --project name ---__init__.py ---manage.py ---settings.py ---urls.py ---apps ----app1 -----__init__.py -----forms.py -----urls.py -----views.py -----templates ------app1 -------index.html
i'm not sure how layout, repetition of app name in templates folder. think did way make url configs behave, i'm new django place improvement.
you know can create django project without src folder in eclipse think cleaner; when want create new django project widget ask name of project in bottom can disable create default "scr" ... .
and don't think it's idea put django application did can put related application in folder not of them , , template think have choice put 1 template directory in level settings.py can have same structure apps or put template directory in each application prefer first 1 this:
project_name | | --- manage.py | | --- settings.py | | --- template | | -- index.html | | -- base.html | | -- 404.html | | -- conection_app | | | -- login.html | | | --- connection_app | | -- login | | -- view.py | | | --- finance_app |
Comments
Post a Comment