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 trial

Python

Juan Perez
PLUS
Juan Perez
Courses Plus Student 8,944 Points

Starting a Finance app in Django.

I want to start a financial app in django and I would like to ask for some recommendations from the more experience djangonauttes in here.

  • How can I start this?
  • Would it be better if I do the math using the templates or on external python files?
  • Is there anything I should look at before tackling this project?

4 Answers

Can I assume that by financial you mean financial instruments as opposed to some sort of personal finance app?

My experience with both Django and finance is still limited but I have already begun doing something similar on a personal website. What exactly are you trying to achieve? Right now the most functional aspect of my site offers a trade journal to track returns of user entered trades. I do the math for that in my model which is relatively simple.

Doing math in the template seems less efficient since you may end up doing lots of calculations that only need to be done once and then stored in the database.

I want to incorporate more advanced plotting and analysis of financial data in the future but I still need to research the licensing implications of making public facing info from minutely data I've paid for.

Juan Perez
PLUS
Juan Perez
Courses Plus Student 8,944 Points

Avery Uslaner Yea, something with:

  • Budgeting
  • Loan Manager
  • Cash Flow

Thanks for your help. The best way to do it is in the project creating an app for each of these right?

I think it depends how expansive each of those categories will be and how much info needs to flow between them. While you certainly can import models between classes, if two apps end of sharing lots of the same info and often need to pass things between them, it might make more sense to just keep them in a single app.

But if each app is distinct they should definitely be kept separate. I think this mostly just depends on your personal preference in terms of organization. Do what seems to make the most intuitive sense to you so every time you revisit the codebase you know what's going on.

Juan Perez
PLUS
Juan Perez
Courses Plus Student 8,944 Points

Avery Uslaner Thank you very much for your help. Would you mind if I keep this thread open a ask you questions here and then while I rumble with this project? If you don't mind me asking some stupid questions once in a while.

Thanks a lot!

Absolutely. I can't promise I'll always know the answer but I'm happy to try learning along with you.