django-job-portal icon indicating copy to clipboard operation
django-job-portal copied to clipboard

What is use for Graphene in this project?

Open muke5hy opened this issue 2 years ago • 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?

muke5hy avatar Jan 18 '22 04:01 muke5hy

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

manjurulhoque avatar Jan 18 '22 05:01 manjurulhoque

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

manjurulhoque avatar Jan 18 '22 05:01 manjurulhoque

I tried with Django 4.0.1 but it looks like Graphene_django is not ready for 4.0.1 yet, even after downgrading Django some other issues comes up. Does current functionality require Graphene? Can we just remove the settings from settings.py for graphene and will work?

On Tue, Jan 18, 2022 at 10:38 AM Manjurul Hoque Rumi < @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/manjurulhoque/django-job-portal/issues/38#issuecomment-1015075369, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEFDFHKZD33OAJV26BJDJDUWTYVPANCNFSM5MGFDBNQ . You are receiving this because you authored the thread.Message ID: @.***>

-- Regards Mukesh Yadav mukeshyadav.com

muke5hy avatar Jan 18 '22 05:01 muke5hy

I don't face any error. did you install from requirements.txt?

On Tue, 18 Jan 2022, 11:40 am Mukesh Yadav, @.***> wrote:

I tried with Django 4.0.1 but it looks like Graphene_django is not ready for 4.0.1 yet, even after downgrading Django some other issues comes up. Does current functionality require Graphene? Can we just remove the settings from settings.py for graphene and will work?

On Tue, Jan 18, 2022 at 10:38 AM Manjurul Hoque Rumi < @.***> wrote:

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

— Reply to this email directly, view it on GitHub < https://github.com/manjurulhoque/django-job-portal/issues/38#issuecomment-1015075369 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AAEFDFHKZD33OAJV26BJDJDUWTYVPANCNFSM5MGFDBNQ

. You are receiving this because you authored the thread.Message ID: @.***>

-- Regards Mukesh Yadav mukeshyadav.com

— Reply to this email directly, view it on GitHub https://github.com/manjurulhoque/django-job-portal/issues/38#issuecomment-1015087819, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADXNHUGJEVD4XTSVOFZW3Q3UWT4LZANCNFSM5MGFDBNQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

manjurulhoque avatar Jan 18 '22 06:01 manjurulhoque

Removing settings won't work.

https://github.com/manjurulhoque/django-job-portal/commit/b6e68d367f377415eac16a89ca91f6d65e3dd6fe

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

manjurulhoque avatar Jan 18 '22 07:01 manjurulhoque