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 trialPranjal Agnihotri
4,187 PointsDjango app vs project
Ca anyone tell me the difference between a Django app and a Django Project :)
1 Answer
Greg Kaleka
39,021 PointsHi Pranjal,
Generally speaking, a Django Project is made up of apps. A Django project is a complete... project built in Django. It's a bit confusing, because people often talk about a whole project as being an app, which is certainly true, but Django uses a different naming convention. Maybe an example will help.
I'm currently working on a project built in Django, commutepop.com. My project has several apps that I've built:
- accounts (for handling users)
- agencies (for handling public transit agencies)
- dashboards (for handling users' dashboards and alerts)
I also have several third party apps installed in my project:
- All the django core apps like django.contrib.admin
- django-extensions (has some nice features for development)
- django-hijack (allows me to sign in as any user - very helpful for debugging something a user has reported)
Essentially, all the code for my project is organized into separate apps. This allows me to namespace things like urls (for example, I might link to {% url 'accounts:login' %}), templates, tests, etc. In theory, I could also turn my apps into reusable ones that other people could plug into their projects (maybe I make an awesome user account system).
Hope that helps clarify. Let me know if you have any other questions!
Cheers
-Greg
Pranjal Agnihotri
4,187 PointsPranjal Agnihotri
4,187 PointsThankyou so much also I loved the explanation and your project which you are working on :))