pennersr / django-trackstats Goto Github PK
View Code? Open in Web Editor NEWKeep track of your statistics
License: MIT License
Keep track of your statistics
License: MIT License
If you look at the .travis.yml file, it's configured incorrectly, and not actually testing Python 3.
Literally, the second line is restricting it to testing only Python 2.7.
language: python
python: 2.7
env:
- TOX_ENV=py27-django19
- TOX_ENV=py34-django19
- TOX_ENV=py27-django110
- TOX_ENV=py34-django110
install:
- pip install tox
- pip install "coverage>=3.7.1" coveralls
script: tox -e $TOX_ENV
after_success:
- coverage report
- coveralls
There are a number of places in the code that use
datetime.today()
According to the docs, this returns the date in the local timezone.
This could lead to a bug where a user could get different results based on the location of the app server.
I believe the fix is to do this instead:
from django.utils import timezone
today = timezone.now().date()
Which will always return the date for UTC.
Hi, thanks for developing this package! I have a question:
Is there any best practice where to define metrics and domains?
In apps.py
when an application is ready
? And for each application separately?
Is there a way to store statistics as floats ? Would switching the value model from int to float cause a malfunction of the module ?
And is there a reason for storing data as int instead of floats ? For some values the decimals are the important values and it's not very convenient to have to change the decimal place when storing the data.
I would like to develop this app and migrate it to django 4, are there any owners of this repo to accept pull requests?
The .narrow()
method is quite useful for reading statistics, but it's missing from the documentation.
What is the status of this project?
Would you still recommend it, if someone starts from scratch? If not, which tool would you choose?
Maybe it would make sense to update the README
I have readed the readme file, installed and config all done.
An example of use would be very usefull.
For example, I need a dashboard with charts and use the stats to populate this.
How I can send de data collected by the metrics?
My goal is to record user events and then be able to answer questions like: which user has visited the pricing page the most, how many times did they visit it in a week, in a month?
So, the event I'm interested in tracking might be "visited pricing page".
Would I have to create my own Events
model with user
,action
,date
then call StatisticByDate.objects.record
or can I log activity/events some other way?
Does this support custom periods? It looks like the period choices are hardcoded here: https://github.com/pennersr/django-trackstats/blob/master/trackstats/models.py#L9-L22
Perhaps I'm missing something. How would one implement--for example--yearly stats?
I'm monkeypatching the library to have hour statistics. Why make it unique?
I mean, let's just convert this into a datetimefield and allow devs to track stuff with hour or minute resolution?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.