#DRF documentation incorrect?

14 messages · Page 1 of 1 (latest)

teal orchid
#

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

void flax
#

Probably a good idea to link to said documentation 🤔

teal orchid
#

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].

void flax
#

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?

teal orchid
#

WARNING: dj-rest-auth 7.0.0 does not provide the extra 'with_social'

#

stands out

teal orchid
teal orchid
void flax
#

Weird... but it now did install both with dj-rest-auth 7.0.0?