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
DJHM
Hello, anyone had been working with face recognition? Can recommend links with examples?
Anonymous
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
https://stackoverflow.com/questions/46264064/paramiko-ssh-connection-error-socket-gaierror-errno-8-nodename-nor-servname
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.
Vinoth
Still I'm getting the error
cj
Vinoth wanted to post this long code: https://hastebin.com/inupabituj
cj
please, use a code-sharing service
Vinoth
Ok sure..
Day
please, use a code-sharing service
Hey CJ is it important to collect the data for the user who review the website,, like the IP address and there location,,?
Ghorz
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
You're not online, your app need Internet access. Please don't paste code here use pastebin
Vinoth
You're not online, your app need Internet access. Please don't paste code here use pastebin
Thanks for the reply. I am running on my Mac. Individually python SSH works..problem Django. Am i missing any config
Vinoth
logs@ pastebin.com/DMx0qskn
Manish
Is it ok to use conditional import in init.py?
Vinoth
Is there any working SSH examples with Django?
Vinoth
I think there is some config errors in my program
Akash
Anyone know any django or non-django cms or site like readthedocs to quickly and professionally create product documentation/How tos (not code documentation) for your SaaS products.
Akash
Sphinx
I am actually making a how to docs for end users. The actual source code is in a private repo and I will simply create a new public repo just for docs . Is it suitable for this use case? Doing docs for the first time.
Rajat
Can anyone tell me any source through which i can learn how to make api in python
Rajat
I want django rest api
Anonymous
I want django rest api
Then search for Django REST Framework
Rajat
Can you suggest me any udemy course
Anonymous
Can you suggest me any udemy course
The docs is better than any udemy course.
Rajat
Ok
Anonymous
Can you suggest me any udemy course
https://www.django-rest-framework.org/tutorial/quickstart/
Rajat
Thank you sir...
Sultonbek Ikromov
I want django rest api
the thing that I want right now
Ajay
How can I sell my django projects to anyone?
Денис
How can I sell my django projects to anyone?
Hire a marketing manager and let him do this. Don't screw your brain with this s**t. Get good at programming.
Денис
also freelance platforms will help as well
Anonymous
Why doesn't Django officially support mongodb?
Anonymous
What is the persistent way to use mongodb database in Django?
Maksim
Usual way
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
Ghorz
Why doesn't Django officially support mongodb?
You said so. Search engine is your best friend. Django connects with mongodb via djond
Ghorz
Djondo
Ghorz
Search it
Edna
Is it possible to implement ussd in django?
Aza
Djondo
*djongo
Ghorz
Ghorz
https://nesdis.github.io/djongo/
Ghorz
https://www.freecodecamp.org/news/using-django-with-mongodb-by-adding-just-one-line-of-code-c386a298e179/
John
Just a question, can i still use token in my login even though im not using django rest api?. .
Anonymous
https://nesdis.github.io/djongo/
Yes, yes it I use always
Anonymous
But always not working properly And errors arise
Ghorz
You may not see it, it's in django authentication table
John
Yes, login has token
Ok sir. Thank you! ☝️
Ghorz
So your logic is important
Ghorz
Ok sir. Thank you! ☝️
You don't need to assign token, it's already there
Ghorz
But more relevant in an api
Anonymous
Remember mongo is nosql
Does Django in the future, a connection method internal, such as other databases(postgresql , mysql) for the mongodb provide not give?
Ghorz
Does Django in the future, a connection method internal, such as other databases(postgresql , mysql) for the mongodb provide not give?
Postgresql and Mysql are relationship based database, mongo is a Nosql database, it depends on the usecase
Денис
Is it possible to implement ussd in django?
if you mean this, I have no idea why you might need this. Unless you implement your own cellular operator service.
Anonymous
Ne
Anonymous
Hello. New to django here! Anyone with an in depth knowledge on django sessions?
Anonymous
take a screenshot please
Mirco
It's forbidden
Андрей
Posting media isn't allowed
Doragonsureiyā
Posting media isn't allowed
Read the rules before any activity: @PythonRules
Mirco
Read again
Андрей
yep)
Mirco
And you will know how to proceed
Anonymous
I skipped that...my bad!