'Facing this issue with creating a superuser

While trying to execute this command:

(venv) sreekarsiddula@Sreekars-MacBook-Air bidgala % /Users/sreekarsiddula/piapps/venv/bin/python3 manage.py createsuperuser

I get the following error:

{}
/Users/sreekarsiddula/piapps/venv/lib/python3.9/site-packages/django/db/models/fields/__init__.py:1365: RuntimeWarning: DateTimeField UserInfo.verification_expiry received a naive datetime (2022-02-01 13:46:28.114225) while time zone support is active.
  warnings.warn("DateTimeField %s received a naive datetime (%s)"
{}

ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)

During handling of the above exception, another exception occurred:

urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)>

During handling of the above exception, another exception occurred:

T
  File "/Users/sreekarsiddula/piapps/venv/lib/python3.9/site-packages/django/dispatch/dispatcher.py", line 174, in <listcomp>
    (receiver, receiver(signal=self, sender=sender, **named))
  File "/Users/sreekarsiddula/piapps/bidgala/bidgala/accounts/views.py", line 391, in user_saved
    raise Exception("Unable to process the request")
Exception: Unable to process the request


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source