Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialdakota ferrell
2,336 PointsDo most Django projects start the same in the real field like this?
There are so many lines of code and files already inside Django and its intimidating. Are there different directorys in the shell we have to change to do certain task or is that only if I want to start the server? Will I always have to make a views folder if I was to ever make a website on my own and if so why is it not already listed?
1 Answer
Ben Slivinn
10,156 PointsThere are so many lines of code and files already inside Django and its intimidating. Are there different directorys in the shell we have to change to do certain task or is that only if I want to start the server?
Most of the directories and files are to make a structure for the server to locate different components of the code. It's a little bit intimidating at first, but as long as you learn you will see you only need to know a small portion of it to be able to run the server in your projects, as you go to advanced topics it will get less intimidating.
Will I always have to make a views folder if I was to ever make a website on my own and if so why is it not already listed?
Views are important to accomplish fundamental tasks, and yes in django you will have to learn to use them.
I suggest you to actually start with flask, it's simpler, less strict than django and for small projects maybe even in some cases better. It will give you basic understanding of how things work on the server, you will be able to build web sites in no time. After some time you will naturally move to Django, and all the concepts already will be familiar to you.
Good luck!