Ticket #14169: Django Installation Guide

File Django Installation Guide, 1.5 KB (added by anonymous, 11 years ago)
Line 
1Installation Steps
2******************
3
4sudo apt-get install python-pip python-dev build-essential
5
6sudo pip install django
7
8sudo pip install Django --upgrade
9
10(for latest Version)
11
12sudo apt-get install python-mysqldb
13
14
15Creating A Project
16******************
17
18Enter into Folder where website Project needs to be created
19
20django-admin.py startproject itechtalents.com
21
22To Start Django Server
23
24python manage.py runserver
25
26Mysql
27*****
28
29sudo apt-get install mysql
30
31mysql -u root -p
32
33 mysql > create database django
34
35Configure Mysql DB in Django
36****************************
37
38Modify Settings.py in project and project (subfolder)
39
40DATABASES = {
41 'default': {
42 'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
43 'NAME': 'django', # Or path to database file if using sqlite3.
44 'USER': 'root', # Not used with sqlite3.
45 'PASSWORD': 'Support1', # Not used with sqlite3.
46 'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
47 'PORT': '3306', # Set to empty string for default. Not used with sqlite3.
48 }
49
50
51
52If you are in ubuntu (linux/unix) you need to got to
531) /usr/local/lib/python2.6/dist-packages
542) when you do ls there will be directory called django.
553) do rm -rf django.
56By doing this django will be removed.Now you can install any version of django you want.
57
58
Back to Top