I just did the django tutorial and I’m trying to develop an app with a friend. Currently the web application consists of an app and a template directories. The tutorial implies that templates and apps are to be kept in separate folders, yet a change in one is likely to cause a change in the other.
How are an app’s templates usually shipped and stored? Do I really need two separate repositories for this one project? Is there a document or guide somewhere that is that canonical text for these kinds of django questions?
No I wouldn’t say splitting templates into a different repository sounds like a good idea. Where does it imply putting into separate repositories? Does it even mention VCS?
The standard practice is to put app specific templates in a
templatesdirectory inside of the app which will be discovered by django’s defaultapp_directoriestemplate loader.myproject/myapp/templates/myapp/templates_hereFor global site wide templates (such as the base template), it makes sense to put them in a directory you define in
settings.TEMPLATE_DIRS.