Closed azmatsiddique closed 4 years ago
i fix the issue
from .base import *
DEBUG = True ALLOWED_HOSTS = ['127.0.0.1']
INSTALLED_APPS += [ 'debug_toolbar' ]
MIDDLEWARE += ['debug_toolbar.middleware.DebugToolbarMiddleware', ] EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
DEBUG_TOOLBAR_PANELS = [ 'debug_toolbar.panels.versions.VersionsPanel', 'debug_toolbar.panels.timer.TimerPanel', 'debug_toolbar.panels.settings.SettingsPanel', 'debug_toolbar.panels.headers.HeadersPanel', 'debug_toolbar.panels.request.RequestPanel', 'debug_toolbar.panels.sql.SQLPanel', 'debug_toolbar.panels.staticfiles.StaticFilesPanel', 'debug_toolbar.panels.templates.TemplatesPanel', 'debug_toolbar.panels.cache.CachePanel', 'debug_toolbar.panels.signals.SignalsPanel', 'debug_toolbar.panels.logging.LoggingPanel', 'debug_toolbar.panels.redirects.RedirectsPanel', ]
def show_toolbar(request): return True
DEBUG_TOOLBAR_CONFIG = { 'INTERCEPT_REDIRECTS': False, 'SHOW_TOOLBAR_CALLBACK': show_toolbar }
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), } }
STRIPE_PUBLIC_KEY = config('STRIPE_TEST_PUBLIC_KEY') STRIPE_SECRET_KEY = config('STRIPE_TEST_SECRET_KEY')
Environment:
Request Method: POST Request URL: http://127.0.0.1:8000/accounts/signup/
Django Version: 2.2.14 Python Version: 3.7.6 Installed Applications: ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites', 'allauth', 'allauth.account', 'allauth.socialaccount', 'crispy_forms', 'django_countries', 'core', 'debug_toolbar'] Installed Middleware: ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'debug_toolbar.middleware.DebugToolbarMiddleware']
Traceback:
File "/opt/anaconda3/lib/python3.7/site-packages/django/core/handlers/exception.py" in inner
File "/opt/anaconda3/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
File "/opt/anaconda3/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
File "/opt/anaconda3/lib/python3.7/site-packages/django/views/generic/base.py" in view
File "/opt/anaconda3/lib/python3.7/site-packages/django/utils/decorators.py" in _wrapper
File "/opt/anaconda3/lib/python3.7/site-packages/django/views/decorators/debug.py" in sensitive_post_parameters_wrapper
File "/opt/anaconda3/lib/python3.7/site-packages/allauth/account/views.py" in dispatch
File "/opt/anaconda3/lib/python3.7/site-packages/allauth/account/views.py" in dispatch
File "/opt/anaconda3/lib/python3.7/site-packages/allauth/account/views.py" in dispatch
File "/opt/anaconda3/lib/python3.7/site-packages/django/views/generic/base.py" in dispatch
File "/opt/anaconda3/lib/python3.7/site-packages/allauth/account/views.py" in post
File "/opt/anaconda3/lib/python3.7/site-packages/allauth/account/views.py" in form_valid
File "/opt/anaconda3/lib/python3.7/site-packages/allauth/account/utils.py" in complete_signup
File "/opt/anaconda3/lib/python3.7/site-packages/allauth/account/utils.py" in perform_login
File "/opt/anaconda3/lib/python3.7/site-packages/allauth/account/utils.py" in send_email_confirmation
File "/opt/anaconda3/lib/python3.7/site-packages/allauth/account/models.py" in send_confirmation
File "/opt/anaconda3/lib/python3.7/site-packages/allauth/account/models.py" in send
File "/opt/anaconda3/lib/python3.7/site-packages/allauth/account/adapter.py" in send_confirmation_mail
File "/opt/anaconda3/lib/python3.7/site-packages/allauth/account/adapter.py" in send_mail
File "/opt/anaconda3/lib/python3.7/site-packages/django/core/mail/message.py" in send
File "/opt/anaconda3/lib/python3.7/site-packages/django/core/mail/backends/smtp.py" in send_messages
File "/opt/anaconda3/lib/python3.7/site-packages/django/core/mail/backends/smtp.py" in open
File "/opt/anaconda3/lib/python3.7/smtplib.py" in init
File "/opt/anaconda3/lib/python3.7/smtplib.py" in connect
File "/opt/anaconda3/lib/python3.7/smtplib.py" in _get_socket
File "/opt/anaconda3/lib/python3.7/socket.py" in create_connection
File "/opt/anaconda3/lib/python3.7/socket.py" in create_connection
Exception Type: ConnectionRefusedError at /accounts/signup/ Exception Value: [Errno 61] Connection refused