2017-07-06 8 views
0

を持っていないユーザーが登録したいとき、私はこのエラーを得た:「設定」オブジェクトには属性「RECAPTCHA_SECRET_KEY」

AttributeError at /accounts/register/' 

'Settings' object has no attribute 'RECAPTCHA_SECRET_KEY' 

Request Method: POST 
Request URL: http://127.0.0.1:8009/accounts/register/ 

Django Version: 1.11.3 
Exception Type: AttributeError 
Exception Value:  
'Settings' object has no attribute 'RECAPTCHA_SECRET_KEY' 

Exception Location: /home/ali/bestoon/.venv/local/lib/python2.7/site-packages/django/conf/__init__.py in __getattr__, line 57 

Python Executable: /home/ali/bestoon/.venv/bin/python 

Python Version: 2.7.12 
Python Path:  
['/home/ali/bestoon/bestoon', 
'/home/ali/bestoon/.venv/lib/python2.7', 
'/home/ali/bestoon/.venv/lib/python2.7/plat-x86_64-linux-gnu', 
'/home/ali/bestoon/.venv/lib/python2.7/lib-tk', 
'/home/ali/bestoon/.venv/lib/python2.7/lib-old', 
'/home/ali/bestoon/.venv/lib/python2.7/lib-dynload', 
'/usr/lib/python2.7', 
'/usr/lib/python2.7/plat-x86_64-linux-gnu', 
'/usr/lib/python2.7/lib-tk', 
'/home/ali/bestoon/.venv/local/lib/python2.7/site-packages', 
'/home/ali/bestoon/.venv/lib/python2.7/site-packages'] 
+0

あなたの 'settings.py'の見た目はどうですか? #アプリケーション定義 INSTALLED_APPS = [ 'django.contrib.admin' 'django.contrib.auth' 'django.contrib.contenttypes' : –

+0

はsetting.pyの 部2 @The_Cthulhu_Kid 'django.contrib.sessions'、 'django.contrib.messages'、 'django.contrib.staticfiles'、 'web'、 ] – Hippo

+0

これで十分です=)プロダクションキーではないことを確認してください! –

答えて

0

あなたの設定でRECAPTCHA_SECRET_KEからYが欠落しています。

関連する問題