Hive View Update 04.26.2020

in #hive-dev4 years ago

Status Update

It's been quiet around here on this front for a little while, sickness got the best of me and had me down and just unable and pretty much unwilling to get much of anything done, except a couple of short scripts for HiveTools.

New List View

I got tired of trying to figure out the best way to truncate the post and keep a picture using just the utilities normally used in Django so decided it was a good idea to just toss that out the window and make it a fancy table instead. So, voilà:
Screenshot202004261149491922x1034.png

Better Image support

Well, not that it does pictures any better, but it does now pickup pictures that are posted on a single line not using markdown (why do people do this) along with cleaning up the regex it uses to find and create the img src url with the proxy
Screenshot202004261650181922x1034.png

Also the Price Widget

May have noticed there is a price widget on the right side of that picture, that's mostly new too.

Caching

One of the biggest additions is something that can not be seen, but I have enabled page caching in Django to increase the speed of loading and to take some pressure off the server when more than one request happens at a time for things like /trending /hot et el. Just need to figure out a good time limit to keep the cache as to not serve stale information, consider it a WIP ;)

That's it.

That's all I have for now I think, I may be forgetting something. If you would like to check out the code (See what I did there) you can get it on GitHub. I promise I'm trying to figure out the wording for a proposal and hope to have one soon for this and the "Learning Python by Example" series, stay tuned for that.

As always, bee safe, bee kind,
Michael Garcia a.k.a. @TheCrazyGM

Sort:  

I love the look of it! Is this site live anywhere?

PD: Thanks for the code, I am also a python aficionado :)

No, I don't have it live anywhere yet, I am probably going to spin up a free AWS tiny one and get it live, even if in development mode. :)

Yeah, I would love to see that.

You also have the pythonanywhere.com subdomain option.

Best of luck, following!