While setting up a DRF project, I noticed that it mentioned if we want social auth, to install DRF with dj-rest-auth[with_social], however, I noticed that this downgrades my dj-rest-auth package greately from 7.0.0 to 1.1.2. Wanted to see if this was normal by asking people who've used it before before I posted it as a bug on their github
#DRF documentation incorrect?
14 messages · Page 1 of 1 (latest)
Probably a good idea to link to said documentation 🤔
The "Registration (optional) part specifically
If you want to enable standard registration process you will need to install django-allauth by using pip install
dj-rest-auth[with_social].
Can't seem to reproduce
$ pip install dj-rest-auth
Collecting dj-rest-auth
Downloading dj-rest-auth-7.0.0.tar.gz (221 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
$ pip install dj-rest-auth[with_social]
Requirement already satisfied: dj-rest-auth[with_social] in ./.venv/lib/python3.12/site-packages (7.0.0)
Collecting django-allauth<0.62.0,>=0.56.0 (from dj-rest-auth[with_social])
$ pip freeze
dj-rest-auth==7.0.0
Django==5.1.2
django-allauth==0.61.1
django-extensions==3.2.3
djangorestframework==3.15.2
What OS / python / Django version are you on?
And can you share the output of pip install?
I get an error saying "missing permissions" when I try to paste the entire output as a file so here's a pastebin: https://pastebin.com/yRkzFq79
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
WARNING: dj-rest-auth 7.0.0 does not provide the extra 'with_social'
stands out
initially I saw the inconsistency when I was using uv pip install -r requirements.in and uv tried to match a compatible version of DRF 7.0.0 with django allauth, and reinstalling it in a new venv with just pip I saw the error above
Windows, Python 3.11.4, latest django
Weird... but it now did install both with dj-rest-auth 7.0.0?