{ "info": { "author": "Future Proof Games", "author_email": "info@futureproofgames.com", "bugtrack_url": null, "classifiers": [ "Framework :: Django :: 1.11", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7" ], "description": "# django-presskit\r\nA port of Rami Ismail's [presskit()/dopresskit](https://github.com/ramiismail/dopresskit) to Django.\r\n\r\n[![Build Status](https://travis-ci.com/FutureProofGames/django-presskit.svg?branch=develop)](https://travis-ci.com/FutureProofGames/django-presskit) [![Coverage Status](https://coveralls.io/repos/github/FutureProofGames/django-presskit/badge.svg?branch=develop)](https://coveralls.io/github/FutureProofGames/django-presskit?branch=develop)\r\n\r\n## Installing\r\n\r\n### Requirements:\r\nRequirements:\r\n* Django < 2\r\n* django-filer\r\n* easy_thumbnails\r\n* Markdown\r\n* Pillow\r\n* django-admin-sortable2\r\n\r\n## Configuring\r\n\r\nAdd \"django_presskit\" and \"adminsortable2\" to your settings.py INSTALLED_APPS.\r\n\r\nAdd `DJANGO_PRESSKIT_DEFAULT_COMPANY_ID = 1` to your settings file.\r\n\r\nIn your main urls.py, add a line like: `url(r'^presskit/', include('django_presskit.urls', namespace='django_presskit')),`\r\n\r\nAll data can be set up in the Django admin.\r\n\r\n## Upgrading\r\n\r\nIf upgrading to 1.1.0, run the following on your project after adding `adminsortable2` to your settings:\r\n\r\n```\r\npython manage.py reorder django_presskit.additionallink django_presskit.award django_presskit.companyimageattachment django_presskit.companylogoattachment django_presskit.companyvideo django_presskit.contact django_presskit.credit django_presskit.feature django_presskit.platform django_presskit.price django_presskit.project django_presskit.projectimageattachment django_presskit.projectlogoattachment django_presskit.quote django_presskit.social django_presskit.trailer\r\n```\r\n\r\n## Converting from presskit()/dopresskit\r\n\r\nIf you are switching from Rami Ismail's presskit(), you'll want to make sure any old URLs that are floating around continue to work. Presskit() URLs look like `/presskit/sheet.php?p=exploit_zero_day`. You'll want to convert those into something like `/presskit/exploit-zero-day/`.\r\n\r\nMake sure that the slugs for your django-presskit projects match those for your presskit() projects. Then, you can use URL rewriting to redirect users to the new URL.\r\n\r\nIf you have Apache with mod_rewrite enabled, add something like the following to your `.htaccess` file:\r\n\r\n```\r\nRewriteEngine on\r\nRewriteCond %{QUERY_STRING} ^p=(.*)$\r\nRewriteRule \"^/?presskit/sheet.php\" \"/presskit/projects/%1\" [N]\r\n# Repeatedly remove underscores until only one is left.\r\nRewriteRule \"^(/?presskit/projects/.*)_(.*_.*)$\" \"$1-$2\" [N]\r\n# Redirect with the last underscore rewrite.\r\nRewriteRule \"^(/?presskit/projects/.*)_(.*)$\" \"$1-$2\" [R=301]\r\nRewriteRule \"^/?presskit/sheet\\.php$ \" \"/presskit/\" [R=301]\r\n```\r\n\r\nIf you're using nginx for rewrites, this would look like:\r\n\r\n```\r\nlocation ~* /presskit/sheet.php {\r\n if ($args ~* \"^p=(\\d+)\") {\r\n set $proj $1;\r\n set $args '';\r\n rewrite ^.*$ /presskit/projects/$proj permanent;\r\n }\r\n}\r\n# Remove up to 10 underscores until none are left.\r\nrewrite ^(/?presskit/projects/.*?)_(.*)$ $1-$2 last\r\nrewrite ^/?presskit/sheet\\.php$ /presskit/ permanent\r\n```\r\nIf you're using nginx and one of your slugs has more than ten underscores, add a rewrite above the first one to manually fix that one case. Nginx does not want to loop more than 10 times in a rewrite calculation.\r\n\r\n## Contributing\r\n\r\nWhen submitting issues or pull requests, please adhere to our [Code of Conduct](CODE_OF_CONDUCT.md).\r\n\r\n\r\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/FutureProofGames/django-presskit.git", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "django-presskit", "package_url": "https://pypi.org/project/django-presskit/", "platform": "", "project_url": "https://pypi.org/project/django-presskit/", "project_urls": { "Homepage": "https://github.com/FutureProofGames/django-presskit.git" }, "release_url": "https://pypi.org/project/django-presskit/1.1.2/", "requires_dist": null, "requires_python": "", "summary": "A port of presskit() to Django", "version": "1.1.2" }, "last_serial": 5168821, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "37a7c48164c85d711cd8edceab334e01", "sha256": "ad59020c114a4f7046fb05185ab93c25b04837a6f55dc09b49335328a932f58c" }, "downloads": -1, "filename": "django_presskit-1.0.0-py2-none-any.whl", "has_sig": false, "md5_digest": "37a7c48164c85d711cd8edceab334e01", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 15412, "upload_time": "2019-03-09T03:27:11", "url": "https://files.pythonhosted.org/packages/2b/fe/07b59e71e63efae7f179feb4612e2f6d0339482b0ccd4343198fcfe95531/django_presskit-1.0.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "69e30c9e4ca4e1dd05085889e3a3d880", "sha256": "a78b68076ca5b2938aba482c020f0c87a5e22fa16b23ee56cd23686f1ff648c7" }, "downloads": -1, "filename": "django_presskit-1.0.0.tar.gz", "has_sig": false, "md5_digest": "69e30c9e4ca4e1dd05085889e3a3d880", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15536, "upload_time": "2019-03-09T03:27:13", "url": "https://files.pythonhosted.org/packages/3d/b0/dab2af6bbe76ba7cce09755a38d1b99b50464d50700c91e654199f9e4e97/django_presskit-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "6b2c6a955c61734a5754f1e6ec5e1617", "sha256": "5236a05fda4f130d2acbc39b107034e860a515a141afff79b4a8517861ad405c" }, "downloads": -1, "filename": "django_presskit-1.1.0-py2-none-any.whl", "has_sig": false, "md5_digest": "6b2c6a955c61734a5754f1e6ec5e1617", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 16632, "upload_time": "2019-03-15T17:53:00", "url": "https://files.pythonhosted.org/packages/20/a5/9854df921b3f1a18b24a8c836d73125543ac7e1d4321f9c7bdc021c34c51/django_presskit-1.1.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "edb7d42a93c0d9a3c2d077ef24481f4e", "sha256": "d22c0c325743f22156003b496b67633f1c69b3314437ee560cb3907122f30944" }, "downloads": -1, "filename": "django_presskit-1.1.0.tar.gz", "has_sig": false, "md5_digest": "edb7d42a93c0d9a3c2d077ef24481f4e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10333, "upload_time": "2019-03-15T17:53:01", "url": "https://files.pythonhosted.org/packages/c6/9f/b03532eb121c646ff499268daf87ee6a9a27e8a9a4fbc0a73ce6837ebc6a/django_presskit-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "7927216a511b37b54af01bef391876ee", "sha256": "779eb8e8ecd9710b8087bf29d9f190ef64e227c63f6a4e3b20d9fba2938399e3" }, "downloads": -1, "filename": "django_presskit-1.1.1-py2-none-any.whl", "has_sig": false, "md5_digest": "7927216a511b37b54af01bef391876ee", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 28987, "upload_time": "2019-04-02T15:48:04", "url": "https://files.pythonhosted.org/packages/0a/95/a2b1e9b874c16e18865587670724dce210719e09ffae965d50da1c336516/django_presskit-1.1.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "115c784d95f6814b8e54fb7ae366d464", "sha256": "4638b86c9f3ee690b6f6f43aa544b8d5fec00e61b7ae177f1c7cf5e15d3e7801" }, "downloads": -1, "filename": "django_presskit-1.1.1.tar.gz", "has_sig": false, "md5_digest": "115c784d95f6814b8e54fb7ae366d464", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16143, "upload_time": "2019-04-02T15:48:06", "url": "https://files.pythonhosted.org/packages/4d/f3/7ddefbf507508dbc854cc62facd6bee3724751f7274dcd5ca8459ce6a966/django_presskit-1.1.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "5c1f378ea62f9d01bdb2c09e4c45c38b", "sha256": "81365bfc8bd177cfea9758ffbf75013884b5ce39d60ca0e88140b75e8581e78e" }, "downloads": -1, "filename": "django_presskit-1.1.2-py2-none-any.whl", "has_sig": false, "md5_digest": "5c1f378ea62f9d01bdb2c09e4c45c38b", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 38449, "upload_time": "2019-04-21T00:58:21", "url": "https://files.pythonhosted.org/packages/80/2b/cf1c1125072b0c0ce8dc6310a709185d1bfc1f39f73c0d449b8bc90686dc/django_presskit-1.1.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "743e343e71105996b981bba4755ce5f7", "sha256": "29b330ffc3b58a2512741de702d7f64e9e21bd098464a517d13cfab6d1772d92" }, "downloads": -1, "filename": "django_presskit-1.1.2.tar.gz", "has_sig": false, "md5_digest": "743e343e71105996b981bba4755ce5f7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16172, "upload_time": "2019-04-21T00:58:23", "url": "https://files.pythonhosted.org/packages/79/d5/c09d1873a17bf4e1d2bb55996b5742b48b4757b9e15719f41fdd25d42c22/django_presskit-1.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5c1f378ea62f9d01bdb2c09e4c45c38b", "sha256": "81365bfc8bd177cfea9758ffbf75013884b5ce39d60ca0e88140b75e8581e78e" }, "downloads": -1, "filename": "django_presskit-1.1.2-py2-none-any.whl", "has_sig": false, "md5_digest": "5c1f378ea62f9d01bdb2c09e4c45c38b", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 38449, "upload_time": "2019-04-21T00:58:21", "url": "https://files.pythonhosted.org/packages/80/2b/cf1c1125072b0c0ce8dc6310a709185d1bfc1f39f73c0d449b8bc90686dc/django_presskit-1.1.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "743e343e71105996b981bba4755ce5f7", "sha256": "29b330ffc3b58a2512741de702d7f64e9e21bd098464a517d13cfab6d1772d92" }, "downloads": -1, "filename": "django_presskit-1.1.2.tar.gz", "has_sig": false, "md5_digest": "743e343e71105996b981bba4755ce5f7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16172, "upload_time": "2019-04-21T00:58:23", "url": "https://files.pythonhosted.org/packages/79/d5/c09d1873a17bf4e1d2bb55996b5742b48b4757b9e15719f41fdd25d42c22/django_presskit-1.1.2.tar.gz" } ] }