My question is: how can I install DJANGO on a shared hosting account?
My hosting supports PYTHON 2.4. After copying the files to the ftp server, what is the next step? On Django site it says you need to to this:
tar xzvf Django-1.3.tar.gz
cd Django-1.3
sudo python setup.py install
But I dont see any command shell on my plesk account admin page. Now, there is an option on my hosting provider that gives what they call "SSH chrooted shell access with a limited command set" for €60 euros more.
Do I need to get that shell access upgrade for Django/PYTHON development?
Thanks very much!
They probably wouldn't give you root access with your SSH access anyway. You can "install" a python library without root access by just copying it into the same directory as your application. Extract the contents of Django-1.3.tar.gz on your computer (not the shared server), find the folder inside named "django" and upload this to the ftp server in the folder containing your Django project.
You could use a "django ready" hoster (eg google apps)!
here's an collection of links
https://code.djangoproject.com/wiki/DjangoFriendlyWebHosts
I have been wondering the same thing. Thinking it would be easier to simply install Django on local machine (if you’re the only developer). For quick and easy setup, use Bitnami Django. If there are others working with you or you needed remote access, can open port to your local machine to make it accessible via the Internet (e.g. noip.com). If project is getting big, then it would be worth investing your time setting up or finding a proper host.
Related
I'm working on creating my first "real" web app using Django.
Yesterday I learned I should be using a web server like Nginx to serve static files and pass off requests for dynamic content to my web app. I also learned that I need something like Gunicorn as the intermediary between the web server (Nginx) and my Django app.
My question is about virtualenv. It makes sense that we would contain app related software in it's own separate environment. What should I install in virtualenv, and what gets installed system wide? For example, in this guide we seem to install Python, Nginx and the database system wide (because they're installed before virtualenv is installed) while Django and Gunicorn are installed in virtualenv. It makes sense that Gunicorn would have to go in the virtualenv since its importing our python app, as explained here. Are the other things required to be installed system wide? Or can I pick either way? Is one way preferred over another?
Thanks!
Virtualenv is for managing Python libraries. It is not for managing Python itself, or for external services such as databases; it does however manage the Python libraries you use to access the database.
There's no room for confusion here, because there's simply no way to install Python itself or a database within a virtualenv.
I have a web application made using Django on my local machine. I want to upload it to a server hosted by Network Solutions. How do I go about doing this?
This comment from an admin is from years back, but if it's the same situation, you can't use Django on that host. http://forums.networksolutions.com/script-help-perl-php-asp-net-f50-how-to-deploy-a-django-web-application-t8019.html
Django has to be installed via command line or by placing it in the site-packages folder of the python installation. Since we're in a shared environment these options aren't available so, I apologize, Django won't be a usable option for you. - rshinsec
Consider https://code.djangoproject.com/wiki/DjangoFriendlyWebHosts
I want to install pelican to create my online website. However, to install it on OVH server where my website is hosted, I need to run command lines but i can only host files and folders in /www/ on my server. How can I install pelican in this case ?
There's no need to install Pelican on the server; it's meant to be installed on your local computer. Once installed locally, you generate your site and then transmit the output to your server. Many folks (myself included) use rsync to upload the generated HTML/CSS/JS to the server from which the site is actually served (OVH, in your case).
Once Pelican has been installed locally, you can run pelican-quickstart to create a skeleton project, answering the relevant questions for SSH/rsync. If you install Fabric as well, you can then edit the provided fabfile.py and run fab publish to automatically generate your site and transmit it to /var/www/yoursite/.
all. I am trying to use the Django-Plupload in my project(src:https://github.com/vellonce/django-plupload). And I need to customize the view.py of this external app. Since I am developing in my localhost and I need to deploy it on server in the future, I don't want it to stay in site package. Instead, I want to install it as local app. May I know what is the suitable way to do this?
Thank you.
If you need to modify it, download the source and include it in your project (you will have to check license terms of the package)
Simply paste the app folder inside your project and add it to "installed apps"
I am attempting to make a dynamic website for a school project. The problem is it has to be on the school server and I can't use any webframeworks. I have searched through google and stackoverflow but I can't seem to get an answer.
I have tried the code that was provided here:
How to implement a minimal server for AJAX in Python?
It worked on the local server but how can I change it so that it would open on the school server. When I used those codes, the page won't load or an internal error shows. Can someone point me in the right direction?
Using a web framework in python does not necessary needs a system package installation (like running a sudo apt-get install python-something).
In the end python frameworks are just files like in your project, but you can install them system wide (like in the apt-get example) or ship them within your project (probably what you want). Take a look at virtual environment for creating a self contained environment and setuptools foi packaging the application and its dependencies
For implementing an ajax server directly in python without a wsgi container (apache, nginx, etc) I recommend using flask. It is very, very simple and very powerful