django - how to resolve You don't have permission to access / on this server -


hi need in integrating django apache , mod_wsgi on centos6. getting following error every time---"forbidden don't have permission access / on server." django project path= /home/mchauras/esapp/eswebsite apache version 2.2.15 .conf file looks this----

<virtualhost *:80>     documentroot /home/mchauras/esapp/eswebsite/     alias /static /home/mchauras/esapp/eswebsite/esapp/static     <directory /home/mchauras/esapp/eswebsite/esapp/static>         options indexes followsymlinks includes execcgi         allowoverride none         order deny,allow         allow     </directory>      <directory /home/mchauras/esapp/eswebsite/eswebsite>         <files wsgi.py>             options indexes followsymlinks includes execcgi             allowoverride none             order deny,allow             allow         </files>     </directory>      wsgidaemonprocess esapp python-path=/home/user/myproject:/home/mchauras/esapp/eswebsite/myvenv/lib/python3.5/site-packages/     wsgiprocessgroup esapp     wsgiscriptalias / /home/mchauras/esapp/eswebsite/eswebsite/wsgi.py     errorlog /home/mchauras/esapp/eswebsite/error.log     customlog /home/mchauras/esapp/eswebsite/access.log combined </virtualhost> 

my wsgi.py file this---

import os import sys django.core.wsgi import get_wsgi_application sys.path.append('/home/mchauras/esapp/eswebsite') os.environ.setdefault("django_settings_module", "eswebsite.settings")  application = get_wsgi_application() 

its looks did not login administrator user or maybe need changes , enable file permission in path


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -