Any “best practice” or “recommended” project layouts for a django project in eclipse?
In my eclipse it looks like 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 I like this layout, especially the repetition of the app name in the templates folder. I think I did it that way to make my url configs behave, but I’m new to django so that could be another place for improvement.
you know you can create a django project without the src folder in eclipse which i think will be much cleaner; to do this when you want to create a new Django project the widget that ask for the name of the project in the bottom you can disable Create default “scr” … .
And i don’t think it’s a good idea to put all Django application like you did you can put related application in the some folder but not all of them , and for the template i think you have the choice to put one template directory in the some level as settings.py where you can have the same structure as your apps or to put a template directory in each application but i prefer the first one like this: