Giter Club home page Giter Club logo

django-trackstats's People

Contributors

bertonha avatar hamidrabedi avatar niekvanderlinden avatar pennersr avatar progremir avatar sloria avatar sobolevn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

django-trackstats's Issues

Test for Python 3 are misconfigured

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

Always use UTC when getting the current time

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.

Storing metric values as float

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.

is this repo still live?

I would like to develop this app and migrate it to django 4, are there any owners of this repo to accept pull requests?

Document .narrow()

The .narrow() method is quite useful for reading statistics, but it's missing from the documentation.

No updates since two years?

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

Use Example

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?

Tracking events

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?

Why unique on date?

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.