jazzband / django-invitations

Generic invitations app for Django
GNU General Public License v3.0
559 stars 166 forks source link

AttributeError at /admin/invitations/invitation/add/ #215

Closed tochimclaren closed 1 year ago

tochimclaren commented 1 year ago

I am getting this error 'NoneType' object has no attribute 'get_host' I am on django version 4.2 This happens both in django admin and user defined view.

valberg commented 1 year ago

Hi @tochimclaren

Can you provide a traceback and maybe some code for how you are setting up django-invitations in your project?

tochimclaren commented 1 year ago

Hi @tochimclaren

Can you provide a traceback and maybe some code for how you are setting up django-invitations in your project?

I was able to fix the error it was a mistake on my own path. I forgot to install "django.contrib.sites" in INSTALLED_APPS