You will need:
- A fasthosts linux hosting account with a MySQL database and SSH access, and with CGI enabled.
- A Centos 5.6 virtual machine to set everything up on.
On your new fresh Centos virtual machine, run the following:
yum install mysql-devel gcc
Download and extract the python source code:
wget http://python.org/ftp/python/2.7.2/Python-2.7.2.tgz
tar xzvf Python-2.7.2.tgz
cd Python-2.7.2
Configure, make and install python:
./configure
make
make install
Now install setuptools:
wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz
tar xzvf setuptools-0.6c11.tar.gz
cd setuptools-0.6c11
python setup.py install
This will allow us to use easy_install to install pip and virtualenv
easy_install pip virtualenv
Right, now log in to fasthosts via SSH, and run
pwd
This is your home folder. Back on your Centos box, create a folder using the exact path pwd gave you on fasthosts:
mkdir -p <folder>
cd <folder>
Now create self-contained python environment:
virtualenv --distribute --no-site-packages django
Activate the virtual environment:
source django/bin/activate
And you should now be able to install any packages you need for your application to run.
pip install django MySQL-python
You will also need the standard python libraries:
cp -R /usr/local/lib/python2.7/* django/lib/python2.7/
Copy your Django project to the django folder and scp to the root of you home folder on fasthosts.
scp -r django <user>@<host>:./
You should now be able to ssh into fasthosts and run syncdb.
source django/bin/activate
cd django/<app name>
python manage.py syncdb
Copy any media files to htdocs/media and htdocs/static as required.
Finally, you need just two more files. This .htaccess in htdocs folder:
RewriteEngine on
RewriteRule ^cgi-bin/ - [L]
RewriteRule ^static/ - [L]
RewriteRule ^media/ - [L]
RewriteRule ^(.*)$ /cgi-bin/django.cgi/$1 [QSA,L]
The final file you need is django.cgi to go in your cgi-bin. Instructions of what you need to change can be found here: http://joemaller.com/1467/django-via-cgi-on-shared-hosting/
Amazing experience on reading your article. It is really nice and informative.
ReplyDeletePython Training in Chennai
Python Training in T.Nagar
JAVA Training in Chennai
Big data training in chennai
Selenium Training in Chennai
Python Training in Chennai
Python Training in Tambaram
I am glad that I saw this post. It is informative blog for us and we need this type of blog thanks for share this blog, Keep posting such instructional blogs and I am looking forward for your future posts. Python Projects for Students Data analytics is the study of dissecting crude data so as to make decisions about that data. Data analytics advances and procedures are generally utilized in business ventures to empower associations to settle on progressively Python Training in Chennai educated business choices. In the present worldwide commercial center, it isn't sufficient to assemble data and do the math; you should realize how to apply that data to genuine situations such that will affect conduct. In the program you will initially gain proficiency with the specialized skills, including R and Python dialects most usually utilized in data analytics programming and usage; Python Training in Chennai at that point center around the commonsense application, in view of genuine business issues in a scope of industry segments, for example, wellbeing, promoting and account. Project Center in Chennai
DeleteThis is excellent information. It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me...
ReplyDeleteBig Data Hadoop Training In Chennai | Big Data Hadoop Training In anna nagar | Big Data Hadoop Training In omr | Big Data Hadoop Training In porur | Big Data Hadoop Training In tambaram | Big Data Hadoop Training In velachery
Damien Grant
ReplyDeleteDamien Grant
Damien Grant
Damien Grant
Damien Grant
Damien Grant
Damien Grant
Damien Grant
Damien Grant
ReplyDeleteDamien Grant
Damien Grant
Damien Grant
Damien Grant
Damien Grant
Damien Grant
Damien Grant
Good. I am really impressed with your writing talents and also with the layout on your weblog. Appreciate, Is this a paid subject matter or did you customize it yourself? Either way keep up the nice quality writing, it is rare to peer a nice weblog like this one nowadays. Thank you, check also virtual edge and free online registration software
ReplyDeleteinstagram takipçi satın al
ReplyDeleteinstagram takipçi satın al
takipçi satın al
takipçi satın al
instagram takipçi satın al
takipçi satın al
instagram takipçi satın al
aşk kitapları
tiktok takipçi satın al
instagram beğeni satın al
youtube abone satın al
twitter takipçi satın al
tiktok beğeni satın al
tiktok izlenme satın al
twitter takipçi satın al
tiktok takipçi satın al
youtube abone satın al
tiktok beğeni satın al
instagram beğeni satın al
trend topic satın al
trend topic satın al
youtube abone satın al
beğeni satın al
tiktok izlenme satın al
sms onay
youtube izlenme satın al
tiktok beğeni satın al
sms onay
sms onay
perde modelleri
instagram takipçi satın al
takipçi satın al
tiktok jeton hilesi
pubg uc satın al
sultanbet
marsbahis
betboo
betboo
betboo
takipçi satın al
ReplyDeleteinstagram takipçi satın al
https://www.takipcikenti.com
marsbahis
ReplyDeletebetboo
sultanbet
marsbahis
betboo
sultanbet
This is a wonderful inspiring article. I am practically satisfied with your great work. You have really put together extremely helpful data. Keep it up... foreign citizens can apply for their evisa kenya online in a simple, secure, and convenient way.
ReplyDeleteWow.. Very informative article thanks for sharing please keep it up.. You can apply for an India tourist visa urgent in some case of emergency and you can also apply for an India visa super urgent, it takes less as compared to sticker visa.
ReplyDeleteIt's very nice what you're sharing with your audience. I have read your article and I think it's very nice. You can apply for an super urgent visa India by clicking the link we just provided. Thanks for adding value to the post.
ReplyDeleteseo fiyatları
ReplyDeletesaç ekimi
dedektör
instagram takipçi satın al
ankara evden eve nakliyat
fantezi iç giyim
sosyal medya yönetimi
mobil ödeme bozdurma
kripto para nasıl alınır
instagram beğeni satın al
ReplyDeleteyurtdışı kargo
seo fiyatları
saç ekimi
dedektör
fantazi iç giyim
sosyal medya yönetimi
farmasi üyelik
mobil ödeme bozdurma
Hello, I am Albert. This is an excellent article blog, How to apply for India visa online? You can apply for an online e visa India 2022 within 5 to 10 minutes. You can get your India Visa within 3 to 5 business days. Read more information about Visa on our India Visa Blog
ReplyDeleteMMORPG
ReplyDeleteİnstagram Takipçi Satin Al
tiktok jeton hilesi
Tiktok jeton hilesi
Antalya Sac Ekimi
referans kimliği nedir
instagram takipçi satın al
metin2 pvp serverlar
instagram takipçi satın al
Beautiful blog and post! India visa from USA can be applied online via India e visa portal. And you can learn more info about Indian visas through our website.
ReplyDeleteperde modelleri
ReplyDeletesms onay
Mobil odeme bozdurma
nft nasıl alınır
Ankara Evden Eve Nakliyat
trafik sigortası
DEDEKTOR
Web sitesi kurmak
aşk kitapları
SMM PANEL
ReplyDeleteSmm Panel
is ilanlari
İNSTAGRAM TAKİPÇİ SATIN AL
hirdavatciburada.com
beyazesyateknikservisi.com.tr
SERVİS
Tiktok Para Hilesi
The article you wrote is very interesting and easy to read and understand. I hope your audience enjoys it. Passengers who wish to visit Turkey and need a Turkey visa USA can apply online at the website linked above.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteI go to your blog from time to time and guidance it to the all out of individuals who needed to feature on happening their perception coming about to ease. The approach to forming is faultless and notwithstanding the substance material is finish score. appreciation for that knowledge you give the perusers. Nord VPN Crack
ReplyDelete