Follow this article: https://umar-yusuf.blogspot.com/2020/04/setting-up-django-project-and-app-on.html
don't forget to add 'django.contrib.sites' in INSTALLED_APPS.
Also add ALLOWED_HOST = ['your_domain'].
If there an error site not exist:
Run: python manage.py shell from django.contrib.sites.models import Site Site.objects.create(name='api01.stephenwenceslao.com2', domain='api01.stephenwenceslao.com')
if you encounter missing table set SITE_ID in settings.py and run
python manage.py migrate --run-syncdb
Add new comment