{ "info": { "author": "Bob Donahue", "author_email": "bob_donahue@wgbh.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.11", "Framework :: Django :: 2.0", "Framework :: Django :: 2.1", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "# Site Parameters\n\nSite Parameters is a simple Django app to store customized site-level content, so that it can be maintained from the Admin \nby content managers. \n\nThis includes:\n\n* Basic \"key, value\" settings for common data types;\n* Simple Navigation menus;\n* Management of Social Media locations for the site.\n\nAll data are available to all templates through a context processor.\n\nAs an example, you can have your site's copyright message as a SiteParameterString object rather than hard-coding it into a global footer template. Or, you can upload a \"site canonical image\" that would be used as a placeholder in situations where an image in a template isn't available. \n\n## Quick start\n\n1. Add \"site_parameters\" to your INSTALLED_APPS setting like this::\n\n ```\n INSTALLED_APPS = [\n ...\n 'site_parameters',\n ]\n ```\n\n2. Add the context_processors to the system context_processors in the settings file like this::\n\n ```\n TEMPLATES = [\n {\n ...\n 'OPTIONS': {\n 'context_processors': [\n ...\n 'site_parameters.context_processors.get_custom_site_parameters',\n ]\n ...\n },\n ...\n }\n ]\n ```\n\n3. Run `python manage.py migrate` to create the database tables.\n\n4. Start the development server and visit `http://127.0.0.1:8000/admin/`\n to see the available models.\n\n\n## Basic Site Parameters\n\nYou can add site parameters of the following types:\n\n* Integers\n* Strings\n* Text blocks\n* URLs\n* Switches (booleans)\n* Images\n\n(At present, there's no Markdown or HTML support as both of these would require other components to be installed.)\n\nIn general, each has the following fields:\n\n* Title\n* Slug (automatically generated from the title, but can be over-ridden)\n* Value\n\nThe title (for the most part) is just to make it easy to remember what the parameter is for (although it can be used in templates, etc. in the \"regular\" way). \n\nThe slug is what's used in the global context for all templates. Any hyphens are converted to underscores. So if you have a Site: String with:\n\n* title = \"Copyright Notice\"\n* slug = \"copyright-notice\", and \n* value = \"2019 Skepsis Interplanetary\"\n\nthen you can use `{{ site_parameter_string.copyright_notice }}` in any template.\n\n## Social Media\n\nThe Social Media model holds information about your site's external social media pages. This is a convenience for being able \nto, e.g., manage lists of social media icons on pages, easily add or delete them as new services emerge and become popular, etc.\n\nEach of the items in the Social Media list have a field to enter an SVG icon. \n\nThe \"Order in List\" field handles ordering.\n\nThe \"Available\" field handles which items will be shown on the site. \n\nIn templates, you can access the information from `{{ global_social_media_dict.slug }}`.\n\n## Navigation\n\nNavigation Menus are constructed by assembling sets of Navigation Items. You can have as Navigation Menus as you need.\n\n_If you are also using Django CMS_: the URL Slug field can be used to reference CMS Page objects. Otherwise you can put in a root-relative URL in the Internal Link field.\n\nThe ordered list of navigation items can be accessed in a template from the context name `global_nav_ + slug`, e.g., `global_nav_footer`.\n\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/wgbh/django-site-parameters/", "keywords": "", "license": "MIT License, see LICENSE", "maintainer": "", "maintainer_email": "", "name": "django-site-parameters", "package_url": "https://pypi.org/project/django-site-parameters/", "platform": "", "project_url": "https://pypi.org/project/django-site-parameters/", "project_urls": { "Homepage": "http://github.com/wgbh/django-site-parameters/" }, "release_url": "https://pypi.org/project/django-site-parameters/0.1.3/", "requires_dist": [ "Pillow", "pytz" ], "requires_python": "", "summary": "Django models to allow Admin-accessible global site parameters", "version": "0.1.3" }, "last_serial": 5906995, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "4bda3d4f436089f508ef6faad653d124", "sha256": "c35a78529be5ea2e41634bcd69f820e990f61364fe3ed167e18f2b0c2fd5fb03" }, "downloads": -1, "filename": "django_site_parameters-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "4bda3d4f436089f508ef6faad653d124", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 15276, "upload_time": "2019-01-30T16:56:15", "url": "https://files.pythonhosted.org/packages/80/5e/fd6bd88c91a423ce5b4a59b3d5c98eb53b6336d504059153e0eef79f0f3e/django_site_parameters-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "28332b0f75faa92a60efb4be292d19c7", "sha256": "639ac716391988e5ad38f3a7a95e893ad0ede38b748f475782798fdeb2b2d21c" }, "downloads": -1, "filename": "django-site-parameters-0.1.1.tar.gz", "has_sig": false, "md5_digest": "28332b0f75faa92a60efb4be292d19c7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10818, "upload_time": "2019-01-30T16:56:17", "url": "https://files.pythonhosted.org/packages/dd/55/a974d6d2222f881189adc345580fea804e29a5f2c5447e49a6ee105938fe/django-site-parameters-0.1.1.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "e564e4a7ad15d80c8dbccbf06a341f96", "sha256": "fffe058cf7b2e640654e2d792f94fd7158367cbef5b9c7548bc9c8f620e8f56a" }, "downloads": -1, "filename": "django_site_parameters-0.1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e564e4a7ad15d80c8dbccbf06a341f96", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 15925, "upload_time": "2019-09-30T13:44:39", "url": "https://files.pythonhosted.org/packages/5c/d6/e381ad6faca549eb816ae47769a8fa743538c5f1e6501de451f2366e1bbf/django_site_parameters-0.1.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7ea81a3896362424a673e7a32e98f526", "sha256": "d875b0655a7435434c8d0884f6367543e2223b0eae0c905d965256c7307d26fc" }, "downloads": -1, "filename": "django-site-parameters-0.1.3.tar.gz", "has_sig": false, "md5_digest": "7ea81a3896362424a673e7a32e98f526", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11099, "upload_time": "2019-09-30T13:44:40", "url": "https://files.pythonhosted.org/packages/f9/e3/d699c4a68042fbd3ac270a8b664733fcc43d9e1a2bd3a90ed98a041e1053/django-site-parameters-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e564e4a7ad15d80c8dbccbf06a341f96", "sha256": "fffe058cf7b2e640654e2d792f94fd7158367cbef5b9c7548bc9c8f620e8f56a" }, "downloads": -1, "filename": "django_site_parameters-0.1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e564e4a7ad15d80c8dbccbf06a341f96", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 15925, "upload_time": "2019-09-30T13:44:39", "url": "https://files.pythonhosted.org/packages/5c/d6/e381ad6faca549eb816ae47769a8fa743538c5f1e6501de451f2366e1bbf/django_site_parameters-0.1.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7ea81a3896362424a673e7a32e98f526", "sha256": "d875b0655a7435434c8d0884f6367543e2223b0eae0c905d965256c7307d26fc" }, "downloads": -1, "filename": "django-site-parameters-0.1.3.tar.gz", "has_sig": false, "md5_digest": "7ea81a3896362424a673e7a32e98f526", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11099, "upload_time": "2019-09-30T13:44:40", "url": "https://files.pythonhosted.org/packages/f9/e3/d699c4a68042fbd3ac270a8b664733fcc43d9e1a2bd3a90ed98a041e1053/django-site-parameters-0.1.3.tar.gz" } ] }