Giter VIP home page Giter VIP logo

Comments (5)

matthewhegarty avatar matthewhegarty commented on September 22, 2024

Can you give any more information to go on

  • Does it work in v4.0.1 or v3.3.8?
  • You can enable logging at debug level to see if anything is raised
  • Can you step through with a debugger to identify the issue (this will be the quickest and best way to resolve)
  • Can you reproduce in the example app?

from django-import-export.

nortigo avatar nortigo commented on September 22, 2024

Hi @matthewhegarty,

Thank you for your help.

I forgot to explain bit of context. I apologize.

We have an existing project which was working fine with Django==3.1.14 and django-import-export==2.7.1.

We decided to upgrade python to 3.11.2 and then Django==4.2.13. I had to make some adjustment with our project since I also updated django-import-export. Then, I cannot see the resource(s) in the dropdown.

Does it work in v4.0.1 or v3.3.8?

If was working with 2.7.1 but not since the upgrade. The problem remained with 4.0.1.

You can enable logging at debug level to see if anything is raised

Logging is already enabled. No error so far.

Can you step through with a debugger to identify the issue (this will be the quickest and best way to resolve)

I have checked resources param in ImportForm.__init__ and it does contain the resource. I will investigate further to see where the information is lost.

Can you reproduce in the example app?

I tried but I have this error: LookupError: setuptools-scm was unable to detect version

from django-import-export.

matthewhegarty avatar matthewhegarty commented on September 22, 2024

ok I would suggest to go from django-import-export 2.7.1 to 3.3.8 first, because I think the leap from v2 to v4 might cause you some confusing problems (due to API changes etc). Then when you have everything working with v3, you can upgrade to v4 (guide is here).

from django-import-export.

nortigo avatar nortigo commented on September 22, 2024

@matthewhegarty I found the problem. It was a stupid mistake from my part. I overrode the import.html back then and I totally forgot about it. After removing it, it worked again.

I appreciate your time to help me. Thank you :)

from django-import-export.

matthewhegarty avatar matthewhegarty commented on September 22, 2024

ok - thanks for the update, glad you got it working 👍

from django-import-export.

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.