marinho / hippocampus Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Hippocampus provides drop-in visitor tracking for "object-detail" oriented pages in Django applications. It aims to provide simple analytics back to individual users of a site where users or their products have dedicated pages, eliminating the need to write an API interface for another analytics service. It also forces developers to type the word "hippocampus" a minimum of seven times. Installation ------------ Clone the Hippocampus repository on Github (http://github.com/olifantworkshop/hippocampus) and put the hippocampus app directory on your PYTHONPATH. Getting Started --------------- In your project's settings.py, add ``hippocampus`` to your INSTALLED_APPS and ``hippocampus.middleware.HippocampusMiddleware`` to your MIDDLEWARE_CLASSES, after the session and i18n middlewares. Be sure to run ``manage.py syncdb``. Include ``hippocampus.urls`` somewhere in your URLconf. In the appropriate template(s), add the following snippet:: {% load hippocampus_js %} {% hippocampus_script %} Now, in your URLconf, edit the dictionary of arguments that is given to the request to include a ``hippocampus`` key with a value of the model instance that you want to track:: url(r'^widgets/(?P<object_id>\d+)/$', func, {'hippocampus': Widget}, 'widget_detail') Your regular expression must have a named pattern for either ``object_id`` or ``slug``. If you use ``slug`` and the name of the slug field on the model is not ``slug``, you additionally need to define ``slug_field`` in the arguments dictionary. Optional settings ----------------- Hippocampus supports IP address geolocation using MaxMind's GeoIP library and database. Follow the instructions on the MaxMind website for installing the database and Python library, and then add the absolute path as ``GEOIP_DATABASE_FILE`` to settings.py.
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.