This project was only tested on PostgreSQL
- Requirements
- Django and pyscopg2
pip install modeanalytics
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
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",
]
Bumping version, options are major, minor and patch
.
bumpversion patch setup.py modeanalytics/__init__.py
Preparing the package
python setup.py sdist bdist_wheel
Checking if the package is good enough to PyPi
twine check dist/*
Uploading the package to PyPi
twine upload dist/*