{ "info": { "author": "Dra\u017een Lu\u010danin", "author_email": "kermit666@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "===============================\ndjango-spa\n===============================\n\n\n.. image:: https://img.shields.io/pypi/v/django-spa.svg\n :target: https://pypi.python.org/pypi/django-spa\n\n.. image:: https://img.shields.io/travis/metakermit/django-spa.svg\n :target: https://travis-ci.org/metakermit/django-spa\n\n.. image:: https://readthedocs.org/projects/django-spa/badge/?version=latest\n :target: https://django-spa.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\n.. image:: https://pyup.io/repos/github/metakermit/django-spa/shield.svg\n :target: https://pyup.io/repos/github/metakermit/django-spa/\n :alt: Updates\n\n\nSimple Django configuration to serve a single-page app (SPA).\n\nThe following SPA settings are handled in django-spa:\n\n* index.html served on ``/``\n* all ``/static/...`` files served on ``/...``\n* Django's urls still work (Django admin, templates, Django REST framework APIs)\n* everything else goes to ``/`` for frontend routing (e.g. `react-router`_)\n\nUsage\n------\n\nFirst set up WhiteNoise_, as django-spa overrides some of its functionality.\n\nAdd django-spa to your *requirements.txt*::\n\n django-spa\n\nUpdate *settings.py* with the django-spa middleware::\n\n MIDDLEWARE = [\n 'django.middleware.security.SecurityMiddleware',\n 'whitenoise.middleware.WhiteNoiseMiddleware',\n 'django.contrib.sessions.middleware.SessionMiddleware',\n 'django.middleware.common.CommonMiddleware',\n 'django.middleware.csrf.CsrfViewMiddleware',\n 'django.contrib.auth.middleware.AuthenticationMiddleware',\n 'django.contrib.messages.middleware.MessageMiddleware',\n 'django.middleware.clickjacking.XFrameOptionsMiddleware',\n 'spa.middleware.SPAMiddleware',\n ]\n\nUse the django-spa static file storage::\n\n STATICFILES_STORAGE = 'spa.storage.SPAStaticFilesStorage'\n\nYou should be good to go!\n\nCredits\n---------\n\nUsed some parts of the solution suggested in this `WhiteNoise issue`_\nfor serving index.html on ``/``.\nThis package was created with Cookiecutter_\nand the `audreyr/cookiecutter-pypackage`_ project template.\n\nLicense\n--------\n\nMIT_\n\n.. _Whitenoise: https://github.com/evansd/whitenoise/\n.. _`Whitenoise issue`: https://github.com/evansd/whitenoise/issues/12\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage\n.. _`react-router`: https://reacttraining.com/react-router/\n.. _MIT: LICENSE\n\n\n=======\nHistory\n=======\n\n0.2.0 (2017-09-01)\n------------------\n\n* Fix #3\n\n\n0.1.1 (2017-04-08)\n------------------\n\n* Metadata fixes.\n\n\n0.1.0 (2017-04-08)\n------------------\n\n* First release on PyPI.\n* Initial django-spa middleware.\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/metakermit/django-spa", "keywords": "django spa django-spa react angular yeoman heroku", "license": "MIT license", "maintainer": "", "maintainer_email": "", "name": "django-spa", "package_url": "https://pypi.org/project/django-spa/", "platform": "", "project_url": "https://pypi.org/project/django-spa/", "project_urls": { "Homepage": "https://github.com/metakermit/django-spa" }, "release_url": "https://pypi.org/project/django-spa/0.2.0/", "requires_dist": [ "whitenoise (==3.2.2)" ], "requires_python": "", "summary": "Simple Django configuration to serve a single-page app", "version": "0.2.0" }, "last_serial": 3140773, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "376c124e9bf5abd84b37dac620e1176e", "sha256": "341d94d88b7b6da621c8a35a18a17ea93b540a9bc0b277879713af1540bd3584" }, "downloads": -1, "filename": "django_spa-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "376c124e9bf5abd84b37dac620e1176e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6422, "upload_time": "2017-04-08T12:12:34", "url": "https://files.pythonhosted.org/packages/54/a5/eaa00260a39a7d9cbca54f42029b42a877354db7ad231f57da0ef4cb7799/django_spa-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0f2b10513e32cc597a2a28aa4f026708", "sha256": "abfdacbd4cae0cf9f725f0878230509a0da2d052cbc744c8c392e0cd388af664" }, "downloads": -1, "filename": "django-spa-0.1.0.tar.gz", "has_sig": false, "md5_digest": "0f2b10513e32cc597a2a28aa4f026708", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14087, "upload_time": "2017-04-08T12:12:36", "url": "https://files.pythonhosted.org/packages/43/e0/56187efa333c8e4ea519e1d82f2b7254480eaf63106e7b7b086bac860de3/django-spa-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "3ab1b40e81b8b78ff34e4f81cca920f3", "sha256": "c8e833dd3976e4993562d266556c88af183ece9ee16215ee529e90786bd9550d" }, "downloads": -1, "filename": "django_spa-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3ab1b40e81b8b78ff34e4f81cca920f3", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6471, "upload_time": "2017-04-08T12:22:20", "url": "https://files.pythonhosted.org/packages/e7/86/a4c4927a3dc764a3e13a72c5953d4a9c0f3db4833e88b9fc49f914d0b755/django_spa-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "efda763769e72c8ed6bbef8407d5e8d4", "sha256": "16beb0f125cc88fdeb383c4c33976829da698245088309ff093cfe41bf803472" }, "downloads": -1, "filename": "django-spa-0.1.1.tar.gz", "has_sig": false, "md5_digest": "efda763769e72c8ed6bbef8407d5e8d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14068, "upload_time": "2017-04-08T12:22:21", "url": "https://files.pythonhosted.org/packages/07/6d/b0365a7b054d0b9f210b2064ed61eaf0d1d6fdbbb680e8895f4b2676ee44/django-spa-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "a54cbb3bb1ee8e602478453170448438", "sha256": "04ea7876ae734a338f0839b4e1b6d3ded90a6c566c62375845a8bd74ce6e6ed3" }, "downloads": -1, "filename": "django_spa-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a54cbb3bb1ee8e602478453170448438", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7320, "upload_time": "2017-09-01T16:10:15", "url": "https://files.pythonhosted.org/packages/7f/96/1b6ba9d3e2d81659870e3d26a64c3b36ea4ac05d757ee2af3a825bcd49d0/django_spa-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bcb5afc5aefc545d2c8c3914ec29e3d9", "sha256": "f97ced17b7afafb8d29ba9aebe3e3c2b0970133f2e48c3a952f854a0d77f4359" }, "downloads": -1, "filename": "django-spa-0.2.0.tar.gz", "has_sig": false, "md5_digest": "bcb5afc5aefc545d2c8c3914ec29e3d9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14636, "upload_time": "2017-09-01T16:10:16", "url": "https://files.pythonhosted.org/packages/9f/0d/da4efc364636f79a0f0f5478c8e42c004ce2810a15d2590cf5719ba56c41/django-spa-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a54cbb3bb1ee8e602478453170448438", "sha256": "04ea7876ae734a338f0839b4e1b6d3ded90a6c566c62375845a8bd74ce6e6ed3" }, "downloads": -1, "filename": "django_spa-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a54cbb3bb1ee8e602478453170448438", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7320, "upload_time": "2017-09-01T16:10:15", "url": "https://files.pythonhosted.org/packages/7f/96/1b6ba9d3e2d81659870e3d26a64c3b36ea4ac05d757ee2af3a825bcd49d0/django_spa-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bcb5afc5aefc545d2c8c3914ec29e3d9", "sha256": "f97ced17b7afafb8d29ba9aebe3e3c2b0970133f2e48c3a952f854a0d77f4359" }, "downloads": -1, "filename": "django-spa-0.2.0.tar.gz", "has_sig": false, "md5_digest": "bcb5afc5aefc545d2c8c3914ec29e3d9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14636, "upload_time": "2017-09-01T16:10:16", "url": "https://files.pythonhosted.org/packages/9f/0d/da4efc364636f79a0f0f5478c8e42c004ce2810a15d2590cf5719ba56c41/django-spa-0.2.0.tar.gz" } ] }