用于制作网络地图应用程序的语料库。

django-webmap-corpus的Python项目详细描述


https://travis-ci.org/auto-mat/django-webmap-corpus.svg?branch=masterhttps://coveralls.io/repos/auto-mat/django-webmap-corpus/badge.svg?branch=master&service=githubhttps://badge.fury.io/py/django-webmap-corpus.svg

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

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java Springboot数据JPA findByDate()   java是否可以有多个顶级树节点?   javahibernatehql。子查询中的多个   使用Twilio验证java Keyclope电话号码   java重写对象的toString()表示返回意外的符号   java Android最多每15分钟调用一个方法,否则使用保存的数据   在java swing中突出显示jeditorpane中的一些单词   java将时间戳转换为UTC时区   由于main中存在ArrayIndexOutOfBoundsException,导致java编译错误   java如何通过requestscope获取对象内部对象的值?   java访问安卓代码内的网站并检索生成的图像   java这种日期格式的模式是什么?   java解析包含超链接的xml字符串