Giter VIP home page Giter VIP logo

Comments (18)

Asday avatar Asday commented on September 21, 2024 2

@BismeetSingh I personally have the following in my requirements.txt:

django-betterforms-jpic==1.2.2

from django-betterforms.

Cicciodev avatar Cicciodev commented on September 21, 2024 1

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.

CSprat451 avatar CSprat451 commented on September 21, 2024 1

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.

jpic avatar jpic commented on September 21, 2024

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.

bluesurfer avatar bluesurfer commented on September 21, 2024

Any news on this?

from django-betterforms.

Cicciodev avatar Cicciodev commented on September 21, 2024

@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.

jpic avatar jpic commented on September 21, 2024

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.

Asday avatar Asday commented on September 21, 2024

@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.

jpic avatar jpic commented on September 21, 2024

@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.

verngutz avatar verngutz commented on September 21, 2024

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.

Asday avatar Asday commented on September 21, 2024

@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.

jpic avatar jpic commented on September 21, 2024

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.

verngutz avatar verngutz commented on September 21, 2024

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.

Asday avatar Asday commented on September 21, 2024

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.

corinnamk avatar corinnamk commented on September 21, 2024

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.

jpic avatar jpic commented on September 21, 2024

from django-betterforms.

aimestereo avatar aimestereo commented on September 21, 2024

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

@corinnamk

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.

https://github.com/jpic/django-betterforms/blob/40da7eee2a1b1d9d026a16dbe56b1270c0f859cc/betterforms/__init__.py#L1

__version__ = __import__('pkg_resources').get_distribution('django-betterforms').version

from django-betterforms.

BismeetSingh avatar BismeetSingh commented on September 21, 2024

How do I install jpic from git?

from django-betterforms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.