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
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""

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


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/586bc3a6-3c6a-41e8-81ed-d237397de5e6%40googlegroups.com.

Reply via email to