DJango Deployment

2010-06-01 Thread PM
Hi ,
   I am new to Django.

   I have developed a tool using
Python CGI. I have been successfully deploying it using Apache Tomcat
5.5, from cgi/bin directory. After knowing the benefits of Django I
have planned to complete the remaining modules using Django. I
successfully configured deploying Django using Apache 2.2 web server
using mod_python.so file. Now the tool is running on two different
servers, the older Python CGI scripts are executed perfectly at port
8080 by Tomcat, but at port 80 ( Apache webserver) whenever a Django
project is requested through ajax without loading the page again, the
server times out showing 301 Moved Permanently error. What could be
the reason and remedy for the problem ?. On keeping a href link that
points to a Django project successfully reloads the page and shows the
response as a new page.

Should I be using Jython to deploy Django in Tomcat ?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Django mailing [Errno 97] Address family not supported by protocol

2020-01-15 Thread PM Rakibul Hasan
My Error: 
OSError at /send_email/ 

[Errno 97] Address family not supported by protocol

Request Method: GET 
Request URL: 
https://www.nimikh.com/send_email/?csrfmiddlewaretoken=vynGxVc4pHoAYcIEu3K4h6RYRbAJ4JwbXiFSG8rUFzg8N19rXtZpkuniq91NKalv&name=Rakib&email=rakibpathan07%40gmail.com&message=vdfhhf
 
Django Version: 2.2.7 
Exception Type: OSError 
Exception Value: 

[Errno 97] Address family not supported by protocol

Exception Location: /opt/alt/python36/lib64/python3.6/socket.py in 
__init__, line 144 
Python Executable: /home/mdosw63339bt/virtualenv/mysite/3.6/bin/python3.6 
Python Version: 3.6.8 
Python Path: 

['/home/mdosw63339bt/mysite',
 '/opt/passenger-5.3.7-8.el6.cloudlinux/src/helper-scripts',
 '/home/mdosw63339bt/virtualenv/mysite/3.6/lib64/python36.zip',
 '/home/mdosw63339bt/virtualenv/mysite/3.6/lib64/python3.6',
 '/home/mdosw63339bt/virtualenv/mysite/3.6/lib64/python3.6/lib-dynload',
 '/opt/alt/python36/lib64/python3.6',
 '/opt/alt/python36/lib/python3.6',
 '/home/mdosw63339bt/virtualenv/mysite/3.6/lib/python3.6/site-packages']


Wed, 15 Jan 2020 06:56:56 +






EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = 'mym...@gmail.com'
EMAIL_HOST_PASSWORD = 'Password'
EMAIL_PORT = 587

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/597edf4c-175c-4ebd-9017-933cfd54af7e%40googlegroups.com.