Re: Python 2.7 + Django 1.4 + apache 2.4
On 16/07/2013 9:59pm, Robert Jonathan Šimon wrote: I have one question what must be in wsgi.py? This is mine ... which works for Django 1.5 from __future__ import unicode_literals # -*- coding: utf-8 -*- import os import sys from django.core.wsgi import get_wsgi_application project = "xxx" srvroot = "/var/www" site_root = os.path.join(srvroot, project) if site_root not in sys.path: sys.path.insert(0, site_root) os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{0}.settings".format(project)) os.environ.setdefault("PYTHON_EGG_CACHE", site_root) application = get_wsgi_application() # assumes /var/www/{project}/{project}/settings.py Dne úterý, 16. Ä ervence 2013 1:11:48 UTC+2 maiquel napsal(a): How to set up django on Apache I'm using django 1.4 and apache 2.4 and Python 2.7 My configuration is well in httpd.conf WSGIScriptAlias ​​/ C :/ xampp / htdocs / My_blog / My_blog / wsgi.py WSGIPythonPath / C :/ xampp / htdocs / My_blog / Order deny, allow Allow from all Does anyone know what is wrong? -- 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 post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out. -- 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 post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.
Re: Python 2.7 + Django 1.4 + apache 2.4
Take a look here: https://nemec.lu/en/how-to/~django-nginx-uwsgi-ssl It is not apache, but nginx + uwsgi app + django wsgi.py is generated automatically by manage.py startproject example is here: https://github.com/lunemec/wysiwyg/blob/master/wysiwyg/wsgi.py Note: this is the app that runs under the hood of http://nemec.lu so it is working... On 07/16/2013 01:59 PM, Robert Jonathan Šimon wrote: I have one question what must be in wsgi.py? Dne úterý, 16. července 2013 1:11:48 UTC+2 maiquel napsal(a): How to set up django on Apache I'm using django 1.4 and apache 2.4 and Python 2.7 My configuration is well in httpd.conf WSGIScriptAlias / C :/ xampp / htdocs / My_blog / My_blog / wsgi.py WSGIPythonPath / C :/ xampp / htdocs / My_blog / Order deny, allow Allow from all Does anyone know what is wrong? -- 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 post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out. -- 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 post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.
Re: Python 2.7 + Django 1.4 + apache 2.4
I have one question what must be in wsgi.py? Dne úterý, 16. července 2013 1:11:48 UTC+2 maiquel napsal(a): > > How to set up django on Apache > > I'm using django 1.4 > and apache 2.4 > and Python 2.7 > My configuration is well > > in httpd.conf > > WSGIScriptAlias / C :/ xampp / htdocs / My_blog / My_blog / wsgi.py > WSGIPythonPath / C :/ xampp / htdocs / My_blog / > > > > Order deny, allow > Allow from all > > > > Does anyone know what is wrong? > -- 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 post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.
Re: Python 2.7 + Django 1.4 + apache 2.4
On 16/07/2013 12:25pm, carlos wrote: where is the error ?? On Mon, Jul 15, 2013 at 5:11 PM, maiquel> wrote: How to set up django on Apache I'm using django 1.4 and apache 2.4 and Python 2.7 My configuration is well in httpd.conf There are spaces everywhere on the next 2 lines and I don't know what Apache might think of them. Check below for a working config. WSGIScriptAlias / C :/ xampp / htdocs / My_blog / My_blog / wsgi.py WSGIPythonPath / C :/ xampp / htdocs / My_blog / Order deny, allow Allow from all Does anyone know what is wrong? DocumentRoot /var/www/xxx/htdocs/ ServerName xxx.xxx.com.au ServerAdmin webmas...@xxx.com.au HostnameLookups Off UseCanonicalName Off ErrorLog ${APACHE_LOG_DIR}/xxx-error.log CustomLog ${APACHE_LOG_DIR}/xxx-access.log combined Alias /robots.txt /var/www/static/xxx/robots/robots.txt Alias /favicon.ico /var/www/static/xxx/img/xxx.ico # lock the public out AllowOverride None Order deny,allow Deny from all # serve uploaded media from here AllowOverride None Order deny,allow Allow from all # serve static stuff from here AllowOverride None Order deny,allow Allow from all Alias /media/ /var/www/media/xxx/ Alias /static/ /var/www/static/xxx/ #Alias /tiny_mce/ /var/www/static/xxx/js/tiny_mce/ Alias /jquery/ /var/www/static/xxx/js/jquery/ # now let the public access anything here because it holds nothing AllowOverride None Order deny,allow Allow from all WSGIScriptAlias / /var/www/xxx/xxx/xxx.wsgi Order deny,allow Allow from all -- 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 post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.
Re: Python 2.7 + Django 1.4 + apache 2.4
where is the error ?? On Mon, Jul 15, 2013 at 5:11 PM, maiquelwrote: > How to set up django on Apache > > I'm using django 1.4 > and apache 2.4 > and Python 2.7 > My configuration is well > > in httpd.conf > > WSGIScriptAlias / C :/ xampp / htdocs / My_blog / My_blog / wsgi.py > WSGIPythonPath / C :/ xampp / htdocs / My_blog / > > > > Order deny, allow > Allow from all > > > > Does anyone know what is wrong? > > -- > 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 post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- 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 post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.
Python 2.7 + Django 1.4 + apache 2.4
How to set up django on Apache I'm using django 1.4 and apache 2.4 and Python 2.7 My configuration is well in httpd.conf WSGIScriptAlias / C :/ xampp / htdocs / My_blog / My_blog / wsgi.py WSGIPythonPath / C :/ xampp / htdocs / My_blog / Order deny, allow Allow from all Does anyone know what is wrong? -- 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 post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.