{ "info": { "author": "David Watkins", "author_email": "dwatkinsweb@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "===========\nDJANGO-SKIN\n===========\n\nAdds the ability to add \"skins\" to django projects by adding a custom template loader. This is useful if you have a\nsingle code base with multiple deployments\n\n*************\nDocumentation\n*************\n\nAdd to ``INSTALLED APPS``\n=========================\n Add the module to your installed apps.\n\n .. code-block:: python\n\n INSTALLED_APS = (\n ...\n 'skin'\n )\n\nUse a skin\n==========\n\nThere are two different ways you can use skins with django-skin. Using the new template loaders will add skins\nglobally to any Template views. Using the new `TemplateSkinView` will allow you to explicitly add a skin to a\nspecific views.\n\nTemplate Loader\n---------------\n Add either of the template loaders to the top of your ``TEMPLATE_LOADERS`` in settings.py\n\n .. code-block:: python\n\n TEMPLATE_LOADERS = (\n 'skin.template.loaders.filesystem.Loader',\n 'skin.template.loaders.app_directories.Loader',\n 'django.template.loaders.filesystem.Loader',\n 'django.template.loaders.app_directories.Loader',\n )\n\nCustom View\n-----------\n You can also just use the `TemplateSkinView` to allow only specific views to be skinned.\n\n .. code-block:: python\n\n from skin.views import TemplateSkinView\n\n class YourView(TemplateSkinView):\n template_name = 'yourview.html'\n\n def get(self, request, **kwargs):\n # Your view code\n\n You can also set two different attributes when using this view to overwrite the skin.\n\n * *skin_name:* setting this will override what is in settings.SKIN_NAME\n * *skin_path:* setting this will specify the exact path and will cause the view to ignore `skin_name` and any\n created `SiteSkin`s.\n\nRun migrations\n==============\n If you have south, run migrations\n\n .. code-block:: bash\n\n $ python manage.py migrate skin\n\nCreate skin in admin\n====================\n go to http://yoursite/admin/skin/add/ and add the skin.\n\nAdd skin folders\n================\n Add any folders under normal template directories (see `TEMPLATE_DIRS` in settings.py).\n\n * templates/index.html\n * templates/skin/index.html\n\n If a view has a ``template_name`` of `'index.html'`, it will first look for it in the `templates/skin` folder, then\n it will look in the `templates` folder (assuming you also have the default Django template loaders set up in\n ``TEMPLATE_LOADERS``.\n", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/dwatkinsweb/django-skin", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "django-skin", "package_url": "https://pypi.org/project/django-skin/", "platform": "any", "project_url": "https://pypi.org/project/django-skin/", "project_urls": { "Homepage": "https://github.com/dwatkinsweb/django-skin" }, "release_url": "https://pypi.org/project/django-skin/0.1.2/", "requires_dist": null, "requires_python": null, "summary": "Add template skins to django.", "version": "0.1.2" }, "last_serial": 1515826, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "cd99bc807be6b7fe83968b4f5d19561f", "sha256": "d0c32c3c620e99e65e7d1ab57b117621db7eb382628fe84d6c352c0d5ac1c2a6" }, "downloads": -1, "filename": "django-skin-0.1.1.zip", "has_sig": false, "md5_digest": "cd99bc807be6b7fe83968b4f5d19561f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11663, "upload_time": "2015-04-16T00:18:58", "url": "https://files.pythonhosted.org/packages/68/40/db6b69958aa2b231e70f5b924bf74111b477fba7fb9bdedc80a6171702fb/django-skin-0.1.1.zip" }, { "comment_text": "", "digests": { "md5": "b4e9740c6685d0c63041278c9fdc2efb", "sha256": "c14e65f54f50a0690624843b8d6c7faba8b639048d4aa3e78e464773ece32b84" }, "downloads": -1, "filename": "django-skin-0.1.zip", "has_sig": false, "md5_digest": "b4e9740c6685d0c63041278c9fdc2efb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11607, "upload_time": "2015-04-06T23:14:24", "url": "https://files.pythonhosted.org/packages/19/fc/8a4345e49e843f58ed6336fc710c63233ad428afde39a3afc5a7290bb409/django-skin-0.1.zip" } ], "0.1.1": [], "0.1.2": [ { "comment_text": "", "digests": { "md5": "7f9eb17c644c083cb02e648476b1a7b4", "sha256": "7e94c2108d467a14705a96c7f17599ed9e333e84055826f428a984441a98939d" }, "downloads": -1, "filename": "django-skin-0.1.2.zip", "has_sig": false, "md5_digest": "7f9eb17c644c083cb02e648476b1a7b4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12759, "upload_time": "2015-04-22T04:54:59", "url": "https://files.pythonhosted.org/packages/57/7d/53625b37f76e6ef82c68e11cb5c001094867660dcc7f116c813033372fe0/django-skin-0.1.2.zip" } ], "0.1.dev0": [ { "comment_text": "", "digests": { "md5": "d762c2014f7b61b199d625fd60013d0b", "sha256": "68d29e175ebb4cf5a25055cd0ae5ca04ef190d92170bd01ebe4754eacc950c0d" }, "downloads": -1, "filename": "django-skin-0.1.dev.post2.zip", "has_sig": false, "md5_digest": "d762c2014f7b61b199d625fd60013d0b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11586, "upload_time": "2015-04-06T20:20:28", "url": "https://files.pythonhosted.org/packages/66/ab/4cc8b8d89cb5f8f16339051c42d26694d412ff6009cb2612cf9445e570f1/django-skin-0.1.dev.post2.zip" }, { "comment_text": "", "digests": { "md5": "43dd9dc2549db54f7cd3a2446b812ee1", "sha256": "57669ddc1b2f47a2ce6126c067ccd4909f4157942321c51221ff0e709ccd6253" }, "downloads": -1, "filename": "django-skin-0.1.dev.post3.zip", "has_sig": false, "md5_digest": "43dd9dc2549db54f7cd3a2446b812ee1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11891, "upload_time": "2015-04-06T20:58:51", "url": "https://files.pythonhosted.org/packages/e6/3b/378e1deea54074885584ba86f57995e36ab1261899c6974f028023ace756/django-skin-0.1.dev.post3.zip" }, { "comment_text": "", "digests": { "md5": "e26e91627de6e46cd36022672b02949a", "sha256": "f0f6ae00d9c47fc0436333abdbb15e6a2c2644bc0e3d09a0db1c72b4438de0d2" }, "downloads": -1, "filename": "django-skin-0.1.dev.post4.zip", "has_sig": false, "md5_digest": "e26e91627de6e46cd36022672b02949a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11891, "upload_time": "2015-04-06T22:09:33", "url": "https://files.pythonhosted.org/packages/1b/78/ec7c8a17152f93500738490d374ca1cf72a05f37feb537892b0373305377/django-skin-0.1.dev.post4.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7f9eb17c644c083cb02e648476b1a7b4", "sha256": "7e94c2108d467a14705a96c7f17599ed9e333e84055826f428a984441a98939d" }, "downloads": -1, "filename": "django-skin-0.1.2.zip", "has_sig": false, "md5_digest": "7f9eb17c644c083cb02e648476b1a7b4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12759, "upload_time": "2015-04-22T04:54:59", "url": "https://files.pythonhosted.org/packages/57/7d/53625b37f76e6ef82c68e11cb5c001094867660dcc7f116c813033372fe0/django-skin-0.1.2.zip" } ] }