Skip to main content

Corpus for making web map applications.

Project description

Corpus for making web map applications.

Installation

To get the latest stable release from PyPi

pip install django-webmap-corpus

To get the latest commit from GitHub

pip install -e git+https://github.com/PetrDlouhy/django-webmap-corpus.git#egg=webmap

Add webmap to your INSTALLED_APPS

INSTALLED_APPS = (
    ...,
    'author',
    'colorful',
    'adminsortable2',
    'django.contrib.gis',
    'constance.backends.database',
    'constance',
    'import_export',
    'webmap',
    'rest_framework',
)

Add Author middleware

MIDDLEWARE_CLASSES = (
    ...,
    'author.middlewares.AuthorDefaultBackendMiddleware',
)

Add Constance settings

CONSTANCE_APP_NAME = "webmap"
CONSTANCE_CONFIG = {
    'MAP_BASELON': (14.4211, u'zeměpisná délka základní polohy mapy'),
    'MAP_BASELAT': (50.08741, u'zeměpisná délka základní polohy mapy'),
    'MAP_BOUNDS': ("14.22, 49.95, 14.8, 50.18", u'hranice zobrazení mapy'),
    'DEFAULT_STATUS_ID': (2, u'id defaultního statusu'),
}
CONSTANCE_BACKEND = 'constance.backends.database.DatabaseBackend'

Add the webmap URLs to your urls.py

urlpatterns = patterns('',
    ...
    url(r'^webmap/', include('webmap.urls')),
)

Don’t forget to migrate your database

./manage.py migrate webmap

Note: If you don’t have Constance migrated yet, remove the ‘webmap’ line from INSTALLED_APPS, then migrate Constance and then the line re-add and migrate again.

Usage

TODO: Describe usage or point to docs. Also describe available settings and templatetags.

Contribute

If you want to contribute to this project, please perform the following steps

# Fork this repository
# Clone your fork
mkvirtualenv -p python2.7 django-webmap-corpus
make develop

git co -b feature_branch master
# Implement your feature and tests
git add . && git commit
git push -u origin feature_branch
# Send us a pull request for your feature branch

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-webmap-corpus-0.6.tar.gz (259.2 kB view details)

Uploaded Source

Built Distribution

django_webmap_corpus-0.6-py2-none-any.whl (976.1 kB view details)

Uploaded Python 2

File details

Details for the file django-webmap-corpus-0.6.tar.gz.

File metadata

File hashes

Hashes for django-webmap-corpus-0.6.tar.gz
Algorithm Hash digest
SHA256 40573e8856bfe5c89b52d369c61b05604f37b0e2de53a4ac3e3b4b2806e68b60
MD5 000942a1234dc2494fcd1349808b2c69
BLAKE2b-256 ee517c7dbdaa9d858be84dbf9d25adcccf16bebf6057f655199e523bf8a52273

See more details on using hashes here.

Provenance

File details

Details for the file django_webmap_corpus-0.6-py2-none-any.whl.

File metadata

File hashes

Hashes for django_webmap_corpus-0.6-py2-none-any.whl
Algorithm Hash digest
SHA256 56d6302bea2ed7921c7144c181861436ab30e5b6a79ce4da0400c715b1c66422
MD5 6a2e9da55dce71dbb1f3b1ad60efac3d
BLAKE2b-256 f8d22caa9fdbede87d7b2aa11dd0c805c405f7cc0f3061438fce7a632a4d0ed7

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page