Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ricardochaves/django_invisible_recaptcha_admin
https://github.com/ricardochaves/django_invisible_recaptcha_admin
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ricardochaves/django_invisible_recaptcha_admin
- Owner: ricardochaves
- License: bsd-3-clause
- Created: 2017-08-04T01:13:51.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-30T20:15:51.000Z (over 6 years ago)
- Last Synced: 2024-10-08T14:56:46.103Z (about 1 month ago)
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Django Invisible Recaptcha Admin
[![PyPI version](https://badge.fury.io/py/django-invisible-recaptcha-admin.svg)](https://badge.fury.io/py/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 pathurlpatterns = [
#url(r'^admin/', include(admin.site.urls)),path('admin/', my_admin.urls),
]
```Add [keys](https://www.google.com/recaptcha/) 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](http://www.python.org/dev/peps/pep-0008/)