Django Deployment showing list of directory

38 views
Skip to first unread message

sarfaraz ahmed

unread,
May 8, 2017, 6:09:25 AM5/8/17
to django...@googlegroups.com
Hello Guys,

After lot of struggle I understood there is no MOD_WSGI file available for latest version of XAMP which is compiled in VC14. I am not sure how to compile MOD_WSGI with VC 14 so I gave up

Now I downloaded Apache 2.4 compiled in VC9 + Python 2.7.13 on my windows server 2016(AWS instance) I moved my website to this server. Changed firewall setting to accepting incoming traffic and also networking configuration.

Now I am seeing the list of directory and files instead of website.

Here is my wsgi.py file
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
import os
import sys
from django.core.wsgi import get_wsgi_application
sys.path.append('C:\Apache24\htdocs\testarhamcollections\')
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project1.settings")
application = get_wsgi_application()
---------------------------------------------------------------------------------------------------------------------------------------------------------------------


This is conf file for Apache
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
<VirtualHost *:80>
    ServerAdmin ad...@testarhamcollections.com
    DocumentRoot "C:/Apache24/htdocs/testarhamcollections"
    ServerName www.testarhamcollections.com
    ServerAlias testarhamcollections.com
    ErrorLog "C:/Apache24/htdocs/testarhamcollections/logs/testarhamcollections.com-error.log"
    CustomLog "C:/Apache24/htdocs/testarhamcollections/logs/testarhamcollections.com-access.log" common
   
    WSGIScriptAlias / "c:/Apache24/htdocs/testarhamcollections/project1/wsgi.py"
  
    Alias / "c:/Apache24/htdocs/testarhamcollections"
    Alias /static/ "c:/Apache24/htdocs/testarhamcollections/static/"
    Alias /media/ "c:/Apache24/htdocs/testarhamcollections/static/media/"
    <Directory c:/Apache24/htdocs/testarhamcollections/project1>
    <Files wsgi.py>
        Require all granted
    </Files>
    </Directory>
</VirtualHost>
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I checked the error log of website it shows nothing.


--
Thanks with regards,
Sarfaraz Ahmed


Matthew Pava

unread,
May 8, 2017, 9:15:33 AM5/8/17
to django...@googlegroups.com

Hi Sarfaraz,

Here is a compiled version of mod_wsgi for VC14:

http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi

--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAEPJdixr3x3f3v9Kyw%3DtxKZP4wX9i0ZckEsYhaBxmbFzbJ1aEg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

sarfaraz ahmed

unread,
May 8, 2017, 9:22:01 AM5/8/17
to django...@googlegroups.com
forgot to mention I m using python 2.7. If you look at link, there is not mod_wsgi for python 2.7 with VC14

Regards,
Sarfaraz Ahmed

To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.

--
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+unsubscribe@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

For more options, visit https://groups.google.com/d/optout.

Matthew Pava

unread,
May 8, 2017, 9:29:39 AM5/8/17
to django...@googlegroups.com

Ah, I see.  Well, why don’t you upgrade to Python 3.6?  I did that last year and haven’t looked back.

 

To answer your other question, you need to specify WSGIPythonPath outside of your VirtualHost directive in your Apache config.

 

WSGIPythonPath ${project_path};${project_virtualenv};

To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

--

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...@googlegroups.com.




--

Thanks with regards,
Sarfaraz Ahmed

--
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...@googlegroups.com.


To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

sarfaraz ahmed

unread,
May 8, 2017, 10:13:48 AM5/8/17
to django...@googlegroups.com
I am new to python 2.7 and I see python 3.6 is very different from 2.7.

I tried your suggestion. Now my vhost file looks like this

WSGIScriptAlias / c:/Apache24/htdocs/testarhamcollections/project1/wsgi.py
WSGIPythonPath c:/Apache24/htdocs/testarhamcollections


<VirtualHost *:80>
    ServerAdmin ad...@testarhamcollections.com
    DocumentRoot "C:/Apache24/htdocs/testarhamcollections"
    ServerName www.testarhamcollections.com
    ServerAlias testarhamcollections.com
    ErrorLog "C:/Apache24/htdocs/testarhamcollections/logs/testarhamcollections.com-error.log"
    CustomLog "C:/Apache24/htdocs/testarhamcollections/logs/testarhamcollections.com-access.log" common
  
  
    Alias / "c:/Apache24/htdocs/testarhamcollections"

    <Files wsgi.py>
        Require all granted
    </Files>

</VirtualHost>
--------------------------

Still not working



To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.

--

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+unsubscribe@googlegroups.com.




--

Thanks with regards,
Sarfaraz Ahmed

--
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+unsubscribe@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

--
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+unsubscribe@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

For more options, visit https://groups.google.com/d/optout.

Matthew Pava

unread,
May 8, 2017, 10:18:08 AM5/8/17
to django...@googlegroups.com

You need to add the path to the Python executable, which ought to be in your virtual environment for your project.

 

As for the differences between 2.7 and 3.6, I suggest trying to run your code in 3.6 to see if you actually need to make any changes.  They aren’t that different from each other.  The biggest habit I had to change was to use print as a function, basically surrounding the print string in parentheses.

 

From: django...@googlegroups.com [mailto:django...@googlegroups.com] On Behalf Of sarfaraz ahmed
Sent: Monday, May 8, 2017 9:13 AM
To: django...@googlegroups.com
Subject: Re: Django Deployment showing list of directory

 

I am new to python 2.7 and I see python 3.6 is very different from 2.7.

Still not working

 

 

To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

--

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...@googlegroups.com.




--

Thanks with regards,
Sarfaraz Ahmed

--
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...@googlegroups.com.


To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

--
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...@googlegroups.com.


For more options, visit https://groups.google.com/d/optout.




--

Thanks with regards,
Sarfaraz Ahmed

--
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...@googlegroups.com.


To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

sarfaraz ahmed

unread,
May 8, 2017, 10:28:45 AM5/8/17
to django...@googlegroups.com
I would create seperate enviroment and test the same if it runs on python 3.6

You have been very helpful. Thank you so much.

This is how the file looks now. Still not working
----------------------------------------------------------------------------
WSGIScriptAlias / c:/Apache24/htdocs/testarhamcollections/project1/wsgi.py
WSGIPythonPath c:/python27


<VirtualHost *:80>
    ServerAdmin ad...@testarhamcollections.com
    DocumentRoot "C:/Apache24/htdocs/testarhamcollections"
    ServerName www.testarhamcollections.com
    ServerAlias testarhamcollections.com
    ErrorLog "C:/Apache24/htdocs/testarhamcollections/logs/testarhamcollections.com-error.log"
    CustomLog "C:/Apache24/htdocs/testarhamcollections/logs/testarhamcollections.com-access.log" common
  
  
    Alias / "c:/Apache24/htdocs/testarhamcollections"
    <Files wsgi.py>
        Require all granted
    </Files>

</VirtualHost>

To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.

--

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+unsubscribe@googlegroups.com.




--

Thanks with regards,
Sarfaraz Ahmed

--
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+unsubscribe@googlegroups.com.


To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

--
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+unsubscribe@googlegroups.com.


For more options, visit https://groups.google.com/d/optout.




--

Thanks with regards,
Sarfaraz Ahmed

--
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+unsubscribe@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

--
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+unsubscribe@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

For more options, visit https://groups.google.com/d/optout.

Matthew Pava

unread,
May 8, 2017, 10:43:53 AM5/8/17
to django...@googlegroups.com

Let’s review.  This is the configuration directive I had in my first answer your question:

WSGIPythonPath ${project_path};${project_virtualenv};

 

You also moved the WSGIScriptAlias outside the VirtualHost block, which is contrary to what the documentation states. (And it makes sense, if you really think about it.)

 

Please review the mod_wsgi documentation--at least the quick configuration guide:

http://modwsgi.readthedocs.io/en/develop/user-guides/quick-configuration-guide.html

 

It may appear like a strange syntax, but Apache allows us to define variables that we can use throughout the config file.  Use the ${} syntax to use them throughout the config file.

Define project_path c:/Apache24/htdocs/testarhamcollections

Define project_virtualenv C:/python27/Lib/site-packages/

WSGIPythonPath ${project_path};${project_virtualenv};

 

Also, it was my mistake to point to the Python executable.  It is to the site-packages where your dependencies are installed.

 

From: django...@googlegroups.com [mailto:django...@googlegroups.com] On Behalf Of sarfaraz ahmed
Sent: Monday, May 8, 2017 9:28 AM
To: django...@googlegroups.com
Subject: Re: Django Deployment showing list of directory

 

I would create seperate enviroment and test the same if it runs on python 3.6



You have been very helpful. Thank you so much.

This is how the file looks now. Still not working
----------------------------------------------------------------------------
WSGIScriptAlias / c:/Apache24/htdocs/testarhamcollections/project1/wsgi.py
WSGIPythonPath c:/python27

<VirtualHost *:80>
    ServerAdmin ad...@testarhamcollections.com
    DocumentRoot "C:/Apache24/htdocs/testarhamcollections"
    ServerName www.testarhamcollections.com
    ServerAlias testarhamcollections.com
    ErrorLog "C:/Apache24/htdocs/testarhamcollections/logs/testarhamcollections.com-error.log"
    CustomLog "C:/Apache24/htdocs/testarhamcollections/logs/testarhamcollections.com-access.log" common
  
  
    Alias / "c:/Apache24/htdocs/testarhamcollections"
    <Files wsgi.py>
        Require all granted
    </Files>

</VirtualHost>

On 8 May 2017 at 19:46, Matthew Pava <Matthe...@iss.com> wrote:

You need to add the path to the Python executable, which ought to be in your virtual environment for your project.

 

As for the differences between 2.7 and 3.6, I suggest trying to run your code in 3.6 to see if you actually need to make any changes.  They aren’t that different from each other.  The biggest habit I had to change was to use print as a function, basically surrounding the print string in parentheses.

 

To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

--

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...@googlegroups.com.




--

Thanks with regards,
Sarfaraz Ahmed

--
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...@googlegroups.com.


To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

--
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...@googlegroups.com.


For more options, visit https://groups.google.com/d/optout.




--

Thanks with regards,
Sarfaraz Ahmed

--
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...@googlegroups.com.


To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

--
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...@googlegroups.com.


For more options, visit https://groups.google.com/d/optout.




--

Thanks with regards,
Sarfaraz Ahmed

--
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...@googlegroups.com.


To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

sarfaraz ahmed

unread,
May 8, 2017, 11:11:08 AM5/8/17
to django...@googlegroups.com
Thanks for your reply

This is how it looks like after all the changes made. WSGIPythonPath cannot be under virtual host

------------------------------------------------
WSGIPythonPath C:/Python27/Lib/site-packages


<VirtualHost *:80>
    ServerAdmin ad...@testarhamcollections.com
   
    DocumentRoot "C:/Apache24/htdocs/testarhamcollections"
    ServerName www.testarhamcollections.com
    ServerAlias testarhamcollections.com
   
    ErrorLog "C:/Apache24/htdocs/testarhamcollections/logs/testarhamcollections.com-error.log"
    CustomLog "C:/Apache24/htdocs/testarhamcollections/logs/testarhamcollections.com-access.log" common
   
    <Directory c:/Apache24/htdocs/testarhamcollections>
    Require all granted
    </Directory>
   
    WSGIScriptAlias / c:/Apache24/htdocs/testarhamcollections
   
    Alias / "c:/Apache24/htdocs/testarhamcollections"

    <Directory c:/Apache24/htdocs/testarhamcollections/project1>
        <Files wsgi.py>
            Require all granted
        </Files>
    </Directory>   
</VirtualHost>
-----------------------------------------------
Inspite of all this, its still not working..


To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.

--

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+unsubscribe@googlegroups.com.




--

Thanks with regards,
Sarfaraz Ahmed

--
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+unsubscribe@googlegroups.com.


To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

--
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+unsubscribe@googlegroups.com.


For more options, visit https://groups.google.com/d/optout.




--

Thanks with regards,
Sarfaraz Ahmed

--
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+unsubscribe@googlegroups.com.


To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

--
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+unsubscribe@googlegroups.com.


For more options, visit https://groups.google.com/d/optout.




--

Thanks with regards,
Sarfaraz Ahmed

--
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+unsubscribe@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

--
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+unsubscribe@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

For more options, visit https://groups.google.com/d/optout.

Matthew Pava

unread,
May 8, 2017, 11:41:43 AM5/8/17
to django...@googlegroups.com

> This is how it looks like after all the changes made. WSGIPythonPath cannot be under virtual host

That is correct.  I did not intend to imply otherwise.  It is WSGIScriptAlias that belongs under the virtual host.

 

Your configuration does not look the way I suggested.  Please place this outside of your VirtualHost block.

Define project_path c:/Apache24/htdocs/testarhamcollections

Define project_virtualenv C:/python27/Lib/site-packages/

WSGIPythonPath ${project_path};${project_virtualenv};

 

From: django...@googlegroups.com [mailto:django...@googlegroups.com] On Behalf Of sarfaraz ahmed
Sent: Monday, May 8, 2017 10:09 AM
To: django...@googlegroups.com
Subject: Re: Django Deployment showing list of directory

 

Thanks for your reply

To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

--

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...@googlegroups.com.




--

Thanks with regards,
Sarfaraz Ahmed

--
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...@googlegroups.com.


To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

--
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...@googlegroups.com.


For more options, visit https://groups.google.com/d/optout.




--

Thanks with regards,
Sarfaraz Ahmed

--
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...@googlegroups.com.


To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

--
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...@googlegroups.com.


For more options, visit https://groups.google.com/d/optout.




--

Thanks with regards,
Sarfaraz Ahmed

--
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...@googlegroups.com.


To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

--
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...@googlegroups.com.


For more options, visit https://groups.google.com/d/optout.




--

Thanks with regards,
Sarfaraz Ahmed

--
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...@googlegroups.com.


To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

Tom Evans

unread,
May 8, 2017, 1:53:22 PM5/8/17
to django...@googlegroups.com
On Mon, May 8, 2017 at 11:08 AM, sarfaraz ahmed <findsa...@gmail.com> wrote:
> Hello Guys,
> [ .. ]
> This is conf file for Apache
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
> <VirtualHost *:80>
> ServerAdmin ad...@testarhamcollections.com
> DocumentRoot "C:/Apache24/htdocs/testarhamcollections"
> ServerName www.testarhamcollections.com
> ServerAlias testarhamcollections.com
> ErrorLog
> "C:/Apache24/htdocs/testarhamcollections/logs/testarhamcollections.com-error.log"
> CustomLog
> "C:/Apache24/htdocs/testarhamcollections/logs/testarhamcollections.com-access.log"
> common
>
> WSGIScriptAlias /
> "c:/Apache24/htdocs/testarhamcollections/project1/wsgi.py"
>
> Alias / "c:/Apache24/htdocs/testarhamcollections"
> Alias /static/ "c:/Apache24/htdocs/testarhamcollections/static/"
> Alias /media/ "c:/Apache24/htdocs/testarhamcollections/static/media/"

DANGER!

Python/WSGI is not like PHP, the program files should not live in web
accessible directory.
Your WSGI script should not be in a web accessible directory.
The only things that should be in a web accessible directory are your
static htdocs, which are collected to that location by Django using
the command "collectstatic".

Your project files should be OUTSIDE the document root and NOT aliased
into it in any way!


A typical layout should look like so:


c:/DjangoProjects/project_name
├── htdocs
├── logs
├── my_project
│ ├── manage.py
│ ├── my_app1
│ │ ├── __init__.py
│ │ ├── admin.py
│ │ ├── apps.py
│ │ ├── migrations
│ │ │ └── __init__.py
│ │ ├── models.py
│ │ ├── tests.py
│ │ └── views.py
│ ├── my_app2
│ │ ├── __init__.py
│ │ ├── admin.py
│ │ ├── apps.py
│ │ ├── migrations
│ │ │ └── __init__.py
│ │ ├── models.py
│ │ ├── tests.py
│ │ └── views.py
│ └── my_project
│ ├── __init__.py
│ ├── settings.py
│ ├── urls.py
│ └── wsgi.py
└── my_virtual_env

The only directory of those that should be web accessible is htdocs,
and none of your code should live there.

Cheers

Tom

sarfaraz ahmed

unread,
May 8, 2017, 2:24:37 PM5/8/17
to django...@googlegroups.com
Hey Tom,

Thanks, you rightly pointed out right security way to implement django. But currently I am facing issue with implementing whatever way I tried.

Please suggest what is wrong in vhost file. Here is my host file. Please take a look

WSGIPythonPath C:\Python27\Lib\site-packages


<VirtualHost *:80>
    ServerAdmin ad...@testarhamcollections.com
   
    DocumentRoot "C:/Apache24/htdocs/testarhamcollections"
    ServerName www.testarhamcollections.com
    ServerAlias testarhamcollections.com
   
    ErrorLog "C:/Apache24/htdocs/testarhamcollections/logs/testarhamcollections.com-error.log"
    CustomLog "C:/Apache24/htdocs/testarhamcollections/logs/testarhamcollections.com-access.log" common
   
    <Directory c:/Apache24/htdocs/testarhamcollections>
    Require all granted
    </Directory>
   
    WSGIScriptAlias / c:\Apache24\htdocs\testarhamcollections
   
    Alias / "c:/Apache24/htdocs/testarhamcollections"

    <Directory "c:/Apache24/htdocs/testarhamcollections/project1">
        <Files "wsgi.py">
            Require all granted
        </Files>
    </Directory>   
</VirtualHost>

Also, you appreciate if you come on Google Hangout.


Regards,
Sarf

--
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+unsubscribe@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

For more options, visit https://groups.google.com/d/optout.

sarfaraz ahmed

unread,
Oct 19, 2017, 10:54:33 AM10/19/17
to Django users
This is been fixed
Reply all
Reply to author
Forward
0 new messages