{ "info": { "author": "Maik Hoepfel", "author_email": "maik.hoepfel@tangentlabs.co.uk", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Topic :: Internet :: WWW/HTTP" ], "description": "===============================\nIntegrate django CMS with Oscar\n===============================\n\n``djangocms-oscar`` eases integration between the content management system\ndjango CMS and the e-commerce framework Oscar.\n\nIt is in an early stage, so use at your own risk.\n\nFeatures\n========\n\n- ``base.html`` template which means that the django CMS toolbar works both on\n CMS pages and Oscar views\n- Ships with default CMS templates that share the look with Oscar's sandbox\n pages\n- Oscar's \"Browse store\" dropdown includes CMS pages\n- A \"Featured product\" CMS plugin to be able to add individual products on\n CMS pages\n\nTested with\n===========\n\n* django-cms 3.0.2\n* django-oscar >=0.7.1, <0.8\n* Django 1.5.8\n* Python 2.7\n\nNOTE: Currently, django CMS does not play well with the new @atomic decorator\nintroduced in Django 1.6. Use django CMS from the master branch, or wait for\nthe next release.\n\nInstallation\n============\n\nGrabbing the integration\n------------------------\nThe latest release will be on PyPi, so you can just \n``pip install djangocms-oscar``. Or grab it from the ``master`` branch if you\nprefer the bleeding edge.\n\nAdding django CMS to an Oscar project\n-------------------------------------\n\nIf you have a working Oscar project and want to add django CMS, follow the\ninstructions on `integrating django CMS`_.\n\nYou should also add at least one plugin to be able to set content. This\nprobably want to add `djangocms-text-ckeditor`_ to be able to include text.\n\n.. _integrating django CMS: http://django-cms.readthedocs.org/en/latest/getting_started/installation/integrate.html\n.. _djangocms-text-ckeditor: https://github.com/divio/djangocms-text-ckeditor\n\nAdding Oscar to a django CMS project\n------------------------------------\n\nIf you have a working django CMS project and want to integrate Oscar, follow\nthe instructions on `getting started with Oscar`_.\n\n.. _getting started with Oscar: http://django-oscar.readthedocs.org/en/latest/internals/getting_started.html\n\nURLs\n----\n\nThere's two options to include Oscar's URLs.\n\nThis integration comes with an app hook for django CMS. So you can just let\ndjango CMS take care of URL handling by adding Oscar to a CMS page.\n\nIf you prefer to hard-wire Oscar's URLs into your project's ``urls.py``,\nmake sure that django CMS's URLs come after Oscar's.urls::\n\n urlplatterns = [\n ...\n (r'^shop/', include(shop.urls)),\n (r'^', include('cms.urls')),\n ...\n ]\n\nSetting up the integration\n--------------------------\n\nTo get started using ``djangocms-oscar``:\n\n- install it with ``pip``::\n\n $ pip install djangocms-oscar\n\n- add the plugins to ``INSTALLED_APPS``::\n\n INSTALLED_APPS = (\n ...\n 'djangocms_oscar',\n ...\n )\n\n- To use the supplied templates, they need to be loaded before Oscar's::\n\n from oscar import OSCAR_MAIN_TEMPLATE_DIR\n from djangocms_oscar import OSCAR_CMS_TEMPLATE_DIR\n\n TEMPLATE_DIRS = (\n location('templates'),\n OSCAR_CMS_TEMPLATE_DIR,\n OSCAR_MAIN_TEMPLATE_DIR,\n )\n\n- Run ``syncdb`` or ``migrate`` if you're using South.\n\nOptional settings\n-----------------\n\nBesides customised Oscar templates, ``djangocms-oscar`` comes with a set of\nCMS templates that are based on Oscar's default templates.\nThey're a good starting point and can be used like this::\n\n # settings.py\n\n CMS_TEMPLATES = (\n ('djangocms_oscar/full_width.html', 'Full width (no sidebars)'),\n ('djangocms_oscar/with_sidebar.html', 'Two column (left-hand sidebar)'),\n )\n\nIf you want Oscar's homepage to be controlled by django CMS, set it like this::\n\n # settings.py\n\n from django.core.urlresolvers import reverse_lazy\n OSCAR_HOMEPAGE = reverse_lazy('pages-root')", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "djangocms-oscar", "package_url": "https://pypi.org/project/djangocms-oscar/", "platform": "linux", "project_url": "https://pypi.org/project/djangocms-oscar/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/djangocms-oscar/0.1/", "requires_dist": null, "requires_python": null, "summary": "django CMS plugin for Oscar", "version": "0.1" }, "last_serial": 1149340, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "8534413ffd2b901c1f2365dda9123361", "sha256": "4eaffa8d7cae02a284ff3ee67bad5b59e738868d421c5466e10184810e38dfde" }, "downloads": -1, "filename": "djangocms-oscar-0.1.tar.gz", "has_sig": false, "md5_digest": "8534413ffd2b901c1f2365dda9123361", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6364, "upload_time": "2014-07-07T10:02:05", "url": "https://files.pythonhosted.org/packages/2f/cc/a7655771714161cdedcb4976d067e04d78a2487121ebe25d8a0e0a563b27/djangocms-oscar-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8534413ffd2b901c1f2365dda9123361", "sha256": "4eaffa8d7cae02a284ff3ee67bad5b59e738868d421c5466e10184810e38dfde" }, "downloads": -1, "filename": "djangocms-oscar-0.1.tar.gz", "has_sig": false, "md5_digest": "8534413ffd2b901c1f2365dda9123361", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6364, "upload_time": "2014-07-07T10:02:05", "url": "https://files.pythonhosted.org/packages/2f/cc/a7655771714161cdedcb4976d067e04d78a2487121ebe25d8a0e0a563b27/djangocms-oscar-0.1.tar.gz" } ] }