manjurulhoque/django-job-portal

What is use for Graphene in this project?

Closed this issue · 5 comments

I'm constantly getting some errors with Graphene. First, it was not working with Django 4. I had to downgrade Django to 3.2.

Now I'm getting the following error.

File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 843, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/Users/mukesh/Projects/hunch/django-job-portal/.venv/lib/python3.8/site-packages/graphene_django/__init__.py", line 1, in <module>
  from .types import (
File "/Users/mukesh/Projects/hunch/django-job-portal/.venv/lib/python3.8/site-packages/graphene_django/types.py", line 9, in <module>
  from .converter import convert_django_field_with_choices
File "/Users/mukesh/Projects/hunch/django-job-portal/.venv/lib/python3.8/site-packages/graphene_django/converter.py", line 8, in <module>
  from graphene.utils.str_converters import to_camel_case, to_const
ImportError: cannot import name 'to_const' from 'graphene.utils.str_converters' (/Users/mukesh/Projects/hunch/django-job-portal/.venv/lib/python3.8/site-packages/graphene/utils/str_converters.py)

If I remove the Graphene will the project work?

I have already upgraded Django to 4.0.1. please take a new pull and install packages by pip install -r requirements.txt

Also, I am trying to implement GraphQL in this project.

Removing settings won't work.

b6e68d3

This is the last commit I didn't use graphene.