将Web应用安装横幅添加到Django项目
django-webapp-install-banner的Python项目详细描述
==========
django webapp安装横幅图片::https://badge.fury.io/py/django webapp install banner.png
:目标:https://badge.fury.io/py/django webapp install banner
…图片::https://travis-ci.org/ferranp/django-webapp-install-banner.png?branch=master
:目标:https://travis ci.org/ferranp/django web app install banner
add web app install banner to django project“
docs.org.
django webapp install banner::
pip install django webapp install banner
add to your django settings.py file::
installed戋apps+=('webapp戋install戋banner.middleware.webappmiddleware',)
manifest={
“short戋name”:
“name”:“项目日志名”,
“icons”:[
{
“src”:“img/favicon-96x96.png”,
“size”:“96x96”,
“type”:“image/png”
},
{
“src”:“img/apple-touch-icon-144x144.png”,
“大小”:“144x144”,
“类型”:“图像/png”
},
{
“src”:“img/android-chrome-192x192.png”,
“大小”:“192x192”,
“类型”:“图像/png”
}
],
“开始url”:反向延迟(“索引”),
“display”:“standalone”
}
add to your url.py::
>add to your base template html header::
{%load webapp_tags%}
{%webapp_manifest%}
-
添加manifest.json文件,并管理是否从webapp启动的检测。
todo:添加服务工作程序文件。
::
source<;yourvirtualenv>;/bin/activate
(myenv)$pip install-r requirements test.txt
(myenv)$python runtests.py
credits
--
呈现此包时使用的工具:
*cookiecutter
*`cookiecutter py package`
。_ Cookiecutter:https://github.com/audreyr/Cookiecutter
。_`cookiecutter djangopackage`:https://github.com/pydanny/cookiecutter djangopackage
----
<0.1.0(2016-03-27)
++++++++++++++。
django webapp安装横幅图片::https://badge.fury.io/py/django webapp install banner.png
:目标:https://badge.fury.io/py/django webapp install banner
…图片::https://travis-ci.org/ferranp/django-webapp-install-banner.png?branch=master
:目标:https://travis ci.org/ferranp/django web app install banner
add web app install banner to django project“
docs.org.
django webapp install banner::
pip install django webapp install banner
add to your django settings.py file::
installed戋apps+=('webapp戋install戋banner.middleware.webappmiddleware',)
manifest={
“short戋name”:
“name”:“项目日志名”,
“icons”:[
{
“src”:“img/favicon-96x96.png”,
“size”:“96x96”,
“type”:“image/png”
},
{
“src”:“img/apple-touch-icon-144x144.png”,
“大小”:“144x144”,
“类型”:“图像/png”
},
{
“src”:“img/android-chrome-192x192.png”,
“大小”:“192x192”,
“类型”:“图像/png”
}
],
“开始url”:反向延迟(“索引”),
“display”:“standalone”
}
add to your url.py::
>add to your base template html header::
{%load webapp_tags%}
{%webapp_manifest%}
-
添加manifest.json文件,并管理是否从webapp启动的检测。
todo:添加服务工作程序文件。
::
source<;yourvirtualenv>;/bin/activate
(myenv)$pip install-r requirements test.txt
(myenv)$python runtests.py
credits
--
呈现此包时使用的工具:
*cookiecutter
*`cookiecutter py package`
。_ Cookiecutter:https://github.com/audreyr/Cookiecutter
。_`cookiecutter djangopackage`:https://github.com/pydanny/cookiecutter djangopackage
----
<0.1.0(2016-03-27)
++++++++++++++。