Jump to content

Django: module request and deployment help


Recommended Posts


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
import os, sys

# edit your username below

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,


Link to comment
Share on other sites

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