Mobile app version of vmapp.org
Login or Join
Kimberly868

: Is it possible to deploy a Django app at 1and1? I'm trying to deploy a Django app, and I tried to follow the tutorial at robhogg.me.uk/post/2, but it fails at the third command. Is it possible

@Kimberly868

Posted in: #1and1 #Django

I'm trying to deploy a Django app, and I tried to follow the tutorial at robhogg.me.uk/post/2, but it fails at the third command.
Is it possible to deploy a Django app on my 1and1 hosting or will I need to look for another host provider?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Kimberly868

2 Comments

Sorted by latest first Latest Oldest Best

 

@Hamaas447

It is possoble using FastCGI and flup.
You need to install django locally

python setup.py install --user


install flup

unzip flup*.egg
mv flup ~/.local/lib/python*/site-packages/
mv EGG-INFO ~/.local/lib/python*/site-packages/


create fcgi script

#!/usr/bin/python
import sys, os

basepath = '/full/home/path'

sys.path.insert(0, basepath + '/.local/lib')
sys.path.insert(0, basepath + '/pathto/djangoapp')

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

from django.core.servers.fastcgi import runfastcgi
runfastcgi(method='prefork', daemonize='false')


(after removing python 2.6 and moving to 2.7 method='threaded' doesn't work for me)

and modify .htaccess file to add fcgid-script handler.

AddHandler fcgid-script .fcgi
RewriteEngine on
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !(pathto/main.fcgi)
RewriteRule ^(.*)$ pathto/main.fcgi/ [QSA,L]

10% popularity Vote Up Vote Down


 

@Jennifer507

Mostly it won't be possible unless you contact the support and ask if they can help it out.


You have ssh acces. But you don't have the privileges to do most of the tasks. Eg, install a special package or software.


What to do : You will have to check if there are sufficient permissions.


They are making money out of it. Just like hostgator who doesn't provide the acces to clients for directly installing certificates, and making us pay a fee of 5-10 dollars, 1and1 also may have an option to help you out.


What to do : Ask the support if they can help out.

If what you require isn't happening, try checking for django hosting providers with good support. You can also get help from webhostingtalk website.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme