There is a project that has been sent to me on which I will work on it.
I created an environment to upload the project and in design I had the requeriments where I circled it.
But when I run the command python manager.py runserver
it is giving me the error:
Exception Value: can not import name ReCaptchaField
The full error follows below, as you can see it is in INSTALLED_APPS
Django Version: 1.8.15
Python Version: 2.7.12
Installed Applications:
('django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.sites',
'django.contrib.flatpages',
'sorl.thumbnail',
'grappelli.dashboard',
'grappelli',
'captcha',
'axes',
'rest_framework',
'rest_framework.authtoken',
'audit')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'django.middleware.security.SecurityMiddleware',
'django.middleware.http.ConditionalGetMiddleware',
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
'django.middleware.cache.UpdateCacheMiddleware',
'django.middleware.cache.FetchFromCacheMiddleware',
'django.middleware.gzip.GZipMiddleware',
'axes.middleware.FailedLoginMiddleware',
'Audit.CurrentRequestUserMiddleware')
File "/srv/www/vhosts/project/project/interfacepub/forms.py" in
from captcha.fields import ReCaptchaField
Exception Type: ImportError at / Admin
Exception Value: Can not import name ReCaptchaField
Of course I looked for this error on the internet and all the solutions that are there did not solve me. I made the installation via pip
tried to put in the environment variables and continued giving error:
export PYTHONPATH = $ PYTHONPATH / srv / www / vhosts / project / project / lib / python2.7 / site-packages /
Who knows some way to solve. Thank you.