Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with Python 3.11 and Django 4.2 #253

Closed
LizaMary13 opened this issue Oct 20, 2023 · 1 comment
Closed

Compatibility with Python 3.11 and Django 4.2 #253

LizaMary13 opened this issue Oct 20, 2023 · 1 comment

Comments

@LizaMary13
Copy link

LizaMary13 commented Oct 20, 2023

Hi, I am new to fcm-django and am working on a project that had been using Python 3.5, Django 1.11 and fcm-django 0.2.11.
The fcm_send_bulk_message and fcm_send_message functions of the fcm module were used in that project. However on upgrading to Python 3.11 and Django 4.2, and installing latest fcm-django version (2.0.0), it was found that the following error was thrown:

Import "fcm_django.fcm" could not be resolvedPylancereportMissingImports
(module) fcm_django

The line of code that threw this error was:
from fcm_django.fcm import fcm_send_message

My queries are:

  1. Can we use fcm-django version 0.3.11 with Django 4.2 and python 3.11?
  2. If they're not compatible, what is the alternative to this? I cannot find the fcm module in fcm-django versions after 0.3.11. Has it been removed and what are the alternatives that I can follow?
@xtrinch
Copy link
Owner

xtrinch commented Oct 23, 2023

Afraid not. You'll have to upgrade your python version or keep using the old version.

@xtrinch xtrinch closed this as completed Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants