制作网络地图应用程序的语料库。
项目描述
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',
)
添加Author中间件
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'
将webmap URLs 添加到您的 urls.py
urlpatterns = patterns('',
...
url(r'^webmap/', include('webmap.urls')),
)
不要忘记迁移您的数据库
./manage.py migrate webmap
注意:如果您尚未迁移Constance,请从INSTALLED_APPS中删除“webmap”行,然后迁移Constance,然后重新添加该行并再次迁移。
用法
待办事项:描述用法或指向文档。也要描述可用的设置和templatetags。
贡献
如果您想为此项目做出贡献,请执行以下步骤
# Fork this repository
# Clone your fork
mkvirtualenv -p python 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
项目详情
下载文件
下载适用于您平台的文件。如果您不确定该选择哪个,请了解更多关于安装包的信息。
源代码分发
django-webmap-corpus-1.0.0.tar.gz (589.0 kB 查看哈希值)
关闭
django-webmap-corpus-1.0.0.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 468f3f73fdfdc0082a6741d67b380cee914301d2f842941721842117d675f8ed |
|
MD5 | 966a72df2fbb852f5040a3fe44037cdf |
|
BLAKE2b-256 | 4081bb30e0cf8fc44ab3ffd5c05cad17750bb488dec83f75ca6774701d7950b8 |