用于制作网络地图应用程序的语料库。
django-webmap-corpus的Python项目详细描述
django网络地图语料库
用于制作网络地图应用程序的语料库。
安装
从pypi获得最新的稳定版本
pip install django-webmap-corpus
从github获取最新提交
pip install -e git+https://github.com/auto-mat/django-webmap-corpus.git#egg=webmap
将webmap添加到INSTALLED_APPS
INSTALLED_APPS=(...,'author','colorful','adminsortable2','django.contrib.gis','constance.backends.database','constance','import_export','webmap','rest_framework','easy_thumbnails',)
添加作者中间件
MIDDLEWARE_CLASSES=(...,'author.middlewares.AuthorDefaultBackendMiddleware',)
添加Constance设置
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'
将webmapurl添加到urls.py
urlpatterns=patterns('',...url(r'^webmap/',include('webmap.urls')),)
不要忘记迁移数据库
./manage.py migrate webmap
注意:如果您还没有迁移constance,请从已安装的应用程序中删除“webmap”行,然后迁移constance,然后重新添加并迁移该行。
使用量
待办事项:描述用法或指向文档。同时描述可用的设置和 模板标签。
贡献
如果您想参与此项目,请执行以下步骤
# 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