How can I disable / register / register at django-registration?

[Newbie] I tried disabling django-registration:

1.registration_allowed () I saw this method in the original register_allowed () / registration / views, but I don’t know if I need it or how to use it.

Maybe I need a variable on settings.py

2. Commenting lines Commenting /registration/backends/urls.py of registration URLs (only lines regarding registration)

But this breaks the urls, so any idea?

Thank!

+5
source share
2 answers

Registration actually includes a setting for this type of REGISTRATION_OPEN. Just set it to false in the settings.py file and include the registration / registration_closed.html template.

+9

: urls.py , URL. , , , (.. ).

: .

+2

All Articles