Jump to content

Recommended Posts

Posted

Hello,

I need Python module channels==3.0.4 for Django on Tommy:

 

Also, I need your help with deploying Django project/app to subdomain chat.codedo.ga

How should I edit .htaccess and dispatch.wsgi files for app to run directly on that subdomain without separate folder?

 

currently .htaccess:

RewriteEngine On
RewriteBase /
RewriteRule ^(codedoga/dispatch\.wsgi/.*)$ - [L]
RewriteRule ^(.*)$ chat/codedoga/dispatch.wsgi/$1 [QSA,PT,L]

 

dispatch.wsgi :

"""
WSGI config for chat 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/3.2/howto/deployment/wsgi/
"""
import os, sys

# edit your username below
sys.path.append("/home/gasparic/public_html/chat")

from django.core.wsgi import get_wsgi_application

os.environ['DJANGO_SETTINGS_MODULE'] = 'codedoga.settings'

application = get_wsgi_application()

 

I'm currently getting 500 Internal server error. 

 

Thank you,

gasparic

  • Krydos locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...