{ "info": { "author": "comk", "author_email": "1943336161@qq.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation", "Topic :: Software Development :: Libraries" ], "description": "comk_djanog_plugin\n========================\ncomk\u4e2a\u4eba\u5f00\u53d1\u7684django\u63d2\u4ef6\uff0c\u7528\u4e8e\u5f88\u65b9\u4fbf\u7684\u8bb0\u5f55\u65e5\u5fd7\u3001\u4e0b\u8f7d\u65e5\u5fd7\uff0c\u4ee5\u53ca\u5176\u4ed6\u62e5\u6709\u5c0f\u529f\u80fd\u7684\u4e2d\u95f4\u4ef6\n\n\u73b0\u6709\u529f\u80fd\n========================\n\n1. \u901a\u7528\u65e5\u5fd7\u8bb0\u5f55\n-------------------------------------------------------------------------------\n#. \u5148\u5728settings\u4e2d\u8fdb\u884c\u914d\u7f6e::\n\n MIDDLEWARE = [\n 'django.middleware.security.SecurityMiddleware',\n 'django.contrib.sessions.middleware.SessionMiddleware',\n 'django.middleware.common.CommonMiddleware',\n 'django.middleware.csrf.CsrfViewMiddleware',\n 'django.contrib.auth.middleware.AuthenticationMiddleware',\n 'comk_django_plugin.middleware.RequestLogMiddleware', # \u52a0\u4e0a\u8fd9\u4e00\u884c\uff0c\u6ce8\u610f\uff0c\u6dfb\u52a0\u7684\u4f4d\u7f6e\u662f\u975e\u5e38\u91cd\u8981\u7684\uff0c\u5efa\u8bae\u6dfb\u52a0\u5728 auth \u4e0b\u9762\n 'django.contrib.messages.middleware.MessageMiddleware',\n 'django.middleware.clickjacking.XFrameOptionsMiddleware',\n ]\n\n import comk_django_plugin as comk\n LOGGING = comk.auto_update_logsetting() # \u53ef\u4f20\u5165\u5404\u4e2a\u9879\u76ee\u81ea\u5b9a\u4e49\u7684LOGGING\u914d\u7f6e\uff0c\u4f1a\u81ea\u52a8\u5408\u5e76\uff0c\u540c\u65f6\u751f\u6548\u3002\n\n#. \u901a\u8fc7django\u4e2d\u95f4\u4ef6\u5b9e\u73b0\u5bf9\u6bcf\u4e2a\u8bf7\u6c42\u8fdb\u884c\u8bb0\u5f55\uff0c\u8bb0\u5f55\u7c7b\u578b\u6709\uff1a\n * \u8bb0\u5f55\u8bf7\u6c42\u6570\u636e\u548c\u8fd4\u56de\u6570\u636e\uff0c\u5e76\u8bb0\u5f55\u5728 log/comk_request_[\u65e5\u671f].log \u4e0b\u3002\n * \u8bb0\u5f55\u9519\u8bef\u65e5\u5fd7\uff0c\u5e76\u8bb0\u5f55\u5728 log/comk_error_traceback_[\u65e5\u671f].log \u4e0b\u3002\n\n\n2. \u65e5\u5fd7\u4e0b\u8f7d\n-------------------------------------------------------------------------------\n#. \u5148\u5728settings\u4e2d\u8fdb\u884c\u914d\u7f6e::\n\n INSTALLED_APPS = [\n 'django.contrib.admin',\n 'django.contrib.auth',\n 'django.contrib.contenttypes',\n 'django.contrib.sessions',\n 'django.contrib.messages',\n 'django.contrib.staticfiles',\n 'comk_django_plugin.apps.ComkDjangoPluginConfig', # \u52a0\u4e0a\u8fd9\u4e00\u884c\n ]\n\n#. \u7136\u540e\u5728\u5728urls.py\u4e0b\u52a0\u4e0aurl\u914d\u7f6e::\n\n from django.conf.urls import url, include\n from django.contrib import admin\n\n urlpatterns = [\n url(r'^admin/', admin.site.urls),\n url(r'^', include('comk_django_plugin.urls')),\n ]\n\n#. \u8fd9\u6837\u5c31\u53ef\u4ee5\u76f4\u63a5\u5728\u6d4f\u89c8\u5668\u4e0a\u8f93\u5165\u5730\u5740\uff0c\u6253\u5f00\u4e0b\u8f7dlog\u6587\u4ef6\u7684\u9875\u9762\uff0c\u5982\u4e0b::\n\n http://0.0.0.0:8000/getlog/log_download_html/\n\n \u8be5\u9875\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684HTML\uff0c\u63d0\u4f9b\u6253\u5305\u4e0b\u8f7d\u6240\u6709\u65e5\u5fd7\u6587\u4ef6\uff0c\u4ee5\u53ca\u4e0b\u8f7d\u5355\u4e2a\u65e5\u5fd7\u6587\u4ef6\u7684\u529f\u80fd\u3002\n\n3. PublicServer\u6587\u4ef6\n-------------------------------------------------------------------------------\n#. \u4e00\u4e2a\u7b80\u5355\u7684\u901a\u7528\u670d\u52a1\u7684\u6587\u4ef6\uff0c\u76ee\u7684\u662f\u7b80\u5316\u5f00\u53d1\u4ee3\u7801\u7684\u4e66\u5199\uff0c\u65e5\u540e\u8fd8\u4f1a\u4e0d\u65ad\u6dfb\u52a0\uff0c\u4f7f\u7528\u65b9\u6cd5\u5982\u4e0b::\n\n\n class OrderQuery(View):\n \"\"\"\n \u67e5\u8be2\u8ba2\u5355\u5386\u53f2\uff0c\u5e76\u751f\u6210excel\u6587\u4ef6\n\n \"\"\"\n\n def post(self, request):\n ps = PublicServer(request)\n if not ps.check_login_user():\n return ps.return_build_error_response(msg='\u6ca1\u6709\u767b\u5f55\u7528\u6237\uff0c\u8bf7\u767b\u5f55')\n\n4. PublicDao\u6587\u4ef6\n-------------------------------------------------------------------------------\n#. \u4e00\u4e2a\u7b80\u5355\u7684\u901a\u7528\u6570\u636e\u5e93\u64cd\u4f5c\u7684\u6587\u4ef6\uff0c\u76ee\u7684\u662f\u7b80\u5316\u5f00\u53d1\u4ee3\u7801\u7684\u4e66\u5199\uff0c\u65e5\u540e\u8fd8\u4f1a\u4e0d\u65ad\u6dfb\u52a0\uff0c\u4f7f\u7528\u65b9\u6cd5\u5982\u4e0b::\n\n\n class ModelDao(PublicDao):\n def __init__(model=Model):\n super().__init__(model)", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "BSD License", "maintainer": "comk", "maintainer_email": "1943336161@qq.com", "name": "comk-django-plugin", "package_url": "https://pypi.org/project/comk-django-plugin/", "platform": "all", "project_url": "https://pypi.org/project/comk-django-plugin/", "project_urls": null, "release_url": "https://pypi.org/project/comk-django-plugin/1.4.1/", "requires_dist": null, "requires_python": "", "summary": "comk\u4e2a\u4eba\u5f00\u53d1\u7684django\u63d2\u4ef6\uff0c\u7528\u4e8e\u5f88\u65b9\u4fbf\u7684\u8bb0\u5f55\u65e5\u5fd7\u3001\u4e0b\u8f7d\u65e5\u5fd7\uff0c\u4ee5\u53ca\u5176\u4ed6\u62e5\u6709\u5c0f\u529f\u80fd\u7684\u4e2d\u95f4\u4ef6", "version": "1.4.1" }, "last_serial": 5848555, "releases": { "1.1.5": [ { "comment_text": "", "digests": { "md5": "f8f7dcba10e8425c7238ba67621b8d21", "sha256": "bcc52eaef1007b80f03557fa8d2b442d86ff26d70bd7b26a5e253f8e1642f384" }, "downloads": -1, "filename": "comk_django_plugin-1.1.5.tar.gz", "has_sig": false, "md5_digest": "f8f7dcba10e8425c7238ba67621b8d21", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6052, "upload_time": "2019-03-14T02:07:04", "url": "https://files.pythonhosted.org/packages/ef/ff/bf633b94ddca530b7241b74cae3ebfcf5b3621d41e4581daf1beacf4a03c/comk_django_plugin-1.1.5.tar.gz" } ], "1.1.6": [ { "comment_text": "", "digests": { "md5": "4d2dbc01710ee524a1266ea255529881", "sha256": "b56b2223b34516e9e39aa7f4a14bc336d741e6b12b79e690caa934c834c34dba" }, "downloads": -1, "filename": "comk_django_plugin-1.1.6.tar.gz", "has_sig": false, "md5_digest": "4d2dbc01710ee524a1266ea255529881", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6065, "upload_time": "2019-03-15T09:18:49", "url": "https://files.pythonhosted.org/packages/b6/8e/a99aaa92aa6302254c7394cf55ac8b5018b12a488c84de48e572cc5bfc5a/comk_django_plugin-1.1.6.tar.gz" } ], "1.1.7": [ { "comment_text": "", "digests": { "md5": "252ae3557789b24f5f7f1209eaf82cad", "sha256": "c7cdf8a7c075a18b5a37c79b8ecb14cb138a60b779b6d4898133212ac04be1d3" }, "downloads": -1, "filename": "comk_django_plugin-1.1.7.tar.gz", "has_sig": false, "md5_digest": "252ae3557789b24f5f7f1209eaf82cad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6139, "upload_time": "2019-03-15T09:28:44", "url": "https://files.pythonhosted.org/packages/33/2c/3edcb7fc662425e7b548c90c27efa4aaa3a8eec9ece8a45e48ced64a2573/comk_django_plugin-1.1.7.tar.gz" } ], "1.1.8": [ { "comment_text": "", "digests": { "md5": "8a21a0267f287738d5828d688359f1cf", "sha256": "6ca7d31ccd8466fb6481db0d29bc7c5ad57d4bee301fabe81baf08da70b2fd0c" }, "downloads": -1, "filename": "comk_django_plugin-1.1.8.tar.gz", "has_sig": false, "md5_digest": "8a21a0267f287738d5828d688359f1cf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6150, "upload_time": "2019-03-25T03:29:17", "url": "https://files.pythonhosted.org/packages/84/aa/6f818389bfe7596b444485303d4ce343e61d182215f9772b765e59dd6713/comk_django_plugin-1.1.8.tar.gz" } ], "1.1.9": [ { "comment_text": "", "digests": { "md5": "879a15e4649b35f7eea70df8e186dd70", "sha256": "1d2e980fa9b02f6de0eee8a97ec57cfff16d6c3bb130b3cbd92857ab4f47a384" }, "downloads": -1, "filename": "comk_django_plugin-1.1.9.tar.gz", "has_sig": false, "md5_digest": "879a15e4649b35f7eea70df8e186dd70", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8287, "upload_time": "2019-04-02T07:17:37", "url": "https://files.pythonhosted.org/packages/7b/09/a7f69b1928309fa248c0b0837e2e7833cbdf698323bedb7815dbded36e80/comk_django_plugin-1.1.9.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "34aea25469928a6368a09b6a43a080de", "sha256": "b7722649ddde153d734abf8f3714d6650a32492c71b5d9f39c461e7ad25f26ae" }, "downloads": -1, "filename": "comk_django_plugin-1.2.0.tar.gz", "has_sig": false, "md5_digest": "34aea25469928a6368a09b6a43a080de", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8380, "upload_time": "2019-04-02T09:09:31", "url": "https://files.pythonhosted.org/packages/94/79/a22c4252f0c9c4b3a2e6f8aa0f28fa0fd03a2db284def6dbf45c4c10f33e/comk_django_plugin-1.2.0.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "4986508ce8e1796e8d57211fe9cd385f", "sha256": "960a32cc3f65bb2f845b7c6b78c047066d4ef59592d0e370d258085fd0e850d2" }, "downloads": -1, "filename": "comk_django_plugin-1.2.1.tar.gz", "has_sig": false, "md5_digest": "4986508ce8e1796e8d57211fe9cd385f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8369, "upload_time": "2019-04-04T10:59:24", "url": "https://files.pythonhosted.org/packages/bc/86/0198b372fe964f9e5d2c185facae93c650a9405df9d5aa40426ce696cb96/comk_django_plugin-1.2.1.tar.gz" } ], "1.2.2": [ { "comment_text": "", "digests": { "md5": "e0f03642fd7b4a57367837f34906206d", "sha256": "9e5dbe35622ce7829172416f231b03eb74d64a5e65b94eb5ac43bd195319cb6f" }, "downloads": -1, "filename": "comk_django_plugin-1.2.2.tar.gz", "has_sig": false, "md5_digest": "e0f03642fd7b4a57367837f34906206d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8473, "upload_time": "2019-04-04T11:16:19", "url": "https://files.pythonhosted.org/packages/ab/f3/df4fd79765ec3876950b69dc4b7350c60037236657b8287d48d33f1cb168/comk_django_plugin-1.2.2.tar.gz" } ], "1.2.3": [ { "comment_text": "", "digests": { "md5": "eee1dcd56f5acc8b39defc7581fd1c57", "sha256": "737c8e0858c6d02f82f9b5ce2c9f3cdbdc572a2fd474d65d28d3e786eaf4e078" }, "downloads": -1, "filename": "comk_django_plugin-1.2.3.tar.gz", "has_sig": false, "md5_digest": "eee1dcd56f5acc8b39defc7581fd1c57", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8483, "upload_time": "2019-04-12T01:06:40", "url": "https://files.pythonhosted.org/packages/2a/b0/2540a00ed9df684b7691db20e9497e133cffd877bb6340e897b4e5323086/comk_django_plugin-1.2.3.tar.gz" } ], "1.2.4": [ { "comment_text": "", "digests": { "md5": "8dd693f8836713cc3229e107403e4d9c", "sha256": "81bf018f63d687b9a65eb2ac55064afbbc031ae2ae19da8b9f3cfdcb8bcd1810" }, "downloads": -1, "filename": "comk_django_plugin-1.2.4.tar.gz", "has_sig": false, "md5_digest": "8dd693f8836713cc3229e107403e4d9c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8504, "upload_time": "2019-04-16T08:08:06", "url": "https://files.pythonhosted.org/packages/93/0c/1347625f7213f7a6f0c8f11f0757547ee43b4508ee455c5cd9e7eea8018c/comk_django_plugin-1.2.4.tar.gz" } ], "1.2.5": [ { "comment_text": "", "digests": { "md5": "07020e7aba8d7954b351ace706758881", "sha256": "44d7625839e820cf948b50c25d9318431103f9cfde3962f473d46181797afd23" }, "downloads": -1, "filename": "comk_django_plugin-1.2.5.tar.gz", "has_sig": false, "md5_digest": "07020e7aba8d7954b351ace706758881", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8501, "upload_time": "2019-04-16T08:09:35", "url": "https://files.pythonhosted.org/packages/74/1a/bb893ff1ede37b4bc60d6a88ecd75619c6ca19130173f9a51996a9cf9a4f/comk_django_plugin-1.2.5.tar.gz" } ], "1.2.6": [ { "comment_text": "", "digests": { "md5": "f16ae78350b334532cc4c9af2fcbc2f4", "sha256": "3f1243a1a23d4be131214b432293df4e2afcf2c163006bcdf8f0cf37ad7579ba" }, "downloads": -1, "filename": "comk_django_plugin-1.2.6.tar.gz", "has_sig": false, "md5_digest": "f16ae78350b334532cc4c9af2fcbc2f4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8591, "upload_time": "2019-04-20T09:40:25", "url": "https://files.pythonhosted.org/packages/90/e5/f04533b59bf83091a0096e7eb5bf3f2da3b93abce61d2f7c82a8fe87d5bd/comk_django_plugin-1.2.6.tar.gz" } ], "1.2.7": [ { "comment_text": "", "digests": { "md5": "2e96ec55b6ecf6c9538c3ddb91d3b6bc", "sha256": "617874844f6759be1fce225a70681228398f6ea1453f2652049144fc5972f1ec" }, "downloads": -1, "filename": "comk_django_plugin-1.2.7.tar.gz", "has_sig": false, "md5_digest": "2e96ec55b6ecf6c9538c3ddb91d3b6bc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9414, "upload_time": "2019-04-24T09:58:37", "url": "https://files.pythonhosted.org/packages/0b/3a/6b139607d342c43a267fcae76a274b4788f7a09ec1980c5fe9aa611b60fe/comk_django_plugin-1.2.7.tar.gz" } ], "1.2.8": [ { "comment_text": "", "digests": { "md5": "050873969b1adc5b72b272c8b5bc0afa", "sha256": "333118571e0b68cc67d589ba3bdbaa999a6b8cd5623494b0bfd8ec9e895cd40b" }, "downloads": -1, "filename": "comk_django_plugin-1.2.8.tar.gz", "has_sig": false, "md5_digest": "050873969b1adc5b72b272c8b5bc0afa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9302, "upload_time": "2019-04-24T11:12:36", "url": "https://files.pythonhosted.org/packages/54/2a/7e79523a7d74f6de11e92ef3bead6af0174ff8647492e9efe6508bf751fe/comk_django_plugin-1.2.8.tar.gz" } ], "1.3.0": [ { "comment_text": "", "digests": { "md5": "1152544d82970d70b56064b471d2f063", "sha256": "d4daf0f03ff58d10c21117dcada6317626c7bd67316776230aa324deaafac41e" }, "downloads": -1, "filename": "comk_django_plugin-1.3.0.tar.gz", "has_sig": false, "md5_digest": "1152544d82970d70b56064b471d2f063", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11022, "upload_time": "2019-04-26T08:11:46", "url": "https://files.pythonhosted.org/packages/d5/40/2fdaea79932466a907900f78e443a560b400918a805a91e89ec827b1dc11/comk_django_plugin-1.3.0.tar.gz" } ], "1.3.1": [ { "comment_text": "", "digests": { "md5": "58b5ff35b9c1b9f9380709178f4af95e", "sha256": "6a5296826b583ca88472b45db10dbb67c811e1beff384ba820b9af945c080912" }, "downloads": -1, "filename": "comk_django_plugin-1.3.1.tar.gz", "has_sig": false, "md5_digest": "58b5ff35b9c1b9f9380709178f4af95e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11089, "upload_time": "2019-09-17T09:56:23", "url": "https://files.pythonhosted.org/packages/cc/7e/c5ee86f677bbb530f9f202b6b8095dfd04458c82c0cfb8e7b3b4b0cdd8a0/comk_django_plugin-1.3.1.tar.gz" } ], "1.3.2": [ { "comment_text": "", "digests": { "md5": "2f765cad415a75412546277f2b47242a", "sha256": "8de518e5eba8e3b82f74b90bf7b890a4dfb854beef32e565af1d82bae9d07760" }, "downloads": -1, "filename": "comk_django_plugin-1.3.2.tar.gz", "has_sig": false, "md5_digest": "2f765cad415a75412546277f2b47242a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11096, "upload_time": "2019-09-17T09:59:20", "url": "https://files.pythonhosted.org/packages/9c/e9/e61cc4493ee94585d4e0115c739a8d12694ce95dbc2aebc035faf49e2a59/comk_django_plugin-1.3.2.tar.gz" } ], "1.4.1": [ { "comment_text": "", "digests": { "md5": "b2a79c0859162432c011d5b837b61919", "sha256": "8256625df32c566198c7545c8aab027022db3c2970076419a79c0db72f6e4092" }, "downloads": -1, "filename": "comk_django_plugin-1.4.1.tar.gz", "has_sig": false, "md5_digest": "b2a79c0859162432c011d5b837b61919", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13573, "upload_time": "2019-09-18T08:14:04", "url": "https://files.pythonhosted.org/packages/f3/ea/2920bfe0e51e497ecb90682f94f8060bee584a02e72d96b0713cdcbfc000/comk_django_plugin-1.4.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b2a79c0859162432c011d5b837b61919", "sha256": "8256625df32c566198c7545c8aab027022db3c2970076419a79c0db72f6e4092" }, "downloads": -1, "filename": "comk_django_plugin-1.4.1.tar.gz", "has_sig": false, "md5_digest": "b2a79c0859162432c011d5b837b61919", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13573, "upload_time": "2019-09-18T08:14:04", "url": "https://files.pythonhosted.org/packages/f3/ea/2920bfe0e51e497ecb90682f94f8060bee584a02e72d96b0713cdcbfc000/comk_django_plugin-1.4.1.tar.gz" } ] }