Django Invisible Recaptcha Admin
How do I get set up?
Instale usando PyPI:
pip install django_invisible_recaptcha_admin
Add the app django_invisible_recaptcha_admin
to settings.py
INSTALLED_APPS = (
'django_invisible_recaptcha_admin',
'nocaptcha_recaptcha',
...
)
Add to urls.py
from:
from django_invisible_recaptcha_admin.admin import my_admin
from django.urls import path
urlpatterns = [
#url(r'^admin/', include(admin.site.urls)),
path('admin/', my_admin.urls),
]
Add keys in settings.py
NORECAPTCHA_SITE_KEY = 'SITEKEY'
NORECAPTCHA_SECRET_KEY = 'SECRET_KEY'
Now, in your admin.py
you should use like this:
from django_invisible_recaptcha_admin.admin import my_admin
...
class TODOAdmin(admin.ModelAdmin):
list_display = ['todo']
...
my_admin.register(TODO, TODOAdmin)
To Do
- Create tests
- Organize the code according to the PEP 8