{ "info": { "author": "Iacopo Spalletti", "author_email": "i.spalletti@nephila.it", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Framework :: Django", "Framework :: Django :: 1.6", "Framework :: Django :: 1.7", "Framework :: Django :: 1.8", "Framework :: Django :: 1.9", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "===================\ndjangocms-multisite\n===================\n\n`django-multisite `_ support for DjangoCMS\n\n|Gitter| |PyPiVersion| |PyVersion| |Status| |TestCoverage| |CodeClimate| |License|\n\nSupport\n=======\n\nSupported *Django* versions:\n\n* Django 1.11\n\nSupported django CMS versions:\n\n* django CMS 3.4\n* django CMS 3.5\n\nAssumptions\n===========\n\n#. A virtualenv up and runnign\n#. DjangoCMS working\n\nInstallation\n============\n\n``pip install djangocms-multisite``\n\nUsage\n=====\n\n#. Open your ``settings.py`` file\n\n#. We need to add the configurations for `django-multisite `_ :\n\n * Replace SITE_ID value with the SiteID function::\n\n from multisite import SiteID\n SITE_ID = SiteID(default=1)\n\n * Add ``multisite``, ``djangocms_multisite`` to ``INSTALLED_APPS``::\n\n INSTALLED_APPS=[\n ...\n 'multisite',\n 'djangocms_multisite',\n ...\n ]\n * Add those loders in the TEMPLATES setting::\n\n TEMPLATES = [\n ...\n {\n ...\n 'DIRS': {...}\n 'OPTIONS': {\n 'loaders': (\n 'multisite.template.loaders.filesystem.Loader',\n 'django.template.loaders.app_directories.Loader',\n )\n }\n ...\n }\n ...\n ]\n\n * For other settings (cache, etc.) check the `django-multisite `_ page\n\n#. Add ``multisite.middleware.DynamicSiteMiddleware`` and ``djangocms_multisite.middleware.CMSMultiSiteMiddleware`` to ``MIDDLEWARE_CLASSES``. The order is important: ``multisite.middleware.DynamicSiteMiddleware`` must be applied before ``cms.middleware.utils.ApphookReloadMiddleware``, while ``djangocms_multisite.middleware.CMSMultiSiteMiddleware`` must be right after::\n\n MIDDLEWARE_CLASSES = [\n ...\n 'multisite.middleware.DynamicSiteMiddleware',\n 'cms.middleware.utils.ApphookReloadMiddleware',\n 'djangocms_multisite.middleware.CMSMultiSiteMiddleware',\n ...\n ]\n\n#. Configure the URL mapping as follows. The `tests.test_utils.urls1` path can be the main urlconf file that you already have in your project. And it can be the same for all the domains if you need the same structure.::\n\n MULTISITE_CMS_URLS={\n 'www.example.com': 'tests.test_utils.urls1',\n 'www.example2.com': 'tests.test_utils.urls2',\n }\n MULTISITE_CMS_ALIASES={\n 'www.example.com': ('alias1.example.com', 'alias2.example.com',),\n 'www.example2.com': ('alias1.example2.com', 'alias2.example2.com',),\n }\n MULTISITE_CMS_FALLBACK='www.example.com'\n\n#. Run ``python manage.py makemigrations``\n\n#. Run ``python manage.py migrate`` to apply the `django-multisite `_ migrations\n\n\nSettings explanation\n====================\n\nMULTISITE_CMS_URLS\n^^^^^^^^^^^^^^^^^^\n\nDictionary (or OrderedDict) containing the mapping between the domain (as configured in django\n``sites``) and the corresponding urlconf.\n\nMULTISITE_CMS_FALLBACK\n^^^^^^^^^^^^^^^^^^^^^^\n\nThe default domain to load if any of the above does not match.\n\nMULTISITE_CMS_ALIASES\n^^^^^^^^^^^^^^^^^^^^^\n\nDictionary (or OrderedDict) containing the mapping between the domain (as configured in django\n``sites``) and a list of aliases. This is optional if all the aliases are configured as\n``django-multisite`` aliases\n\nTroubleshooting\n===============\n\n* Domains in ``MULTISITE_CMS_URLS`` must be the same created in your database (via the interface in ``Home \u203a Sites \u203a Sites``).\n\n\n\n.. |Gitter| image:: https://img.shields.io/badge/GITTER-join%20chat-brightgreen.svg?style=flat-square\n :target: https://gitter.im/nephila/applications\n :alt: Join the Gitter chat\n\n.. |PyPiVersion| image:: https://img.shields.io/pypi/v/djangocms-multisite.svg?style=flat-square\n :target: https://pypi.python.org/pypi/djangocms-multisite\n :alt: Latest PyPI version\n\n.. |PyVersion| image:: https://img.shields.io/pypi/pyversions/djangocms-multisite.svg?style=flat-square\n :target: https://pypi.python.org/pypi/djangocms-multisite\n :alt: Python versions\n\n.. |Status| image:: https://img.shields.io/travis/nephila/djangocms-multisite.svg?style=flat-square\n :target: https://travis-ci.org/nephila/djangocms-multisite\n :alt: Latest Travis CI build status\n\n.. |TestCoverage| image:: https://img.shields.io/coveralls/nephila/djangocms-multisite/master.svg?style=flat-square\n :target: https://coveralls.io/r/nephila/djangocms-multisite?branch=master\n :alt: Test coverage\n\n.. |License| image:: https://img.shields.io/github/license/nephila/djangocms-multisite.svg?style=flat-square\n :target: https://pypi.python.org/pypi/djangocms-multisite/\n :alt: License\n\n.. |CodeClimate| image:: https://codeclimate.com/github/nephila/djangocms-multisite/badges/gpa.svg?style=flat-square\n :target: https://codeclimate.com/github/nephila/djangocms-multisite\n :alt: Code Climate\n\n\n\n\nHistory\n-------\n\n0.2.0 (unreleased)\n++++++++++++++++++\n\n* Django 1.11 / django CMS 3.4+ support\n* Dropped older Django / django CMS versions\n* Improved documentation\n\n0.1.0 (unreleased)\n++++++++++++++++++\n\n* First experimental release", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/nephila/djangocms-multisite", "keywords": "djangocms-multisite,django", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "djangocms-multisite", "package_url": "https://pypi.org/project/djangocms-multisite/", "platform": "", "project_url": "https://pypi.org/project/djangocms-multisite/", "project_urls": { "Homepage": "https://github.com/nephila/djangocms-multisite" }, "release_url": "https://pypi.org/project/djangocms-multisite/0.2.0/", "requires_dist": null, "requires_python": "", "summary": "django-multisite supporto for django CMS", "version": "0.2.0" }, "last_serial": 4308553, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "f667540dfcaae81a9ff5cee2ee4efa4c", "sha256": "75da9466b65b2338cc12d2a31b8434e53431d248669f81b2a22a2f43675f5ce7" }, "downloads": -1, "filename": "djangocms_multisite-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f667540dfcaae81a9ff5cee2ee4efa4c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6675, "upload_time": "2016-07-11T08:38:26", "url": "https://files.pythonhosted.org/packages/da/cd/3e35f3533103811f020dd4cc7bc8e276a7b37373e47fca62cbbe77c2460b/djangocms_multisite-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5918abd3bcc52c7bc3c37f6421e026ba", "sha256": "88abc0635f52a5762a11394bbae52beda0b975cf257f70186cd44179b84e26fa" }, "downloads": -1, "filename": "djangocms-multisite-0.1.1.tar.gz", "has_sig": false, "md5_digest": "5918abd3bcc52c7bc3c37f6421e026ba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6098, "upload_time": "2016-07-11T08:38:20", "url": "https://files.pythonhosted.org/packages/14/95/aaefd773e5cd898bab43941920f086256de3647593c4f380dad07af783a0/djangocms-multisite-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "db71d83a40380c92bc83d57e146708ac", "sha256": "424018348130e1b5ff9bf8b9f6cec23b48eea2f780168a7fcb716507743c81a3" }, "downloads": -1, "filename": "djangocms_multisite-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "db71d83a40380c92bc83d57e146708ac", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8112, "upload_time": "2018-09-25T13:58:50", "url": "https://files.pythonhosted.org/packages/5f/c1/afd291bbec26ad17e8d73966bd6ce0526c0bd55664ecf42708e4c40f669a/djangocms_multisite-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5e555398d4b3593d9751fa8e1c71c110", "sha256": "eeac70b443c1a5999a7d4a859bd2114477990f354e1d8ee0097571426ded978e" }, "downloads": -1, "filename": "djangocms-multisite-0.2.0.tar.gz", "has_sig": false, "md5_digest": "5e555398d4b3593d9751fa8e1c71c110", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6927, "upload_time": "2018-09-25T13:58:48", "url": "https://files.pythonhosted.org/packages/93/ed/373912567e21e656c9697fa7e62c4b7d94b4eb5de24173e340303b604e8a/djangocms-multisite-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "db71d83a40380c92bc83d57e146708ac", "sha256": "424018348130e1b5ff9bf8b9f6cec23b48eea2f780168a7fcb716507743c81a3" }, "downloads": -1, "filename": "djangocms_multisite-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "db71d83a40380c92bc83d57e146708ac", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8112, "upload_time": "2018-09-25T13:58:50", "url": "https://files.pythonhosted.org/packages/5f/c1/afd291bbec26ad17e8d73966bd6ce0526c0bd55664ecf42708e4c40f669a/djangocms_multisite-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5e555398d4b3593d9751fa8e1c71c110", "sha256": "eeac70b443c1a5999a7d4a859bd2114477990f354e1d8ee0097571426ded978e" }, "downloads": -1, "filename": "djangocms-multisite-0.2.0.tar.gz", "has_sig": false, "md5_digest": "5e555398d4b3593d9751fa8e1c71c110", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6927, "upload_time": "2018-09-25T13:58:48", "url": "https://files.pythonhosted.org/packages/93/ed/373912567e21e656c9697fa7e62c4b7d94b4eb5de24173e340303b604e8a/djangocms-multisite-0.2.0.tar.gz" } ] }