GeoDjango

Access

A basic GeoDjango app usign PostGIS is created upon installation.

It can be access via the GeoDjango tab on the home page:

../_images/geodjango-tab.png

It can also be access directly via url at:

http://domain.com:8000/states/

Usage

Once accessed using above, click the link for a state as show below:

../_images/geodjango-app.png

The detail for the state will be displayed as below:

../_images/geodjango-app2.png

Click the Return to Main Page to return to the app homepage.

Django Admin

The Django Admin Panel is located at:

http://domain.com:8000/admin

If accessing via IP, substitute the IP for ‘domain.com’ above.

The Django admin password is saved on disk at:

/root/auth.txt

Structure

The GeoDjango app is located under /opt/geodjango.

It has the following structure:

  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
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
     /opt/geodjango
     └── world
     ├── manage.py
     ├── media
     ├── states
     │   ├── __init__.py
     │   ├── __pycache__
     │   │   ├── __init__.cpython-36.pyc
     │   │   ├── admin.cpython-36.pyc
     │   │   ├── load.cpython-36.pyc
     │   │   ├── models.cpython-36.pyc
     │   │   ├── urls.cpython-36.pyc
     │   │   └── views.cpython-36.pyc
     │   ├── admin.py
     │   ├── apps.py
     │   ├── data
     │   │   ├── states.dbf
     │   │   ├── states.prj
     │   │   ├── states.sbn
     │   │   ├── states.sbx
     │   │   ├── states.shp
     │   │   ├── states.shp.xml
     │   │   └── states.shx
     │   ├── migrations
     │   │   ├── 0001_initial.py
     │   │   ├── __init__.py
     │   │   └── __pycache__
     │   │       ├── 0001_initial.cpython-36.pyc
     │   │       └── __init__.cpython-36.pyc
     │   ├── models.py
     │   ├── support
     │   │   ├── geodjango.apache
     │   │   └── load.py
     │   ├── templates
     │   │   └── states
     │   │       ├── state-detail.html
     │   │       └── states-index.html
     │   ├── tests.py
     │   ├── urls.py
     │   └── views.py
     ├── static
     │   ├── admin
     │   │   ├── css
     │   │   │   ├── autocomplete.css
     │   │   │   ├── base.css
     │   │   │   ├── changelists.css
     │   │   │   ├── dashboard.css
     │   │   │   ├── fonts.css
     │   │   │   ├── forms.css
     │   │   │   ├── login.css
     │   │   │   ├── responsive.css
     │   │   │   ├── responsive_rtl.css
     │   │   │   ├── rtl.css
     │   │   │   ├── vendor
     │   │   │   │   └── select2
     │   │   │   │       ├── LICENSE-SELECT2.md
     │   │   │   │       ├── select2.css
     │   │   │   │       └── select2.min.css
     │   │   │   └── widgets.css
     │   │   ├── fonts
     │   │   ├── img
     │   │   │   ├── LICENSE
     │   │   │   ├── README.txt
     │   │   │   ├── calendar-icons.svg
     │   │   │   ├── gis
     │   │   │   │   ├── move_vertex_off.svg
     │   │   │   │   └── move_vertex_on.svg
         │   │   └── js
     │   │       ├── SelectBox.js
     │   │       ├── SelectFilter2.js
     │   │       ├── actions.js
     │   │       ├── actions.min.js
     │   │       ├── admin
     │   │       │   ├── DateTimeShortcuts.js
     │   │       │   └── RelatedObjectLookups.js
     │   │       ├── autocomplete.js
     │   │       ├── calendar.js
     │   │       ├── cancel.js
     │   │       ├── change_form.js
     │   │       ├── collapse.js
     │   │       ├── collapse.min.js
     │   │       ├── core.js
     │   │       ├── inlines.js
     │   │       ├── inlines.min.js
     │   │       ├── jquery.init.js
     │   │       ├── popup_response.js
     │   │       ├── prepopulate.js
     │   │       ├── prepopulate.min.js
     │   │       ├── prepopulate_init.js
     │   │       ├── urlify.js
     │   │       └── vendor
     │   │           ├── jquery
     │   │           │   ├── LICENSE.txt
     │   │           │   ├── jquery.js
     │   │           │   └── jquery.min.js
     │   │           ├── select2
     │   │           │   ├── LICENSE.md
     │   │           │   ├── i18n

     │   │           │   ├── select2.full.js
     │   │           │   └── select2.full.min.js
     │   │           └── xregexp
     │   │               ├── LICENSE.txt
     │   │               ├── xregexp.js
     │   │               └── xregexp.min.js
     │   ├── gis
     │   │   ├── css
     │   │   │   └── ol3.css
     │   │   ├── img
     │   │   │   ├── draw_line_off.svg
     │   │   │   ├── draw_line_on.svg
     │   │   │   ├── draw_point_off.svg
     │   │   │   ├── draw_point_on.svg
     │   │   │   ├── draw_polygon_off.svg
     │   │   │   └── draw_polygon_on.svg
     │   │   └── js
     │   │       └── OLMapWidget.js
     │   └── leaflet
     │       ├── Control.MiniMap.css
     │       ├── Control.MiniMap.js
     │       ├── draw
     │       │   ├── images
     │       │   │   ├── layers-2x.png
     │       │   │   ├── layers.png
     │       │   │   ├── marker-icon-2x.png
     │       │   │   ├── marker-icon.png
     │       │   │   ├── marker-shadow.png
     │       │   │   ├── spritesheet-2x.png
     │       │   │   ├── spritesheet.png
     │       │   │   └── spritesheet.svg
     │       │   ├── leaflet.draw-src.css
     │       │   ├── leaflet.draw-src.js
     │       │   ├── leaflet.draw.css
     │       │   └── leaflet.draw.js
     │       ├── eventlistener.ie6-7.js
     │       ├── eventlistener.ie8.js
     │       ├── images
     │       │   ├── layers-2x.png
     │       │   ├── layers.png
     │       │   ├── marker-icon-2x.png
     │       │   ├── marker-icon.png
     │       │   ├── marker-icon@2x.png
     │       │   ├── marker-shadow.png
     │       │   ├── reset-view.png
     │       │   ├── toggle.png
     │       │   ├── zoom-in.png
     │       │   └── zoom-out.png
     │       ├── leaflet-src.js
     │       ├── leaflet.css
     │       ├── leaflet.extras.js
     │       ├── leaflet.forms.js
     │       ├── leaflet.ie.css
     │       ├── leaflet.js
     │       ├── proj4js.js
     │       └── proj4leaflet.js
     └── world
             ├── __pycache__
             │   ├── settings.cpython-36.pyc
             │   └── urls.cpython-36.pyc
             ├── asgi.py
             ├── settings.py
             ├── settings.py.save
             ├── urls.py
             └── wsgi.py