Beginning project of displaying graphical information from a sql database

19 views
Skip to first unread message

J R

unread,
Apr 6, 2021, 6:16:03 PM4/6/21
to Django users
Hello,

Fairly new to Django, I've been through a few tutorials and understand the basics. 

My goal is to create a page which shows a defined asset's value over time compared to various social metrics tying to that asset (volume of reddit comments, twitter posts, ect.). The user will input what kind of asset they want to look at, a time range, as well as which social metrics to look at along with the defined asset. 

I have a dataframe pulled together from an API that has all the data I need to display the graphs that I want. 

I guess from here I'm a bit unsure on how to incorporate this dataframe into models, to begin working with different views and templates of displaying the data. 

Any ideas, examples would be appreciated. 

Ryan Nowakowski

unread,
Apr 7, 2021, 12:22:25 AM4/7/21
to django...@googlegroups.com
If you already have the data you need via the API you may not need models in your case. To start out, call the API from your Django view, add the data from the resulting data frame to the context for the template. Then in the template render it however you like... charts, graphs, tables, whatever.
Reply all
Reply to author
Forward
0 new messages