Comments (18)
@BismeetSingh I personally have the following in my requirements.txt
:
django-betterforms-jpic==1.2.2
from django-betterforms.
I'm not a fan of backward compatibility, I proposed it beacuse I've seen the project is not being updated from long. I supposed that maybe it is widely used by "ancient" project.
I don't think that my opinion count much but I've seen that you have made a pull request and I'm really glad!
from django-betterforms.
We apologize for letting this project stagnate for so long. We will be releasing version 2.0 in the near future, which supports Django 3.x and 4.0 and we hope to maintain it more actively going forward.
from django-betterforms.
Not sure if it's really worth maintaining backward compatibility: the releases for Python 2 work great, upstream is stable and in the worst case there will be a minor patch release once a year until Red Hat completely drops Python 3.
What do you think ?
from django-betterforms.
Any news on this?
from django-betterforms.
@bluesurfer a pull request has been created thanks to @jpic
Sorry but I'm not sure how pull request in public project works so I don't know when it will be closed!
from django-betterforms.
Yep, meanwhile I use a fork package that includes the said patches, you can use it to if you want it's django-betterforms-jpic
from django-betterforms.
@jpic You might wanna update the details in your fork - PyPI links to the wrong repository, has the wrong install instructions in the readme, lists the wrong Django versions as supported, etc.
from django-betterforms.
@Asday it's just meant as a temporary solution, perhaps the repo owners should transfer the repo to JazzBand and move on to whatever they are maintaining now.
from django-betterforms.
How to use the temporary fork? I tried uninstalling the original and installing the fork. I then get ModuleNotFoundError: No module named 'betterforms'
if I put betterforms
in INSTALLED_APPS
. It used to work fine without this setting, using the original project, so I tried removing it, but then neither import betterforms.form
nor import betterforms.multiform
work.
from django-betterforms.
@verngutz Worth opening an issue on @jpic's repo, but personally I didn't have that issue at all. When you make the issue, make sure you include your requirements.txt
and all relevant code snippets.
from django-betterforms.
Honnestly I just changed the requirements from django-betterforms to https://github.com/jpic/django-betterforms/tarball/master and without changing any code it works for me.
Does it work in a new virtual environment ?
from django-betterforms.
Welp. Silly me. I installed @jpic's fork first before uninstalling the original one. So of course, since they both went into the same folder in site-packages, the uninstallation removed everything. The egg-info remains, telling pip that the requirement is still satisfied even though it isn't, so this took me a while to figure out.
(Probably shouldn't have done it manually and instead let pip install -r
handle it.)
from django-betterforms.
Better to require django-betterforms-jpic
in your requirements. It has the same named module so no code changes are required, but it's a different package, so pip
does the right thing.
from django-betterforms.
I uninstalled django-betterforms and installed django-betterforms-jpic instead. Now I get the following error: pkg_resources.DistributionNotFound: The 'django-betterforms' distribution was not found and is required by the application.
Any ideas how to fix this?
(or: has anyone found a better solution how to use class based views for multiple models and forms?)
from django-betterforms.
from django-betterforms.
The -jpic version works if you install it with git, I've removed
django-betterforms dependency from my project (crudlfap) so I won't be
doing nor expecting anything else on this, sorry.
exactly - it's the best solution
I uninstalled django-betterforms and installed django-betterforms-jpic instead. Now I get the following error:
pkg_resources.DistributionNotFound: The 'django-betterforms' distribution was not found and is required by the application.
Any ideas how to fix this?
use the solution from @jpic - install it from git
Answering why this happens: @jpic by providing alternative pip package made an error, his package named django-betterforms-jpic
, but in code he left the old name, so package resolver can't find it.
__version__ = __import__('pkg_resources').get_distribution('django-betterforms').version
from django-betterforms.
How do I install jpic from git?
from django-betterforms.
Related Issues (20)
- can't set attribute cleaned_data in form clean method HOT 9
- MultiModelForm with django.contrib.auth.forms.PasswordChangeForm
- How can use form_class with extra fields HOT 4
- MultiForm with separate submit buttons HOT 1
- Use dict instead of Context in for support with Django v1.11
- Kwargs should contain 'queryset' when child is a FormSet on edition HOT 1
- Multiform kwargs are copied to ALL form_classes instead of only to the ones that need them HOT 2
- Using MultiForm with Formset
- Release HOT 4
- Typo in documentation: BaseForm should be renamed into BetterForm
- Cannot override Multiform.clean()
- __init__() got an unexpected keyword argument 'request'
- How to pass initial values to FilterForm
- AttributeError: Name Conflict in fieldset `Plate Description`. The name(s) `['i']` appear multiple times.
- Error while deploying on Elastic beanstalk HOT 1
- "Newline not allowed" when installing the package. Setuptools won't allow multiline descriptions anymore. HOT 1
- crispy forms raises ``Could not resolve form field``
- No use of default rendering? HOT 1
- is_valid() does not handle clean() not returning a value
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-betterforms.