# Hosting Django App in custom Hepsia Panel

**URL:** <https://forum.djangoproject.com/t/hosting-django-app-in-custom-hepsia-panel/8820>\
**Category:** Using Django\
**Created:** [July 17, 2021, 11:03am UTC](https://forum.djangoproject.com/t/hosting-django-app-in-custom-hepsia-panel/8820 "2021-07-17T11:03:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mirunijoel](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/mirunijoel/32/5193_2.png) [@mirunijoel](https://forum.djangoproject.com/u/mirunijoel)\
**Post date:** [July 17, 2021, 11:03am UTC](https://forum.djangoproject.com/t/hosting-django-app-in-custom-hepsia-panel/8820/1 "2021-07-17T11:03:18Z")

</div>

I have got my app ready for production but the hosting provider ([https://cp.freehostia.com](https://cp.freehostia.com)) is using custom Hepsia Panel rather than NameCheap Cpanel. Am totally fine dealing with cpanel.

Creating a python app in NameCheap Cpanel is really headache as they only allow you to change python version no other settings are provided.

Here is a glimpse of what their instructions say:  
pip install git+https://github.com/NetAngels/django-fastcgi  
pip install flup6  
pip install mezzanine

Then set up .htaccess  
RewriteEngine On  
RewriteCond %{REQUEST\_FILENAME} !-f  
RewriteCond %{REQUEST\_FILENAME} !-d  
RewriteRule ^(.\*)$ /index.fcgi/$1 [QSA,L]

Then setup index.fcgi file  
#!/home/venv/bin/python3.5

# -_- coding: utf-8 -_-

import os  
import sys  
activate\_this = ‘/home/venv/bin/activate\_this.py’  
exec(open(activate\_this).read(), dict( **file** =activate\_this))  
cms\_path = ‘/home/www/mydjangocms/’  
sys.path.insert(0, cms\_path)  
os.chdir(cms\_path)

# Set the DJANGO\_SETTINGS\_MODULE environment variable.

os.environ[‘DJANGO\_SETTINGS\_MODULE’] = “mydjangocms.settings”  
from django\_fastcgi.servers.fastcgi import runfastcgi  
from django.core.servers.basehttp import get\_internal\_wsgi\_application  
wsgi\_application = get\_internal\_wsgi\_application()  
runfastcgi(wsgi\_application, method=“prefork”, daemonize=“false”, minspare=1, maxspare=1, maxchildren=1)

Then make index.fcgi executable  
chmod +x index.fcgi

In summary after googling and rereading their docs, fastcgi is supported in olde version of django: [How to use Django with FastCGI, SCGI, or AJP | Django documentation | Django](https://docs.djangoproject.com/en/1.8/howto/deployment/fastcgi/)

Can someone help me in hosting the app
