Skip to main content

django-sp PyPi license

Pypi PyPi status PyPi version PyPi python version PyPi downloads PyPi downloads PyPi downloads

$ pip install django-sp

GitHub GitHub release GitHub release

Test codecov.io

Report Issues with waffle.io

Run Example Project

$ git clone https://github.com/DLRSP/example -b django-sp
$ cd example
$ python manage.py runserver

Now you browser the app @ http://127.0.0.1:8000

from django.contrib.auth import get_user_model User = get_user_model() user = User.objects.get(username="dlrsp.dev") user.is_staff = True user.is_admin = True user.is_superuser = True user.save()

Get current user model from settings

from django.contrib.auth import get_user_model User = get_user_model() user = User.objects.create_user('myemail@crazymail.com', 'mypassword') user.first_name = 'Tyrone' user.last_name = 'Citizen' user.save()

from django.contrib.auth import get_user_model User = get_user_model() user = User.objects.create_user('myemail@crazymail.com', 'mypassword', 'myemail') user.first_name = 'Tyrone' user.last_name = 'Citizen' user.save()

Error

ERROR 2023-12-29 13:19:35,275 log 1728326 139722162782720 Internal Server Error: /it/sp/complete/google-oauth2/ Traceback (most recent call last): File "/srv/https/horoscopus/venv/lib64/python3.9/site-packages/django/core/handlers/exception.py", line 55, in inner response = get_response(request) File "/srv/https/horoscopus/venv/lib64/python3.9/site-packages/django/core/handlers/base.py", line 197, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/srv/https/horoscopus/venv/lib64/python3.9/site-packages/django/views/decorators/cache.py", line 62, in _wrapper_view_func response = view_func(request, *args, **kwargs) File "/srv/https/horoscopus/venv/lib64/python3.9/site-packages/django/views/decorators/csrf.py", line 56, in wrapper_view return view_func(*args, **kwargs) File "/srv/https/horoscopus/venv/lib64/python3.9/site-packages/social_django/utils.py", line 49, in wrapper return func(request, backend, *args, **kwargs) File "/srv/https/horoscopus/venv/lib64/python3.9/site-packages/social_django/views.py", line 31, in complete return do_complete( File "/srv/https/horoscopus/venv/lib64/python3.9/site-packages/social_core/actions.py", line 49, in do_complete user = backend.complete(user=user, *args, **kwargs) File "/srv/https/horoscopus/venv/lib64/python3.9/site-packages/social_core/backends/base.py", line 39, in complete return self.auth_complete(*args, **kwargs) File "/srv/https/horoscopus/venv/lib64/python3.9/site-packages/social_core/utils.py", line 253, in wrapper return func(*args, **kwargs) File "/srv/https/horoscopus/venv/lib64/python3.9/site-packages/social_core/backends/oauth.py", line 408, in auth_complete state = self.validate_state() File "/srv/https/horoscopus/venv/lib64/python3.9/site-packages/social_core/backends/oauth.py", line 98, in validate_state raise AuthStateMissing(self, "state") social_core.exceptions.AuthStateMissing: Session value state missing. [pid: 1728326|app: 0|req: 2/7] 101.58.43.45 () {58 vars in 2160 bytes} [Fri Dec 29 13:19:34 2023] GET /it/sp/complete/google-oauth2/?state=Kj9FhLkpwVsqBWUkgy3q39RHHNGc4VwQ&code=4%2F0AfJohXn_cVSNiHzqdSvVNFQuNFQfLIqVgevVI_nBnxJr-EgCjQaHURyzbrnbKT6agmlPEg&scope=email+profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile+openid&authuser=0&prompt=none => generated 14583 bytes in 489667 micros (HTTP/2.0 500) 9 headers in 434 bytes (1 switches on core 0) [pid: 1728327|app: 0|req: 5/8] 101.58.43.45 () {54 vars in 1672 bytes} [Fri Dec 29 13:19:35 2023] GET /it/jsi18n/ => generated 8405 bytes in 2761 micros (HTTP/2.0 200) 10 headers in 335 bytes (1 switches on core 0)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_sp-1.23.19.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_sp-1.23.19-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file django_sp-1.23.19.tar.gz.

File metadata

  • Download URL: django_sp-1.23.19.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for django_sp-1.23.19.tar.gz
Algorithm Hash digest
SHA256 d930f71f5f72977c80565b32334bed30ab308d2ce2d84a0641513ce1ce46a330
MD5 989e895653494e7134069037ad3745b4
BLAKE2b-256 14c70c3c15c6d5d33e04b59f9637e1c56b4e55abfe446637c57ba03a2ec45309

See more details on using hashes here.

File details

Details for the file django_sp-1.23.19-py3-none-any.whl.

File metadata

  • Download URL: django_sp-1.23.19-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for django_sp-1.23.19-py3-none-any.whl
Algorithm Hash digest
SHA256 807dfafe077296b627bcf91e135e1ceeae82da5f74580f4911847ba6f173464b
MD5 9bfd18a8bdda84ee20c164bf3b4ad7ca
BLAKE2b-256 00719c650cada497befaf0b8e625a6e5d752fa30b23e2d2ba2f2186ecf4c91ce

See more details on using hashes here.

Release history Release notifications | RSS feed

1.23.27

2 files

1.23.26

2 files

1.23.25

2 files

1.23.24

2 files

1.23.23

2 files

1.23.22

2 files

1.23.21

2 files

1.23.20

2 files

This release

1.23.19 This release

2 files

1.23.18

2 files

1.23.17

2 files

1.23.16

2 files

1.23.15

2 files

1.23.14

2 files

1.23.13

2 files

1.23.12

2 files

1.23.11

2 files

1.23.10

2 files

1.23.9

2 files

1.23.8

2 files

1.23.7

2 files

1.23.6

2 files

1.23.5

2 files

1.23.4

2 files

1.23.3

2 files

1.23.2

2 files

1.23.1

2 files

1.23.0

2 files

1.21.0

2 files

1.17.0

3 files

1.16.0

3 files

1.15.0

3 files

1.14.0

3 files

1.10.0

3 files

1.1.0

3 files

0.17.0

3 files

0.16.0

3 files

0.15.0

3 files

0.14.0

3 files

0.12.0

3 files

0.11.0

3 files

0.6.0

3 files

0.5.1

3 files

0.5

3 files

0.1b3

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page