aboutsummaryrefslogtreecommitdiff
path: root/doc/wiki-dump/WebPortal.md
blob: c41186b617c3edee49650f84face042ce188b201 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86

   

Web Portal

The RPKI Web Portal currently requires Django 1.2 or later.

Django upstream currently provides support for the previous two minor releases, which is 1.2 and 1.3 as of the writing of this page (https://docs.djangoproject.com/en/1.3/internals/release-process/#supported- versions).

Targeting RHEL/CentOS/Scientific 6.x and Ubuntu 10.04 LTS. Should work with any newer Fedora or Ubuntu release as well, but those are not typically deployed as production servers.

Platforms

Ubuntu 10.04

Ships with Django 1.1.1 which is out of upstream's support window. My recommendation is to install or rebuild a newer supported release.

Installing Django 1.3.1 PPA

This section describes how to install a pre-built PPA package for python- django 1.3.1.

Put the following in your /etc/apt/sources.list:

deb http://ppa.launchpad.net/chris-lea/python-django/ubuntu lucid main 
deb-src http://ppa.launchpad.net/chris-lea/python-django/ubuntu lucid main

Then run the following commands:

# apt-get update
# apt-get install python-django

Rebuilding python-django from source deb

The 1.3.1 package from Precise Pangolin (12.04 LTS) doesn't build due to build dependencies for newer python-sphinx than ships with 10.04 LTS. However, once built you can install the new python-django package on other systems without needing to upgrade other packages. You can also chose to build the 1.2.5 release from Natty (11.04).

To rebuild the python-django package:

# apt-get install dpkg-dev
# apt-get build-dep python-django
# tar zxvf python-django_1.2.5.orig.tar.gz
# cd Django-1.2.5
# tar zxvf ../python-django_1.2.5-1ubuntu1.debian.tar.gz
# dpkg-buildpackage

RHEL/CentOS/Scientific 6

Django is not included in base OS, but Django 1.2 is available via EPEL (http://fedoraproject.org/wiki/EPEL).

Once you have enabled the EPEL repository, you can run:

# yum install Django

SELinux

Extra steps are required to run the Web Portal with SELinux enabled.