{ "info": { "author": "Douwe van der Meij, Job Ganzevoort", "author_email": "vandermeij@gw20e.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v2 (GPLv2)", "License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)", "Operating System :: OS Independent", "Programming Language :: Python" ], "description": "Django Diazo\n============\n\nIntegrate Diazo in Django using WSGI middleware and add/change themes\nusing the Django Admin interface.\n\nThe code is maintained on GitHub (https://github.com/Goldmund-Wyldebeast-Wunderliebe/django-diazo).\n\n\nInstallation\n------------\n\nInstall the package:\n\n pip install django-diazo\n\n\n### settings.py\n\nAdd the app to your project:\n\n INSTALLED_APPS = (\n ...\n 'adminsortable2',\n 'django_diazo',\n ...\n )\n\nAdd middleware (or WSGI, see below):\n\n MIDDLEWARE_CLASSES += (\n 'django_diazo.middleware.DjangoDiazoMiddleware',\n )\n\nIf you want to know if Django-Diazo is turned on in your templates add:\n\n TEMPLATE_CONTEXT_PROCESSORS = (\n ...\n 'django_diazo.context_processors.diazo_enabled',\n )\n\nThe variable `DIAZO_ENABLED` is now available in your templates.\n\n!! IMPORTANT !!\nNote that when using the Django middleware instrumentation the Diazo `` rules won't work.\nYou have to provide regular expression patterns in `Theme.pattern` to prevent some pages (by url) to be themed.\nWhen you want to disable theming for certain pages by content based rules for ``, you need to use the\nWSGI middleware instead.\n\n\n### wsgi.py\n\nIf you rather use WSGI than Django middleware or you have to (at the moment) since you use exotic `` rules,\nadd the following lines to your `wsgi.py` file:\n\n # Apply WSGI middleware here.\n from django_diazo.wsgi import DiazoMiddlewareWrapper\n application = DiazoMiddlewareWrapper(application)\n\n\n### Database (migrations)\n\nAdd the following to your settings (Django >= 1.7):\n\n MIGRATION_MODULES = {\n 'django_diazo': 'django_diazo.migrations_django',\n }\n\nMigrate the database:\n\n python manage.py migrate django_diazo\n\n\nCreate a built-in theme\n-----------------------\n\nYou might want to supply your Django application with an out-of-the-box\ntheme, probably also managed in a VCS.\n\nCreate a new app with a `diazo.py` file in its root. The contents of\nthis file is should be something like this:\n\n from django_diazo.theme import DiazoTheme, registry\n\n class SomeTheme(DiazoTheme):\n name = 'Some Theme'\n slug = 'some_theme'\n pattern = '^(?!.*admin)' # Theme everything but /admin\n registry.register(SomeTheme)\n\nDon't forget to put your assets in the static folder, like an `index.html` and a `rules.xml`. You can find a\n`rules.xml` example in `django_diazo/examples`.\n\nTo synchronize the built-in themes with the database/application run the\nfollowing command:\n\n python manage.py syncthemes\n\n\nDjangoCMS 3\n------------\n\nWhen using DjangoCMS 3, you might be interested in a toolbar switch to turn Diazo on/off.\nAdd the following to your settings:\n\n INSTALLED_APPS = (\n ...\n 'django_diazo.contrib.cms',\n ...\n )\n\n MIDDLEWARE_CLASSES += (\n ...\n 'django_diazo.contrib.cms.middleware.DjangoCmsDiazoMiddleware',\n )\n\nThe app will add the toolbar button, the middleware takes care of setting an on/off flag in the session.\n\nNote that in production with wsgi middleware, this only works via a session (cookie), so not directly via the GET\nparameter. You will have to reload the page after switching off the theme to get an unthemed site and vice versa.\n\n\nUpload themes\n-------------\n\nBy default, the .zip files that are uploaded are extracted in the media folder.\nYou might want to serve these files via Django.\nAdd the following to your `urls.py` (only works when `DEBUG = True`):\n\n from django.conf import settings\n from django.conf.urls.static import static\n from django.contrib.staticfiles.urls import staticfiles_urlpatterns\n\n urlpatterns += staticfiles_urlpatterns()\n urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)\n\nFor production environments it is not recommended to serve files from the media folder.\nThis implementation only servers files in the `themes` folder within the media folder but it would be better to serve\nthese files using a web server and not via Django. The same holds for your `static` folder.\n\n\nExample themes / application\n----------------------------\n\nTake a look at https://github.com/Goldmund-Wyldebeast-Wunderliebe/django-diazo-themes and\nhttps://github.com/Goldmund-Wyldebeast-Wunderliebe/django-diazo-blog for examples of built-in themes and an integration\nexample.\n\nOur blog post http://www.goldmund-wyldebeast-wunderliebe.com/tech-blog/blog-posts/using-diazo-in-django also covers\nthese examples and some more background.\n\nAlso take a look at `django_diazo.contrib.themes` in this package.", "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/Goldmund-Wyldebeast-Wunderliebe/django-diazo", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "django_diazo", "package_url": "https://pypi.org/project/django_diazo/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django_diazo/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/Goldmund-Wyldebeast-Wunderliebe/django-diazo" }, "release_url": "https://pypi.org/project/django_diazo/2.0.2/", "requires_dist": null, "requires_python": null, "summary": "Integrate Diazo in Django using WSGI middleware and\n add/change themes using the Django Admin interface.", "version": "2.0.2" }, "last_serial": 1614621, "releases": { "0.3": [ { "comment_text": "", "digests": { "md5": "73e25a12f8e676c4c2477838e786a6fb", "sha256": "6d155085ef4f65dbe9093d96b81c41af48de3725dd8ca717462ae4ba8705c3dd" }, "downloads": -1, "filename": "django_diazo-0.3.zip", "has_sig": false, "md5_digest": "73e25a12f8e676c4c2477838e786a6fb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23830, "upload_time": "2013-10-22T12:48:10", "url": "https://files.pythonhosted.org/packages/26/7b/2778503c0afe370166849386827bb18aee536eb7ce656a3f2e3c5305e135/django_diazo-0.3.zip" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "6362bf76b2d7ae6ed3a7105051be4d2f", "sha256": "d2b10b22df72192c0db49c674fcca06ffda825cf17447a55f86038e91c463118" }, "downloads": -1, "filename": "django_diazo-0.4.zip", "has_sig": false, "md5_digest": "6362bf76b2d7ae6ed3a7105051be4d2f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26117, "upload_time": "2013-10-23T12:51:00", "url": "https://files.pythonhosted.org/packages/00/c4/4384d6046bd7b0f9060bd35149b73c362c033db1014520ce36c2c6b84fcb/django_diazo-0.4.zip" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "8f752b266542b318f2f54b011104b0dc", "sha256": "f2c66ef26fc0575beb784e34d1073b1ba37609637db0547670a9c394764b8bad" }, "downloads": -1, "filename": "django_diazo-0.5.zip", "has_sig": false, "md5_digest": "8f752b266542b318f2f54b011104b0dc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 332125, "upload_time": "2013-10-29T12:52:34", "url": "https://files.pythonhosted.org/packages/22/52/6e19dbc6d849dd728e56cc6fdef5b768cfd1ca1b93b40ecfbb6654e4de70/django_diazo-0.5.zip" } ], "1.0": [ { "comment_text": "", "digests": { "md5": "b6e63baac9d2bc957aed4964e2de0f95", "sha256": "bef35f866f4c4906e52366c295c3d933b7c23f7d4e3ad9ea95e55591b2eab39a" }, "downloads": -1, "filename": "django_diazo-1.0.zip", "has_sig": false, "md5_digest": "b6e63baac9d2bc957aed4964e2de0f95", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 335010, "upload_time": "2013-12-20T16:00:12", "url": "https://files.pythonhosted.org/packages/fb/c8/adc5943336b2c9778e9ee6f1d1d32a2a418875e4ed0001270ef7c8c3baf2/django_diazo-1.0.zip" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "28cc2320fb3164658269c69a0849c2d2", "sha256": "ec231dc60531ff5b17339c60a0a3efd4052c03918bdfe8fbef5929617af5d891" }, "downloads": -1, "filename": "django_diazo-1.1.zip", "has_sig": false, "md5_digest": "28cc2320fb3164658269c69a0849c2d2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 340163, "upload_time": "2014-03-12T15:27:17", "url": "https://files.pythonhosted.org/packages/00/c5/03fa1cc23e2d4a2db2efaacf0b6ee72a14098d01df842bdc501354839cda/django_diazo-1.1.zip" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "154ff14cd32befa2221e14658ebc515d", "sha256": "67182bbfeefebfb8c6dce812eb8dc779ab135b4549798daa5f4e181c8228d63e" }, "downloads": -1, "filename": "django_diazo-1.1.1.zip", "has_sig": false, "md5_digest": "154ff14cd32befa2221e14658ebc515d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 341416, "upload_time": "2014-03-12T15:45:51", "url": "https://files.pythonhosted.org/packages/3c/7f/7c93a983de04e38d16d5690b8cb872227e21bdbbc84a327f746c15c5e40e/django_diazo-1.1.1.zip" } ], "1.1.5": [ { "comment_text": "", "digests": { "md5": "a0126d147bdcaae5482a4b2894aaf8e3", "sha256": "f20f92adfea24e1852f46e1c99a253426d1659bc5e9222f5ec6f0a674754b7ea" }, "downloads": -1, "filename": "django_diazo-1.1.5.zip", "has_sig": false, "md5_digest": "a0126d147bdcaae5482a4b2894aaf8e3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 343682, "upload_time": "2014-05-20T07:44:55", "url": "https://files.pythonhosted.org/packages/10/fd/de907efc1f3da20faa6651fba402f3f695f8e8de7f299dd18c5feac28851/django_diazo-1.1.5.zip" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "4807d80eff4067b38da1fae136975eb0", "sha256": "bfb4df9b1d8c073fc297bda7db96bc2536e6aaf6cca96068e318a5c1a6f8fa6d" }, "downloads": -1, "filename": "django_diazo-1.2.0.zip", "has_sig": false, "md5_digest": "4807d80eff4067b38da1fae136975eb0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 343818, "upload_time": "2014-08-31T14:17:34", "url": "https://files.pythonhosted.org/packages/e0/5e/53b6df95ff29ea615f5d05f5c5ac5bcdc2404385a172d7a6e767fad9d1f3/django_diazo-1.2.0.zip" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "edcf457cfc836d3793fb4eb519933f35", "sha256": "af1017e4dd8b26890e67494854bfe23f946695d41121488234955e8d8042226a" }, "downloads": -1, "filename": "django_diazo-1.2.1.tar.gz", "has_sig": false, "md5_digest": "edcf457cfc836d3793fb4eb519933f35", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 293785, "upload_time": "2015-01-24T15:15:52", "url": "https://files.pythonhosted.org/packages/df/24/034c15321a73e009711315fb7e6769a5131ed9dbf2c20634c0a1136b23c0/django_diazo-1.2.1.tar.gz" }, { "comment_text": "", "digests": { "md5": "dd0849ee3802e0e4a829d42c1acdc65f", "sha256": "bc52d1141a5a0052b63ee9a219edeb5ccf66669eb63014de9117e6641c0569fd" }, "downloads": -1, "filename": "django_diazo-1.2.1.zip", "has_sig": false, "md5_digest": "dd0849ee3802e0e4a829d42c1acdc65f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 340743, "upload_time": "2015-01-24T15:24:23", "url": "https://files.pythonhosted.org/packages/e4/10/4a13be69907cbf7ebf5e95d358dba70698d5ee0cd98d7503a417515f4eed/django_diazo-1.2.1.zip" } ], "1.2.2": [ { "comment_text": "", "digests": { "md5": "41e0117b088b83e8402b7d4dce900350", "sha256": "9a99ecf7e3af4a760ea813f1d8ce4dbe6ae4fbb23c28c6e391cbc19dc4a3fbed" }, "downloads": -1, "filename": "django_diazo-1.2.2.zip", "has_sig": false, "md5_digest": "41e0117b088b83e8402b7d4dce900350", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 340784, "upload_time": "2015-01-24T15:30:19", "url": "https://files.pythonhosted.org/packages/09/f5/d5338e5b8bc356bd162d75fdfb35c97c28c7b4745f9aa14ba265d8b48c1c/django_diazo-1.2.2.zip" } ], "2.0": [ { "comment_text": "", "digests": { "md5": "404cabebf78bba1deebb51d774739514", "sha256": "0347697c488080d0747725ba1685ae043f758b5e2ef994b91a8233a35a5e7fa6" }, "downloads": -1, "filename": "django_diazo-2.0.zip", "has_sig": false, "md5_digest": "404cabebf78bba1deebb51d774739514", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 343107, "upload_time": "2015-05-17T10:50:10", "url": "https://files.pythonhosted.org/packages/15/08/5a8cca54e6f6dded2d9357af794e08c969ec5989fad9ee2f36502bea75a8/django_diazo-2.0.zip" } ], "2.0.1": [ { "comment_text": "", "digests": { "md5": "8e21fda19fe39992ef7831f30cf7b9ca", "sha256": "8b92e3258f6895577b63be1ff4fae968accaeb90857d8b76d36e2b22460baeea" }, "downloads": -1, "filename": "django_diazo-2.0.1.zip", "has_sig": false, "md5_digest": "8e21fda19fe39992ef7831f30cf7b9ca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 343486, "upload_time": "2015-07-01T09:15:36", "url": "https://files.pythonhosted.org/packages/41/2c/d03a7f9386a4a61f3fcaae2f8c48c0eac184e37f4ea1e42348b4a9891a97/django_diazo-2.0.1.zip" } ], "2.0.2": [ { "comment_text": "", "digests": { "md5": "c26307c27d54e325158a775d0b251103", "sha256": "ba8711c56816185c71eb13835e73c9ebe8901108f135da4bea5d8e25d064bab9" }, "downloads": -1, "filename": "django_diazo-2.0.2.zip", "has_sig": false, "md5_digest": "c26307c27d54e325158a775d0b251103", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 343470, "upload_time": "2015-07-01T09:53:48", "url": "https://files.pythonhosted.org/packages/22/d1/2b7ee03812d0a1e5643f35ede1959593982cab8726ae67752691f2343884/django_diazo-2.0.2.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c26307c27d54e325158a775d0b251103", "sha256": "ba8711c56816185c71eb13835e73c9ebe8901108f135da4bea5d8e25d064bab9" }, "downloads": -1, "filename": "django_diazo-2.0.2.zip", "has_sig": false, "md5_digest": "c26307c27d54e325158a775d0b251103", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 343470, "upload_time": "2015-07-01T09:53:48", "url": "https://files.pythonhosted.org/packages/22/d1/2b7ee03812d0a1e5643f35ede1959593982cab8726ae67752691f2343884/django_diazo-2.0.2.zip" } ] }