Geolocation models, data and tools using GeoDjango
Project description
django-atlas
===============
Geolocation models, data and tools using GeoDjango
Requirements
------------
The following were used for development/testing:
1. Django 1.3
2. PostgreSQL 9.1
3. PostGIS 1.5.2
4. SQLite 3.7.9
5. libspatialite3
6. django-photologue 2.7 (fork maintained by Praekelt at https://github.com/praekelt/django-photologue)
7. django-category 0.1 (at https://github.com/praekelt/django-category)
8. django-tastypie 0.9.11
9. libgeoip1 1.4.8
You might need to apply a PostGIS patch to Django that can be found here: https://code.djangoproject.com/ticket/16778. If you get a database encoding error when loading
initial data, your version of Django has not been patched. You can also use SQLite and MySQL with django-atlas, although MySQL is very lacking in terms of GIS.
Add the following to your INSTALLED_APPS:
1. django.contrib.gis
2. django.contrib.admin
3. atlas
4. photologue
5. category
6. tastypie
GeoDjango has some additional installation requirements. They can be found here: https://docs.djangoproject.com/en/dev/ref/contrib/gis/install/.
Follow those instructions and create a spatial database. Then add it to the DATABASES dictionary in your settings as the default database.
::
DATABASES = {
'default': {
'ENGINE': 'django.contrib.gis.db.backends.postgis',
'NAME': 'demo_geo',
'USER': 'demo',
'PASSWORD': 'demo',
'HOST': 'localhost',
'PORT': '',
}
}
Atlas uses MaxMind's IP geolocation library and datasets. The following settings need to be included for this to work:
::
GEOIP_PATH = '.../django-atlas/atlas/datasets/MaxMind/'
GEOIP_CITY = 'GeoLiteCity.dat'
GEOIP_COUNTRY = 'GeoIPv6.dat'
You can also add a Google Maps API key setting (see below). This will enable the LonLatWidget to use Google Maps for selecting coordinates.
::
DJANGO_ATLAS = {
'google_maps_api_key': 'XXX...',
}
Datasets
--------
The geo data required by django-atlas can be downloaded at https://github.com/downloads/praekelt/django-atlas/data_postgresql.tbz2 for PostgreSQL or
https://github.com/downloads/praekelt/django-atlas/data_mysql.tbz2 for MySQL. Extract data.sql and load the data using ``psql -U user -W -d demo_geo < data.sql`` for PostgreSQL, or ``mysql -u user -p -D demo_geo < data.sql``
for MySQL.
MaxMind's IP geolocation datasets are available at http://www.maxmind.com/download/geoip/database/. MaxMind updates these datasets on a regular basis.Authors
=======
Praekelt Foundation
-------------------
* Rizmari Versfeld
===============
Geolocation models, data and tools using GeoDjango
Requirements
------------
The following were used for development/testing:
1. Django 1.3
2. PostgreSQL 9.1
3. PostGIS 1.5.2
4. SQLite 3.7.9
5. libspatialite3
6. django-photologue 2.7 (fork maintained by Praekelt at https://github.com/praekelt/django-photologue)
7. django-category 0.1 (at https://github.com/praekelt/django-category)
8. django-tastypie 0.9.11
9. libgeoip1 1.4.8
You might need to apply a PostGIS patch to Django that can be found here: https://code.djangoproject.com/ticket/16778. If you get a database encoding error when loading
initial data, your version of Django has not been patched. You can also use SQLite and MySQL with django-atlas, although MySQL is very lacking in terms of GIS.
Add the following to your INSTALLED_APPS:
1. django.contrib.gis
2. django.contrib.admin
3. atlas
4. photologue
5. category
6. tastypie
GeoDjango has some additional installation requirements. They can be found here: https://docs.djangoproject.com/en/dev/ref/contrib/gis/install/.
Follow those instructions and create a spatial database. Then add it to the DATABASES dictionary in your settings as the default database.
::
DATABASES = {
'default': {
'ENGINE': 'django.contrib.gis.db.backends.postgis',
'NAME': 'demo_geo',
'USER': 'demo',
'PASSWORD': 'demo',
'HOST': 'localhost',
'PORT': '',
}
}
Atlas uses MaxMind's IP geolocation library and datasets. The following settings need to be included for this to work:
::
GEOIP_PATH = '.../django-atlas/atlas/datasets/MaxMind/'
GEOIP_CITY = 'GeoLiteCity.dat'
GEOIP_COUNTRY = 'GeoIPv6.dat'
You can also add a Google Maps API key setting (see below). This will enable the LonLatWidget to use Google Maps for selecting coordinates.
::
DJANGO_ATLAS = {
'google_maps_api_key': 'XXX...',
}
Datasets
--------
The geo data required by django-atlas can be downloaded at https://github.com/downloads/praekelt/django-atlas/data_postgresql.tbz2 for PostgreSQL or
https://github.com/downloads/praekelt/django-atlas/data_mysql.tbz2 for MySQL. Extract data.sql and load the data using ``psql -U user -W -d demo_geo < data.sql`` for PostgreSQL, or ``mysql -u user -p -D demo_geo < data.sql``
for MySQL.
MaxMind's IP geolocation datasets are available at http://www.maxmind.com/download/geoip/database/. MaxMind updates these datasets on a regular basis.Authors
=======
Praekelt Foundation
-------------------
* Rizmari Versfeld
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-atlas-0.0.2-beta.tar.gz
(19.6 kB
view details)
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-atlas-0.0.2-beta.tar.gz.
File metadata
- Download URL: django-atlas-0.0.2-beta.tar.gz
- Upload date:
- Size: 19.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2892bd2e134c1712cf50ae9e02f749e34e949128ef3769d39988f0ff2a6786d
|
|
| MD5 |
21189446d5a1a4d2605e0df367e793a3
|
|
| BLAKE2b-256 |
24e8d915f5261a6c9e1781e502fa851ac624aa019436a312b4e89b66ba4189f2
|
File details
Details for the file django_atlas-0.0.2_beta-py2.7.egg.
File metadata
- Download URL: django_atlas-0.0.2_beta-py2.7.egg
- Upload date:
- Size: 57.1 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
116a1dab05c55e78c3077a90665b015efe31976b1b0786ada6e0a418689b1805
|
|
| MD5 |
07bf3fc3858f5c95ab28acc4a39e6480
|
|
| BLAKE2b-256 |
6a4067f439345d189d4a57362925146a7225cc14a8ef05777ba141127ad0dee5
|
File details
Details for the file django_atlas-0.0.2_beta-py2.6.egg.
File metadata
- Download URL: django_atlas-0.0.2_beta-py2.6.egg
- Upload date:
- Size: 57.2 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2323ef7f42b9bdb51af7c2f81fa016297c42fb85afef8e0961dca11e89f5d4fd
|
|
| MD5 |
facd635c52ea1bae4b5b2e05b37db5ad
|
|
| BLAKE2b-256 |
6cba07646cfcb567a896f58a83864b24404b24fd522363dea6fdae36c0b4e682
|