Comments (5)
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.
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.
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.
@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.
ok - thanks for the update, glad you got it working 👍
from django-import-export.
Related Issues (20)
- delete field and skip_field = False do not seem to work together HOT 2
- `Resource.get_fields()` no longer called outside of tests HOT 1
- Incorrect configuration of `STORAGES`
- Importing AND displaying related models at importing preview HOT 1
- Export fields not shown if ModelField of different name defined in ModelResource HOT 4
- DateWidget render() gives empty string when handling DateTime HOT 1
- Widget ManyToManyWidget cannot find m2m connections HOT 2
- Docs: screenshot page shows duplicate image and not export form
- Handle confirm_form validation errors gracefully HOT 10
- Warn for declared fields not in Meta.fields
- Dataset Import Doesn't Validate Against Model Constraints HOT 2
- Hide resource field when only one resource? HOT 1
- `test_import.py` module is large and can be broken up into smaller modules HOT 1
- Set up `pre-commit.ci`
- `import_id_fields` as foreign key shows Update instead of New HOT 1
- Avoid thousand separators in NumberWidget HOT 3
- Set up ReadTheDocs PR previews? HOT 3
- Create m2m relations with existing data in the Database HOT 1
- Import fails hard for skipped rows HOT 4
- Autogenerated fields and dehydrate methods? HOT 1
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-import-export.