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 /
<Directory C:/xampp/htdocs/meu_blog/meu_blog>
<Files wsgi.py>
Order deny, allow
Allow from all
</ Files>
</ Directory>
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.