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
Related
I made a virtual environment on my local computer and installed numpy to be used in my web app. I found many tutorials on how to deploy django apps on a server, but I am not sure if those tutorial would work if my app depends on numpy. My app also uses static files some of which are csv files that are being parsed using python's csv library.
I am not sure where to look or what to look for that would help me get started with this process. Any ideas or guides that would help?
You just need to install numpy into your server environment and load static files there. You can do this by remote control via ssh for example. Also try to examine docker for project environment creation. And start with deploying projects on Heroku - one of the best platforms for this task.
Comming from PHP(without frameworks), I don't quite understand how deploying works in Python. I have completed my simple Django version: (1, 10, 1, 'final', 1) blog project and all I have to do is put it online. I am using linux openSUSE distro and virtualenv
I have access to a mysql database with phpmyadmin and I have some space, accessed with filezilla. hosting site: https://host.bg/
But then I started researching of how to deploy my project and I stumbled upon stuf like apache, Nginx, wsgi and other stuff I haven't used in the project and not quite familiar how they work.
So my question is: Can I make my project into a folder with some files in it, copy->paste them in filezilla and have a working site and if not, how does django deployment really work and what should I do from here ?!
I would recommend you to use Git instead of FTP protocol. As you are using Linux you can easily connect to your SO using ssh.
About the deployment, I would recommend you to use GUnicorn for a WSGI way.
It's not hard to deploy with, but if you get in trouble you can use the official Django documentation for deploying Django with WSGI:
Link
Ps.: As you are using Linux, I would recommend to you to use VirtualEnv to allow you server many Django sites in the same Linux instance with the isolated environments
Check what version of Python is installed on the server hosting your account and if there's option for ssh access.
Host.bg and Bulgarian hosting providers in general fail to keep up with most things other than php and mysql. With shared plans they avoid installing anything new too.
I'd say contact support and see if they would be able to assist you with Apache configurations and whatever else is needed for your project.
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.
What I want to know are actually 2 things.
Part 1:
I have a developed source code for an application in python that uses Django framework.
What I want is to be able to run the code on a developer machine and see the result. What do I need for it?
(my guesses):
Python development enironment (Eclipse/PyDev/Aptana Studio 3 seem to be the better ones for windows not sure linux yet),
I also have a postgre database already setup (I know there's a file where I have to specify connection information)
- something installed from django or would this be already included in the code that I have?
Part II:
I also want to make a dev server accessible through internet.
- this is the major part of the question and the most important. How do I publish the app?
- I have a linux machine that I would do this on, but unsure of all the things I need. Apache server?
To answer your questions:
What you need: A list of requirements and instructions to get started with Django is available here: http://djangobook.com/en/2.0/chapter02/.
Database: that chapter also includes a section on configuring access to your database, with a specific section on postgreSQL.
Dev server: To start a basic development server, see this tutorial section
Deploying django (production): For instructions on how to deploy Django for production, see chapter on deploying Django.
Publishing on internet: as for making your dev server accessible through the internet, ask on https://serverfault.com/. Make sure you provide more information about your network setup, what you've tried, what isn't working, etc. (Briefly, you need to make sure that the host you are running your server on is on a publicly accessible IP, or has port 80 forwarded to it from such a host. If in doubt, speak to your sys/network admin if you have one. Or use a django hosting service such as those listed on http://djangohosting.com)
IDE : Regarding IDE, it's down to personal preference. What you mentioned are fine and can run on Linux too.
As a first step, I suggest you follow the tutorial which guides you through the process of starting a development server and developing a basic app.
Even if your goal is to deploy an existing app, the tutorial will give you an idea of how the different components work together (apps, models, urls, templates, etc) which will help with debugging when something goes wrong with your deployment.
Good luck.
You need Python, Django, a WSGI container (e.g. mod_wsgi, uWSGI, Paste Deploy), and a database server. You make the Django project available as a WSGI app, bound to the appropriate interface on the machine.
I have developed an app using Django 1.1.1 and python 2.7.1. I want to publish it on a commercial website, but not sure which one.
the app works fine on the apache server running on my local machine, however, before investing on a host, I want to be sure that I have the necessary requirements, so if it matters, what are the possible hosts I can use?
I use Apache 2.2 with python 2.7.1 on my local machine running with Django 1.1.1. I use the Windows OS. I tried looking at linode but they don't have a documentation for Windows users in using Django and mod_wsgi, so does it even matter?
This is the first time I try to publish on a commercial site, so I don't want to invest on a host and then find myself stuck and not knowing how to upload my Django app.
Thanks,
You can follow the docs on linode just fine, it doesn't matter that you're a Windows user, the app will be deployed on a linux box.
You can also try a shared hosting solution, that will run django right way, without any need to configure and setup a new machine. My personal recommendation is http://www.webfaction.com/ . Another alternative is https://www.djangy.com/.