Vinoth
Internal Server Error: /add
Traceback (most recent call last):
  File "/Users/vinothk4/PycharmProjects/WebProject/env1/lib/python3.8/site-packages/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "/Users/vinothk4/PycharmProjects/WebProject/env1/lib/python3.8/site-packages/django/core/handlers/base.py", line 115, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/Users/vinothk4/PycharmProjects/WebProject/env1/lib/python3.8/site-packages/django/core/handlers/base.py", line 113, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/Users/vinothk4/PycharmProjects/WebProject/hackfest/testapp/views.py", line 24, in add
    client.connect("XX.XX.XX.XX", "XXXX", "XXXXX", "2222")
  File "/Users/vinothk4/PycharmProjects/WebProject/env1/lib/python3.8/site-packages/paramiko/client.py", line 340, in connect
    to_try = list(self._families_and_addresses(hostname, port))
  File "/Users/vinothk4/PycharmProjects/WebProject/env1/lib/python3.8/site-packages/paramiko/client.py", line 203, in _families_and_addresses
    addrinfos = socket.getaddrinfo(
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/socket.py", line 914, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 8] nodename nor servname provided, or not known
[04/Nov/2019 12:10:17] "POST /add HTTP/1.1" 500 79087
Muflone
I've a GenericIPAddress field in a model but Django-Admin sorts it in alphabetical order, resulting for example in 192.168.0.10 shown before 192.168.10.2
Is there some way to define a custom order in Python code?
Subclassing the Changelist I can obtain the qs to sort but I'm unable to sort it.
Anonymous
There are currently some common methods for connecting mobgodb to Django and there is always a risk.
Django should support mongodb as well as other databases (sql, mysql, postgresql, ...) to make it easier for users to use