Install Prerequisites
- Install Apache.
- Ensure it’s working, including ensuring the firewall lets traffic through.
- Install MySQL
- Install revision control or however you pull software, e.g. git.
-
- Create a non-priviledged user, if that’s you install your software.
- Ensure Apache can access the software directory.
Install Django
$
sudo
yum
install
python Django mod_python MySQL-python
|
Test Django
$ python
Python
2.6
.
6
(r266:
84292
, Feb
22
2013
,
00
:
00
:
18
)
[GCC
4.4
.
7
20120313
(Red Hat
4.4
.
7
-
3
)] on linux2
Type
"help"
,
"copyright"
,
"credits"
or
"license"
for
more information.
>>>
import
django
>>>
print
django.get_version()
1.4
.
5
>>>
|