django-admin-tools-stats | Django admin module that allow you to create easily charts | Dashboard library
kandi X-RAY | django-admin-tools-stats Summary
kandi X-RAY | django-admin-tools-stats Summary
Django-admin-tools-stats is a Django admin module that allow you to create easily charts on your dashboard based on specific models and criterias
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Prepare template data
- Get dynamic criteria
- Decorator to rename models
- Parse requirements file
- Decorator to rename the app index
- Parse the dependency links
- Read file contents
django-admin-tools-stats Key Features
django-admin-tools-stats Examples and Code Snippets
django-jsonfield = { markers="python_version < '2'" }
Community Discussions
Trending Discussions on django-admin-tools-stats
QUESTION
There are two packages which provide a module named jsonfield
:
Unfortunately, we have dependencies which depend on both and the two packages, while interchangable, store data to the database differently. This leads to weird and hard to catch bugs. Also, unfortunately, Pipenv doesn't have any deterministic order of operations when installing dependencies. Sometimes django-jsonfield
is installed and sometimes jsonfield
is installed. This means that sometimes, randomly, our application breaks because jsonfield
is installed instead of django-jsonfield
.
Is there a way that I can ban django-jsonfield
from being added to Pipenv.lock
so that only jsonfield
will be installed?
ANSWER
Answered 2019-Sep-17 at 22:59From the looks of it, you are in quite a tricky situation... There is no clean solution that I know of currently other than manually editing your Pipfile.lock
after each time it is generated.
You really should talk to the developers of the culprit projects:
- Either
jsonfield
anddjango-jsonfield
should agree on different names for their top level packages. - Or the projects that depend on
jsonfield
ordjango-jsonfield
should agree on one of the two and ditch the other one.
You might be interested in this discussion and eventually weigh in:
https://github.com/pypa/packaging-problems/issues/154. Of particular interest in your case is the fact that pip
allows the overwriting of an already installed package when installing a new one.
Untested:
You could experiment with setting an unlikely marker on the unwanted dependency:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install django-admin-tools-stats
You can use django-admin-tools-stats like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page