Choose which way to calculate the PV and UV in Django? - django

I'm building a news website using Django and hope this website can handle millions of traffic.Now I'm coding a function that displays 48 hours most viewed articles to readers,so I need calculate the PV.
I have searched for a while and asked some people.I know I have some options:
1.using simply click_num=click_num+1,but I know this is the worst way.
2.A better way is using Celery to code a distributed task,but I don't know how to exactly do it.
3.I heard Redis also can used to calculate PV and UV but,have no idea how to do it and not sure the it can satisfy my needs.
4.Another good way is to use google analysis,but I also have no idea how to do it and not sure the it can satisfy my needs.
5.The last way ,I think the easiest way is to use JavaScript, but I'm not sure whether it can satisfy my needs.
Any friend can give me some advice? Thank you so much!

Related

What is most optimal way to include data science visualizations and/or simple charts in django?

I am new in django, I have achieved to built a simple website up running in my local sever, but now I have reached that part where I want to add some cool and nice looking graphs to my project, but I see many options that are not that simple, if I could choose, I would use some python-based library or something, but it needs to load very fast. I am looking for guidance and suggestions. Thank you in advance.

what do you recommend to start a project like this? StartUp teespring vistaprint

I'm trying to make a startup business, something like vistaprint or teespring
I'm not a programmer (not yet, learning right now, but I do know use wordpress) but I found a way to make something simillary using > demo.lumise.com
How hard is to make something like this from scratch?
I need a lot of customization from about Lumise plugin (woocommerce) or php script for this idea , so I need building from zero I guess.
What do you recommend me?
Anything helps me. Thank you!
You are not a programmer and you are not wordpress expert right ?
So don't try to compete with King Theme to develop something like Lumise from Zero. That sounds unrealistic
If I was you, the best thing I can do is: I will invest $59 to buy Lumise. Because It is PHP so you can read and analyze its code, then customize additional features.
No one on Stack Overflow can estimate for you How hard it is, because they don't know What do you want to customize
To sum up for this question, I think the best way is buy that tools and try to customize your features from exists one.
Ah, If budget is not problem why don't you discuss with them to customize for you ? I see there is custom plan on their pricing
That's sure help you save more time & money

Split screen map and streetview

Google’s 2017 map documentation does not say how to specify a split screen, lower part map, upper part streetview. Please, is this possible within a Google-map URL, and if it is, how?
Since you haven't give any more information about the language you use, im just gonna link the documentation from google.
Since its still usable, the realtime examples work and they haven't said a word in changelog or else, I would assume its still working.
Here you can get to the overall Google API Documentation
As an exmaple for the question, Google made a realtime Example with documentation, here in JS.
Also, even if its not possible to do in a short way, you can simply build two synchronized boxes. It just would take more effort.

could anyone give me help on ground-truth data

I recently came to a term in one of my email communicatons with my supervisor.Since I am beinging doing a data-mining project on facebook user profile,and he said I should being collecting groud-truth data.
I am very new to this term and I searched online for it,but found very few results about it in data-mining sense.
Could anyone give me an example of what this groud-truth data is in a data-mining task pleae?
Thank you very much.
Ground-truth is data annotated (generally by human) known to be sure at 100%.
It's used to train algorithm since it's what you expect the algorithm to give you.

Which is the better of the django event apps?

I've been looking at django-swingtime, django-schedule and django-agenda.
Any recommendations of which is them easier to use, and if so any practical code examples out there? Couldn't find useful documentation or examples in the respective projects.
My requirement is to have a number of events and track their occurrences, but the events are custom things, for example, a project management system where a regular amount of time is spent on each project where an event is a task and the occurrences are the hours spent regularly on each task.
I don't know if you already checked django-packages but it has a small grid about these: http://www.djangopackages.com/grids/g/calendar/
if your requirement is just to display the calendar on certain data which you have in database then i recommend the use of inbuilt HTMLcalendar in python2.5 which is easy to use.
More details you can find at
http://journal.uggedal.com/creating-a-flexible-monthly-calendar-in-django
Based on #Maccesch 's answer and having in mind that I'm a total beginner to Django I could only get Django Happenings to work: https://github.com/wreckage/django-happenings I hope this project will continue to exist.