DEV Community

Discussion on: Django.... should I be switching around paths?

Collapse
 
yobretyo profile image
Bret

Ok, it messes me up when you go in between 2 files with basically the same name. The tutorial, he copied and pasted only part of a path type file or it was for urls and it messed me up. I got down the command to make a add tho

Collapse
 
michaelb profile image
Michael B

The extra files should go in separate directories

e.g.

apps/
    chat/
         urls.py
         models.py
         views.py
         templates/
         etc...

for a single app called "chat". does that make sense?

That said, all this really only matters if you have an aplpication / team large enough where this sort of code cleanliness is important. If you are just by yourself and just learning then you don't have to bother