https://github.com/jesuejunior/django-modeanalytics
https://github.com/jesuejunior/django-modeanalytics
analytics dashboard django mode modeanalytics
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/jesuejunior/django-modeanalytics
- Owner: jesuejunior
- License: bsd-3-clause
- Created: 2020-02-07T20:21:25.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-08T18:59:47.000Z (over 3 years ago)
- Last Synced: 2025-07-12T21:29:09.620Z (12 months ago)
- Topics: analytics, dashboard, django, mode, modeanalytics
- Language: Python
- Homepage:
- Size: 216 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.rst
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Django Mode Analytics
This project was only tested on PostgreSQL
## How it works
### Installation
- Requirements
- Django and pyscopg2
```shell
pip install modeanalytics
```
### Configuration
You must set the follow vars in your django `settings`
```
MODE_ORG: str = ""
MODE_ACCESS_KEY: str = ""
MODE_ACCESS_SECRET: str = ""
```
To generate these signature tokens, please look at [Mode Support](https://mode.com/help/articles/organizations/#white-label-embed-signature-tokens)
Add *modeanalytics* in your _INSTALLED_APPS_ tuple
```
INSTALLED_APPS = [
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.staticfiles",
"modeanalytics",
]
```
#### Package build
Bumping version, options are `major, minor and patch`.
```shell
bumpversion patch setup.py modeanalytics/__init__.py
```
Preparing the package
```shell
python setup.py sdist bdist_wheel
```
Checking if the package is good enough to PyPi
```shell
twine check dist/*
```
Uploading the package to PyPi
```shell
twine upload dist/*
```