django-radius
django-radius copied to clipboard
Work on Windows
Is there a work around for this package to work on Windows servers? Keep getting the poll error
I am also getting same error and please can help?
Error Message
Traceback (most recent call last): File "C:\Python38-32\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Python38-32\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Python38-32\lib\site-packages\django\core\handlers\base.py", line 113, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "D:\webframWork\junosspacepolicy\views.py", line 49, in homepage user = authenticate(request, username=username, password=password) File "C:\Python38-32\lib\site-packages\django\contrib\auth_init.py", line72, in authenticate user = backend.authenticate(request, **credentials) File "C:\Python38-32\lib\site-packages\radiusauth\backends\radius.py", line 209, in authenticate result = self._radius_auth(server, username, password) File "C:\Python38-32\lib\site-packages\radiusauth\backends\radius.py", line 170, in _radius_auth client = self._get_client(server) File "C:\Python38-32\lib\site-packages\radiusauth\backends\radius.py", line 94, in _get_client return Client( File "C:\Python38-32\lib\site-packages\pyrad\client.py", line 56, in init self._poll = select.poll() AttributeError: module 'select' has no attribute 'poll' [2020-06-10 23:38:51] ERROR "POST /apiportal/homepage/ HTTP/1.1" 500 91793
Configuration on settings.py
AUTHENTICATION_BACKENDS = (
'radiusauth.backends.RADIUSBackend',
'django.contrib.auth.backends.ModelBackend',
)
RADIUS_SERVER = '10.1.1.1' RADIUS_PORT = 1812 RADIUS_SECRET = 'abcd123'
Thanks in advance..!
I have the same error. I read the code and if I understood correct - win32 platform isn't implemented.