apache on windows

11 views
Skip to first unread message

Luca Bertolotti

unread,
Oct 21, 2019, 10:04:57 AM10/21/19
to Django users
Hello 
I need to run my project in windows with apache.

I have installed apache and it's running because when i browse to 127.0.0.1:5000 i get "It works!", i change the default port to 5000 because on windows you have IIS working on port 80

this are my file I write only what i have change from the original
httpd.conf:

Listen 5000
LoadFile "c:/users/administrator/appdata/local/programs/python/python37/python37.dll"
LoadModule wsgi_module "c:/users/administrator/appdata/local/programs/python/python37/lib/site-packages/mod_wsgi/server/mod_wsgi.cp37-win_amd64.pyd"
WSGIPythonHome "c:/users/administrator/appdata/local/programs/python/python37"

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
WSGIScriptAlias /mysite "F:/mysite/mysite/wsgi.py"
WSGIPythonPath "F:/mysite/mysite/"

<Directory "F:/mysite/mysite/mysite/">
    <Files wsgi.py>
Require all granted
    </Files>
</Directory>

Thank this is my wsgi.py

"""
WSGI config for mysite project.

It exposes the WSGI callable as a module-level variable named ``application``.

For more information on this file, see
"""

import os

from django.core.wsgi import get_wsgi_application

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mysite.settings')

application = get_wsgi_application()

But as told before i see only it works

What is wrong?

Thanks


Reply all
Reply to author
Forward
0 new messages