{ "info": { "author": "Dominique Lederer", "author_email": "dominique.lederer@return1.at", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "django-sslify-admin\n===================\n\nForce SSL on your Django admin site\n\nInstall\n-------\n\nTo install ``django-sslify-admin``, simply run\n``pip install django-sslify-admin`` and you'll get the latest version\ninstalled automatically.\n\nUsage\n-----\n\nModify your Django ``settings.py`` file, and prepend\n``sslifyadmin.middleware.SSLifyAdminMiddleware`` to your\n``MIDDLEWARE_CLASSES`` setting:\n\n.. code:: python\n\n MIDDLEWARE_CLASSES = (\n 'sslifyadmin.middleware.SSLifyAdminMiddleware',\n # ...\n )\n\n**NOTE**: Make sure ``sslify.middleware.SSLifyMiddleware`` is the first\nmiddleware class listed, as this will ensure that if a user makes an\nunsecure request (over HTTP), they will be redirected to HTTPs before\nany actual processing happens. If you plan to use\n```i18n_patterns`` `__\non admin urls, this middleware needs to be appended AFTER\n```django.middleware.locale.LocaleMiddleware`` `__!\n\nCustom admin url?\n~~~~~~~~~~~~~~~~~\n\nIf you are using a custom admin url, you have to set\n``SSLIFY_ADMIN_NAMESPACE`` in your ``settings.py``:\n\n.. code:: python\n\n # SSLIFY_ADMIN_NAMESPACE = \"admin\" # default\n SSLIFY_ADMIN_NAMESPACE = \"myadminurl\" # custom\n\nEnabling/Disabling\n~~~~~~~~~~~~~~~~~~\n\nBy default, the admin is sslfying if settings.DEBUG is False, but for\nsome reason (ie. local, test suite) you may want remove debugging and not trigger the sslify.\nYou have to set ``SSLIFY_ADMIN_DISABLE`` in your ``settings.py``:\n\n.. code:: python\n\n SSLIFY_ADMIN_DISABLE = True\n\nBehind a Proxy? (Heroku)\n~~~~~~~~~~~~~~~~~~~~~~~~\n\nIf your Django app is behind a proxy (like Heroku), though, the proxy\nmay be \u201cswallowing\u201d the fact that a request is HTTPS, using a non-HTTPS\nconnection between the proxy and Django.\n\nIn this situation, you\u2019ll want to configure the proxy (Heroku already\ndoes that for you) to set a custom HTTP header that tells Django whether\nthe request came in via HTTPS, and you\u2019ll want to set\n``SECURE_PROXY_SSL_HEADER`` so that Django knows what header to look\nfor, like this:\n\n.. code:: python\n\n SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')\n\nNotes\n-----\n\nThis code was taken and modified from `this StackOverflow\nthread `__.\nThis Project is also influenced by Randall Degges\n`django-sslify `__, use this,\nif you want to secure your whole site, and not only the admin interface\nof Django.\n\nIf you like this project please consider giving me a\n`gittip `__, thanks! :)\n\nTests\n-----\n\n|Build Status|\n\n.. code:: bash\n\n $ git clone https://github.com/return1/django-sslify-admin.git\n $ cd django-sslify-admin\n $ python setup.py develop\n ...\n $ python setup.py test\n Creating test database for alias 'default'...\n ..\n ----------------------------------------------------------------------\n Ran 2 tests in 0.003s\n\n OK\n Destroying test database for alias 'default'...\n\nLicense\n=======\n\nhttp://return1.mit-license.org/\n\n.. |Build Status| image:: https://api.travis-ci.org/return1/django-sslify-admin.png?branch=master\n :target: http://travis-ci.org/return1/django-sslify-admin", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/return1/django-sslify-admin", "keywords": "django ssl https middleware admin", "license": "mit", "maintainer": null, "maintainer_email": null, "name": "django-sslify-admin", "package_url": "https://pypi.org/project/django-sslify-admin/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-sslify-admin/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/return1/django-sslify-admin" }, "release_url": "https://pypi.org/project/django-sslify-admin/0.5.0/", "requires_dist": null, "requires_python": null, "summary": "Force SSL on your Django admin site.", "version": "0.5.0" }, "last_serial": 1146252, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "2d79164c6962a94d6e700fb7c98e3afc", "sha256": "ac4a6a1009336a59390d63c5303ac24635a9679d556ed924f755adb894786385" }, "downloads": -1, "filename": "django-sslify-admin-0.1.tar.gz", "has_sig": false, "md5_digest": "2d79164c6962a94d6e700fb7c98e3afc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3485, "upload_time": "2013-04-03T10:17:16", "url": "https://files.pythonhosted.org/packages/ad/cb/5bd0f72347bf51aa61c6f3e40f7a27b59099e9e448eeeb3391460abb53b5/django-sslify-admin-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "ecfc613c00d7fe01a661ad9005f864a4", "sha256": "23263491c70cf6ab11dc1f5fb1cff12ed557ad6412503d62da4204976af1feb4" }, "downloads": -1, "filename": "django-sslify-admin-0.2.tar.gz", "has_sig": false, "md5_digest": "ecfc613c00d7fe01a661ad9005f864a4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3608, "upload_time": "2013-06-28T16:33:17", "url": "https://files.pythonhosted.org/packages/b0/fe/b7c91815c5383c7db6215df843555bac45107071d5459404c377f41a419f/django-sslify-admin-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "d3e60e2a323daa9124b3f6b6c4366f59", "sha256": "91ed116461363ff91b4c17d94d4d71939933dd753a92b90402579ea333de26ee" }, "downloads": -1, "filename": "django-sslify-admin-0.3.tar.gz", "has_sig": false, "md5_digest": "d3e60e2a323daa9124b3f6b6c4366f59", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3447, "upload_time": "2014-02-06T16:21:12", "url": "https://files.pythonhosted.org/packages/02/bd/022b4576e3dafd6639a3840e5c579acc20dc948f35b5c3acfb35bec09cc4/django-sslify-admin-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "e960e1954a2a46962dba82b5fda57205", "sha256": "e8e34e209af7ccac52dac6b9aad23dfe8af7de01222decd8d17ee6f1d5750d24" }, "downloads": -1, "filename": "django-sslify-admin-0.4.tar.gz", "has_sig": false, "md5_digest": "e960e1954a2a46962dba82b5fda57205", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3858, "upload_time": "2014-07-03T13:36:58", "url": "https://files.pythonhosted.org/packages/10/07/e6aeeb95be7ed24d417bcd415b3dda639fe2c6c8b5f8a903a5a7f2161137/django-sslify-admin-0.4.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "7ebb9adf01757ac6013d2027f77c43a2", "sha256": "f4f3877e4ace8451ded7764f7f4b70459da405d73a5a72a28f0d23f50080291d" }, "downloads": -1, "filename": "django-sslify-admin-0.5.0.tar.gz", "has_sig": false, "md5_digest": "7ebb9adf01757ac6013d2027f77c43a2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4199, "upload_time": "2014-07-03T14:18:30", "url": "https://files.pythonhosted.org/packages/64/25/d5e065d417835d98adbf1a5880e85dffafd0deb24b768f7a5a40e34259be/django-sslify-admin-0.5.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7ebb9adf01757ac6013d2027f77c43a2", "sha256": "f4f3877e4ace8451ded7764f7f4b70459da405d73a5a72a28f0d23f50080291d" }, "downloads": -1, "filename": "django-sslify-admin-0.5.0.tar.gz", "has_sig": false, "md5_digest": "7ebb9adf01757ac6013d2027f77c43a2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4199, "upload_time": "2014-07-03T14:18:30", "url": "https://files.pythonhosted.org/packages/64/25/d5e065d417835d98adbf1a5880e85dffafd0deb24b768f7a5a40e34259be/django-sslify-admin-0.5.0.tar.gz" } ] }