Installation#
Requirements#
Python 3.7 to 3.10 supported.
Django 3.2 to 4.0 supported.
Installation#
Install with pip:
python -m pip install django-invitations
Add “django.contrib.sites” and “invitations” to INSTALLED_APPS
INSTALLED_APPS = [ ... "django.contrib.sites", "invitations", ... ]
Note
Allauth support
For allauth support invitations
must come after allauth
in the INSTALLED_APPS
Make sure you have SITE_ID defined in settings:
... SITE_ID = 1 ...
Add invitations urls to your urlpatterns:
urlpatterns = [ ... path("invitations/", include('invitations.urls', namespace='invitations')), ... ]
Run migrations
python manage.py migrate