1

I'm new to Django and still learning.

Currently I have server set up with the follow folders: 'www' 'db' 'private'

Where and How do I install django framework on a server? It can be accessed with ftp and ssh.

Currently. I just know that php works and loads within the www folder. Do I have to install python?

Thanks everybody in advance.

user805981
  • 9,979
  • 8
  • 44
  • 64
  • I applaud your interest in learning Django. However just a note of caution. Django is a little more tricky to setup and deploy properly and securely compared to PHP, so even if you setup Django on server, please do not fully deploy it until you are absolutely sure it will not compromise your security, or at least you will be much more comfortable using Django. – miki725 Oct 06 '12 at 04:32
  • Recently, there was a kickstarter project for a video series for getting started with Django. It should be out soon. I would recommend to watch it as soon it comes out. It will help you in many ways learning Django. http://gettingstartedwithdjango.com/ – miki725 Oct 06 '12 at 04:34

1 Answers1

4

It is a good practice to use a virtual environment such as virtualenv. After you install virtualenv and activate it, you can then install django via pip install django which will install Django to your virtualenv. An easy way to organize the package requirements is to put the package you will use in a requirements.txt file, which looks like something like this:

Django==1.4.1
Mako==0.7.0
MarkupSafe==0.15

You can then install all the required packages with pip install -r /path/to/requirements.txt


Setting up Django for deployment:

  1. Cleanest & Fastest server setup for Django
  2. official django doc 1 and 2
  3. Basic Django deployment with virtualenv, fabric, pip and rsync
Community
  • 1
  • 1
K Z
  • 29,661
  • 8
  • 73
  • 78