Django do analytics

Django do analytics

Published April 17, 2016 in Development, Web - Last update on April 17, 2016.

There are now few months I want to install A Piwik and see who's coming in my website. My blog isn't a wordpress one and I always have the same problem: I do not want to install PHP on my webserver. I had Piwik in head because I want to self-host my analytic solution, so I adapt my usual method: What does exist for Django and analytics ?

A fast Google search about Django+Analytical mostly talk about django-analytics or equivalent, Django apps for integrate simply with all analytic providers, but I hope to get my backend powered by Python/Django and would like to be able to see users' activities and why not track event. Yes I'm a little bit too much greedy, so I didn't found the wonderful Django project with its JS script to store every events.

I've 2 arms and 2 legs, it's 3am, let's make this myself. After I made a middleware for save every requests in DB, I saw django-request: A statistics module for django. It stores requests in a database for admins to see, it can also be used to get statistics on who is online. There's not the JavaScript but I shall have been able to sleep earlier...

Tell me more about request

The project is relatively simple, it is composed by:

  • A Request model storing HTTP requests in database
  • A middleware for catch and save requests
  • A great admin overview pluggable with your own widgets

And this last feature really seduced me, I could show anything I want in the overview page. There are near 8 existing plugin and they add a great example with a pie chart of client's user agent.

So you're using it and you're happy

Yes indeed, I'm not only using it but I began by look at the source code, as usal I raised test coverage to +90% for ensure its usage. And now kylef has accepted my pull requests, I began to think my new tracking module here. There are not already a lot of stuff, but for me everything begin by Visitor and Visit models, and after I'll plug GeoIP, JavaScript actions and hearbeats.

I'm not sure request's author would like to go in this direction but he made his application enough pluggable for implement in another repository. And I am not a SEO expert, so I think I maybe will make more counters than analytics but there will be all the requirements for a mid-level website. Feel free to comment my PR about it.

Comments

  • new usa online casinos 2017

    new usa online casinos 2017 on 03/20/2018 1:46 p.m. #

    play casino games online
    casino games
    casino online usa
    casino games free

  • betbano

    betbano on 03/20/2018 2:22 p.m. #

    how many viagra can you take in a week
    <a href=http://viagragennlk.com/>buy generic viagra</a>
    viagra en mexico
    <a href="http://viagragennlk.com/">buy viagra online</a>

  • Williamreump

    Williamreump on 03/20/2018 3:46 p.m. #

    http://buyviagra.webcindario.com - viagra for men
    <a href=http://buyviagra.webcindario.com>viagra dosage</a>
    <a href="http://buyviagra.webcindario.com">viagra substitute</a>
    http://buycialis.webcindario.com - side effects for cialis
    <a href=http://buycialis.webcindario.com>low cost cialis 20mg</a>
    <a href="http://buycialis.webcindario.com">viagra vs cialis</a>
    http://viagrarpr.com - viagra australia
    <a href=http://viagrarpr.com>generic viagra 100mg</a>
    <a href="http://viagrarpr.com">vad kostar viagra</a>
    http://cialisrpr.com - warnings for cialis
    <a href=http://cialisrpr.com>cialis 20 mg</a>
    <a href="http://cialisrpr.com">cialis para que sirve</a>

  • Williamreump

    Williamreump on 03/20/2018 4:43 p.m. #

    http://buyviagra.webcindario.com - viagra without a doctor prescription
    <a href=http://buyviagra.webcindario.com>viagra wikipedia</a>
    <a href="http://buyviagra.webcindario.com">viagra official site</a>
    http://buycialis.webcindario.com - cialis patentablauf in deutschland
    <a href=http://buycialis.webcindario.com>cialis from canada</a>
    <a href="http://buycialis.webcindario.com">side effects for cialis</a>
    http://viagrarpr.com - viagra reviews
    <a href=http://viagrarpr.com>viagra nebenwirkungen</a>
    <a href="http://viagrarpr.com">viagra prices</a>
    http://cialisrpr.com - cialis coupons
    <a href=http://cialisrpr.com>cialis for bph</a>
    <a href="http://cialisrpr.com">cialis 30 day trial coupon</a>

  • Exponi

    Exponi on 03/21/2018 1:15 a.m. #

    viagra 3 day free trial
    <a href=http://viagragennlk.com/>buy generic viagra online</a>
    what viagra does to a woman
    <a href="http://viagragennlk.com/">generic viagra</a>

  • LomSoypeb

    LomSoypeb on 03/21/2018 8:38 a.m. #

    <a href=http://cialiskntrc.com/>online cialis</a>
    cialis order canada
    http://cialiskntrc.com
    generic cialis pro cialis
    <a href="http://cialiskntrc.com/">buy cialis</a>

  • MyronAwait

    MyronAwait on 03/21/2018 8:43 a.m. #

    http://canadapharmacyonlinex.com <a href=http://canadapharmacyonlinex.com>phentermine online pharmacy canada</a> pharmacy online canada <a href=" http://canadapharmacyonlinex.com ">abc online pharmacy in canada</a> canada online pharmacy levitra

  • Thycle

    Thycle on 03/22/2018 1:27 a.m. #

    quick ship viagra buy cialis online
    <a href=http://cialischmrx.com/>cialis online</a>
    canada cialis generic sudden hearing loss cialis
    <a href="http://cialischmrx.com/">buy cialis online</a>

  • habAbaph

    habAbaph on 03/22/2018 3:32 a.m. #

    100 mg viagra effects
    <a href=http://viagrachkrx.com/>viagra online</a>
    does medicare cover viagra
    <a href="http://viagrachkrx.com/">buy viagra online</a>

  • prussy

    prussy on 03/22/2018 6:01 a.m. #

    natural viagra substitutes
    <a href=http://viagrachkrx.com/>generic viagra</a>
    viagra tablets
    <a href="http://viagrachkrx.com/">buy cheap viagra</a>

  • fubrig

    fubrig on 03/22/2018 1:51 p.m. #

    generic vs brand name cialis
    <a href=http://cialischmrx.com/>cheap cialis online</a>
    buy tadalafil canada cialis
    <a href="http://cialischmrx.com/">cheap cialis online</a>

  • acurse

    acurse on 03/22/2018 6:26 p.m. #

    buy cialis online without a prescription
    <a href=http://cialischgrx.com/>buy cheap cialis</a>
    cialis non generic from canada
    <a href="http://cialischgrx.com/">cialis online</a>

  • Vuggerge

    Vuggerge on 03/22/2018 7:49 p.m. #

    safe cialis pills
    <a href=http://cialischmrx.com/>buy cialis online</a>
    buy cialis online now
    <a href="http://cialischmrx.com/">cheap cialis online</a>

  • clindy

    clindy on 03/23/2018 2:57 a.m. #

    manly cialis tablets
    <a href=http://cialischgrx.com/>cheap cialis online</a>
    generic cialis usa
    <a href="http://cialischgrx.com/">buy cialis online</a>

  • Ordida

    Ordida on 03/23/2018 6:04 a.m. #

    price of cialis tablets
    <a href=http://cialischgrx.com/>buy cheap cialis online</a>
    cialis coupon
    <a href="http://cialischgrx.com/">buy cialis online</a>

  • Stadly

    Stadly on 03/23/2018 12:10 p.m. #

    australia buy cheap cialis online
    <a href=http://cialischgrx.com/>buy cheap cialis</a>
    woman commercial buy generic cialis
    <a href="http://cialischgrx.com/">cialis online</a>

  • unonops

    unonops on 03/23/2018 10:32 p.m. #

    viagra cream
    <a href=http://viagragenericmrx.com/>viagra cheap</a>
    viagra medicaid
    <a href="http://viagragenericmrx.com/">buy generic viagra</a>

  • atrotte

    atrotte on 03/24/2018 5:07 a.m. #

    xanax and viagra
    <a href=http://viagragenericmrx.com/>generic viagra online</a>
    viagra y alcohol
    <a href="http://viagragenericmrx.com/">cheap viagra online</a>

  • Evoppig

    Evoppig on 03/24/2018 5:07 a.m. #

    buy viagra without a doctor prescription
    <a href=http://viagragenericmrx.com/>cheap viagra</a>
    viagra on line
    <a href="http://viagragenericmrx.com/">buy generic viagra</a>

  • Guggera

    Guggera on 03/24/2018 1:11 p.m. #

    price of viagra
    <a href=http://viagragenericmrx.com/>buy generic viagra</a>
    viagra quebec
    <a href="http://viagragenericmrx.com/">generic viagra online</a>

  • casino games list

    casino games list on 03/24/2018 6:32 p.m. #

    pogo casino slots
    casino games list
    pogo casino slots
    casino online application

  • Daphemn

    Daphemn on 03/25/2018 7:21 p.m. #

    single pack viagra
    <a href=http://viagrajktrx.com/>viagra no prescription</a>
    when does viagra go generic
    <a href="http://viagrajktrx.com/">buy viagra</a>

  • alextem

    alextem on 03/26/2018 1:59 a.m. #

    ???????? ?????? ???? ???????


    http://gogo.power-stan.biz/page_forum/viagra_soft_100.php - ?????? ?? ??????? ??????? ????? ??????!
    .
    .
    .

    http://gogo.power-stan.biz/page_forum/viagra_soft_100.php - http://gogo.power-stan.biz/img_forum/_mCbK2PHl00.jpg

    .
    .
    .

    http://gogo.power-stan.biz/page_forum/viagra_soft_100.php - http://gogo.power-stan.biz/img_forum/button_4.png

    .
    .
    .
    .
    .
    Cialis Soft ????????? ? ????????: [color=#008000 - 20 ??/??? - 10 ???. http://gogo.power-stan.biz/page_forum/viagra_soft_100.php - ?????? ????? ????? ????????? ?????? ->
    ???? ?? ?????? ???????? ?????????? 100 ??, ???????? ?? ?????? "? ???? ?????? ???????? ?????? ????"
    .
    ?????????: ??????????? ????????? , ???????? ?????? ???? ???????
    ????????: ???????? ?????? ????
    ?????????????: ?????
    .
    .
    .
    .
    .
    .
    .
    .
    ????? ??????? ???????????? ????????, ????? ????? ?????? ???? ? ???????? ?????? ????:
    .
    .
    .
    .
    .

    ?????? ?????? Cialis Soft ???????
    ???????? ????? ?????
    ???????? ?????? ???? ???????
    ???????? ?????? ???? ???????? ????
    ?????? ???? ?????
    ???????? ?????? ???? ?????? ?????????
    ????????? 20 ?? ???????? ?????????
    ??????? ???????? ?????????
    ???????? ?? ?????? ???? ???????
    ???????? Cialis Soft ??????
    Cialis Soft ? ??????
    ???????? ?????????? ?????? ???? ??????? ?????
    ?????? ???????? ????? ???????? ?????? ????? ??????? ?????? ?????? ??????? ??????? ????????? ??????? ?????? 150 ??????????? ??????? ???????? ????? ?????? ?????? ???????? ?????? ???? ???????? ???????? ??????? ??????? ?????????? 40 ?? ??????? ??????? ???? penon cream ???????????? ????????? ?????? ???????? ?????? ?????????? 60 ?? ?????? ???? ??????????? ?????????? 60 ???????? ???? ?????? ?????? ??????? ?????? ??????? ????? ???? ???????? ??????? ?????????? ???????? ????? ??????? ????????? ???????? 20 ??????? ???????? ????? ????? ??????? ????? ?????? ?????? ?????????? http://europanel-samara.ru/_objects/super-fors/911-analog-levitri-viagri-sialisa-arzamas/ - ?????? ??????? ?????? ??????? ??????? http://st-solution.ru/layouts_/djenerik-sialis-soft/808-sildenafil-100-stoimost-kingisepp/ - ?????????? 100 ????????? ????????? http://exestation.ru/license_php/penon-cream/792-kupit-levitru-20-nijnekamsk/ - ?????? ??????? 20 ?????????? http://fishhunt62.ru/_mail_/problemi-potencii/783-super-jevitra-dostavka-chusovoy/ - ????? ??????? ???????? ??????? http://agn89.ru/__modules_/pomojem-lechitsya/124-sildenafil-100-deshevo-uglich/ - ?????????? 100 ?????? ????? http://interviis.ru/server__/viagra-gel/974-cena-nabora-semeyniy-benderi/ - ???? ?????? ???????? ??????? http://bauermedia.ru/_yahoo_/nabor-lovelas/722-kupit-super-pforce-petropavlovskkamchatskiy/ - ?????? Super P-Force ?????????????-?????????? http://device-online.ru/_js/djenerik-sialis/105-analog-viagri-150-rostovnadonu/ - ?????? ?????? 150 ??????-??-???? ?????? ????? ??????? ????? ??????? 150 ???????? ?????? ??????? 150 ???????? ???? ??????? ????? ??????? ?????? ???????? ?????

  • Smoods

    Smoods on 03/26/2018 2:44 a.m. #

    vega h viagra cream
    <a href=http://viagrajktrx.com/>how to buy viagra</a>
    viagra y sus efectos
    <a href="http://viagrajktrx.com/">generic viagra</a>

  • queuemn

    queuemn on 03/26/2018 1:04 p.m. #

    cash fast loan
    <a href=http://paydaycashmoneyonline.com/>payday loans online</a>
    payday loans in texas
    <a href="http://paydaycashmoneyonline.com/">payday cash advance loan</a>

  • Mubjoush

    Mubjoush on 03/26/2018 4:02 p.m. #

    cialis prescription online
    <a href=http://cialistrxonline.com/>cialis online</a>
    generic vs brand name cialis
    <a href="http://cialistrxonline.com/">buy generic cialis</a>

  • Playday

    Playday on 03/26/2018 4:11 p.m. #

    cheap cialis tablets
    <a href=http://cialistrxonline.com/>buy cialis online</a>
    cialis soft tabs online pharmacy
    <a href="http://cialistrxonline.com/">buy cialis online</a>

  • Terydrof

    Terydrof on 03/27/2018 4:18 a.m. #

    order cialis professional
    <a href=http://cialistrxonline.com/>buy generic cialis</a>
    emedicine viagra cialis pills
    <a href="http://cialistrxonline.com/">cialis coupon</a>

  • mezo

    mezo on 03/27/2018 4:44 a.m. #

    Wow, th?s paragraph ?s pleasant, my ?ounger sister ?s analyzing t??se t?ings, therefore I am
    g?ing to inform h?r.

  • betbano

    betbano on 03/27/2018 7:12 a.m. #

    cialis online buy
    <a href=http://cialistrxonline.com/>buy cheap cialis online</a>
    get cialis pres??ri??tion and order cialis online
    <a href="http://cialistrxonline.com/">cialis online</a>

  • Vuggerge

    Vuggerge on 03/28/2018 5:50 a.m. #

    indian viagra for women cialis generic
    <a href=http://cialistrxonline.com/>cialis online</a>
    daily side effects cialis tablets
    <a href="http://cialistrxonline.com/">cialis online</a>

  • Bakdaype

    Bakdaype on 03/28/2018 5:53 a.m. #

    ci alis online
    <a href=http://cialistrxonline.com/>buy cialis online</a>
    lowest price cialis generic viagra
    <a href="http://cialistrxonline.com/">buy generic cialis</a>

  • Fake Essay Writer

    Fake Essay Writer on 03/28/2018 9:17 a.m. #

    good research paper <a href="http://researchpaper.store">college research paper</a> research paper <a href=http://researchpaper.store>write research paper</a>

  • prussy

    prussy on 03/28/2018 2:21 p.m. #

    viagra how does it work
    <a href=http://viagragenbrx.com/>buy viagra online</a>
    long term side effects of viagra
    <a href="http://viagragenbrx.com/">cheap viagra</a>

  • duehony

    duehony on 03/28/2018 5:56 p.m. #

    woman and cialis pharmacy
    <a href=http://cialisnbuyrx.com/>generic cialis online</a>
    viagra pronunciation cialis generic
    <a href="http://cialisnbuyrx.com">cialis online</a>

  • Thattrek

    Thattrek on 03/28/2018 10:11 p.m. #

    how to get a cash loan
    <a href=http://paydaycashmoneyonline.com/>pay day loans</a>
    online loans sa
    <a href="http://paydaycashmoneyonline.com/">payday cash advance online</a>

  • hoinnapy

    hoinnapy on 03/29/2018 12:33 a.m. #

    generic cialis 20mg target mexico
    <a href=http://cialisnbuyrx.com/>cialis</a>
    generic cialis tadalafil 20mg
    <a href="http://cialisnbuyrx.com">cheap cialis</a>

  • axorsrop

    axorsrop on 03/29/2018 5:32 a.m. #

    guarantor loans
    <a href=http://paydaycashmoneyonline.com/>payday loans online</a>
    fast online payday loan
    <a href="http://paydaycashmoneyonline.com/">pay day loans</a>

  • Aeracenep

    Aeracenep on 03/30/2018 2:20 a.m. #

    ??????? ??? ???? ? ????????? ? ??????? (????????? ????????, ?????????? ????????) – ?????? ?????????????????? ???? ? ????? ????????, ?????, ???????, ????????, ????, ?????????, ????. ??????? ??????? ??? ?????????????????? ???? ? ???, ?? ???????? ?????????????????? ??????? ?? ????? ????????? ?????????!
    <a href=http://ookna.cn.ua/>???? ????????</a>, <a href=http://ookna.cn.ua/>?????? ???? ??????????????????</a>
    <a href=http://ookna.cn.ua/>?????</a>
    <a href=http://ookna.cn.ua/>?????????????????? ????</a>

  • car insurance

    car insurance on 03/30/2018 9:18 p.m. #

    car insurance policy
    cheap auto insurance policy
    car insurance quotes allstate
    cheap auto insurance

  • habAbaph

    habAbaph on 03/30/2018 9:46 p.m. #

    viagra 150 mg
    <a href=http://viagrachjkt.com/>viagra online</a>
    best online pharmacy viagra
    <a href="http://viagrachjkt.com/">viagra online</a>

  • Expits

    Expits on 03/30/2018 10:17 p.m. #

    payday loans bakersfield ca
    <a href=http://paydaystip.com/>pay day loans</a>
    unsecured personal loans florida
    <a href="http://paydaystip.com/">payday loans online</a>

  • OnesKisy

    OnesKisy on 03/31/2018 2:22 a.m. #

    http://paydaystip.com/
    online payday loans colorado
    <a href=http://paydaystip.com/>payday express</a>
    personal secured loan
    <a href="http://paydaystip.com/">payday express</a>

  • Asseds

    Asseds on 03/31/2018 5:31 a.m. #

    watermelon viagra
    <a href=http://viagrachjkt.com/>buy cheap viagra online</a>
    brother puts viagra in drink
    <a href="http://viagrachjkt.com/">cheap viagra</a>

  • OnesKisy

    OnesKisy on 03/31/2018 5:59 a.m. #

    http://paydaystip.com/
    fast online cash loans
    <a href=http://paydaystip.com/>pay day loans</a>
    banks that do personal loans
    <a href="http://paydaystip.com/">payday express</a>

  • soosse

    soosse on 03/31/2018 1:14 p.m. #

    reductil online without prescription cialis 20mg
    <a href=http://cialisgenddrx.com/>cheap cialis</a>
    cialis online pharmacy
    <a href="http://cialisgenddrx.com/">buy generic cialis online</a>

  • nadrardy

    nadrardy on 03/31/2018 3:59 p.m. #

    purchase cheap cialis soft tabs
    <a href=http://cialisgenddrx.com/>buy generic cialis online</a>
    uk generic cialis tadalafil
    <a href="http://cialisgenddrx.com/">buy cialis online</a>

  • Teweene

    Teweene on 03/31/2018 6:32 p.m. #

    buy viagra online without prescriptions
    <a href=http://viagranrxch.com/#>cheap viagra online</a>
    when to take viagra for best results
    <a href="http://viagranrxch.com/#">generic viagra online</a>

  • Blisag

    Blisag on 04/01/2018 12:45 a.m. #

    money quick
    <a href=http://paydayloanonls.com/#>cash advance</a>
    online loan applications for bad credit
    <a href="http://paydayloanonls.com/#">payday loans</a>

  • blachub

    blachub on 04/01/2018 1:09 a.m. #

    i need loan
    <a href=http://advanceloansbad.com/>payday loans online</a>
    payday loans online pa
    <a href="http://advanceloansbad.com/">payday cash advance online</a>

  • exEssHes

    exEssHes on 04/01/2018 1:53 a.m. #

    payday advance loan
    <a href=http://paydayloanonls.com/#>personal loans</a>
    payday loans memphis
    <a href="http://paydayloanonls.com/#">personal loans</a>

  • Saurne

    Saurne on 04/01/2018 2:12 a.m. #

    viagra e ipertensione
    <a href=http://viagranrxch.com/#>buy generic viagra</a>
    viagra model
    <a href="http://viagranrxch.com/#">buy generic viagra</a>

  • Bripuct

    Bripuct on 04/01/2018 6:47 a.m. #

    online cash
    <a href=http://advanceloansbad.com/>payday loans</a>
    payday loans in houston tx
    <a href="http://advanceloansbad.com/">payday advance loans</a>

  • amersoke

    amersoke on 04/01/2018 10:50 a.m. #

    http://advanceloansbad.com/
    private personal loan
    <a href=http://advanceloansbad.com/>pay day loans</a>
    money in minutes loan
    <a href="http://advanceloansbad.com/">payday cash advance online</a>

  • engils

    engils on 04/01/2018 3:19 p.m. #

    personal loans in maryland
    <a href=http://advanceloansbad.com/>loans for bad credit</a>
    payday loan for bad credit direct lender
    <a href="http://advanceloansbad.com/">payday cash advance online</a>

  • best online loans instant approval

    best online loans instant approval on 04/01/2018 5:10 p.m. #

    speedy cash payday loans online
    speedy cash payday loans online
    payday loans las vegas
    payday loans in az

  • TowsZogy

    TowsZogy on 04/01/2018 5:47 p.m. #

    easy cash loans online
    <a href=http://paydayloanonls.com/#>payday loans online</a>
    short term loan direct lender
    <a href="http://paydayloanonls.com/#">cash advance</a>

  • Joneendy

    Joneendy on 04/01/2018 9:04 p.m. #

    buy cialis soft online
    <a href=http://cialisdelta.com/#>generic cialis</a>
    amazon cheap generic cialis
    <a href="http://cialisdelta.com/#">generic cialis</a>

  • prayego

    prayego on 04/01/2018 10:41 p.m. #

    natural viagra alternative
    <a href=http://viagranrxch.com/#>generic viagra online</a>
    how well does viagra work
    <a href="http://viagranrxch.com/#">buy viagra</a>

  • Henuavy

    Henuavy on 04/02/2018 12:43 a.m. #

    buy tadalafil india no prescription buy
    <a href=http://cialisdelta.com/#>buy cialis</a>
    cialis online generic
    <a href="http://cialisdelta.com/#">cialis online</a>

  • nadrardy

    nadrardy on 04/02/2018 1:29 a.m. #

    viagra ingredients
    <a href=http://viagranrxch.com/#>generic viagra online</a>
    female verion of viagra
    <a href="http://viagranrxch.com/#">buy viagra</a>

  • SpibMerb

    SpibMerb on 04/02/2018 8:08 a.m. #

    buy cialis soft
    <a href=http://cialischgrx.com/>cheap cialis online</a>
    buy generic cialis without prescription
    <a href="http://cialischgrx.com/">buy cheap cialis online</a>

  • enduro

    enduro on 04/02/2018 12:29 p.m. #

    herbal viagra green box
    <a href=http://viagranrxch.com/#>buy generic viagra</a>
    how much viagra can i take a day
    <a href="http://viagranrxch.com/#">buy viagra</a>

  • Goomand

    Goomand on 04/02/2018 9:45 p.m. #

    viagra reviews
    <a href=http://genericviagraonlinerx.us.com/>generic viagra online</a>
    viagra results
    <a href="http://genericviagraonlinerx.us.com/">generic viagra</a>

Post your comment

Comment as . Log out.