{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Utilities" ], "description": "==================\ndjango-fa disclaimer\n==================\n\nThis package is basically a `django-fontawesome `_ fork with support of latest django, uploaded to PyPi.\nReason of creating this repo was sadly ignored `merge request `_.\nAll the credits goes to authors of source repository and merge request.\n\nRequirements\n============\n\n- PyYAML\n- Select2 (included)\n- JQuery (uses django's jquery in admin panel)\n\n\nSettings\n========\nBy default, django-fontawesome ships with and uses the lastest fontawesome release.\nYou can configure django-fontawesome to use another release/source/cdn by specifying::\n\n # default uses locally shipped version at 'fontawesome/css/font-awesome.min.css'\n FONTAWESOME_CSS_URL = '//cdn.example.com/fontawesome-min.css' # absolute url\n FONTAWESOME_CSS_URL = 'myapp/css/fontawesome.min.css' # relative url\n\nYou can also tell it the fontawesome prefix, which as of right now is 'fa', using::\n\n FONTAWESOME_PREFIX = 'bg' # default is 'fa'\n\n\nInstallation / Usage\n====================\n\n0. Install via pip::\n\n pip install django-fa\n\n\n1. Add 'fontawesome' to your installed apps setting like this::\n\n INSTALLED_APPS = (\n ...\n 'fontawesome',\n )\n\n2. Import and use the ``IconField``::\n \n from fontawesome.fields import IconField\n\n\n class Category(models.Model):\n ...\n icon = IconField()\n\n\nHere's what the widget looks like in the admin panel:\n\n|admin-widget|\n\n3. You can then render the icon in your template like this::\n \n {% for category in categories.all %}\n {% if category.icon %}\n {{ category.icon.as_html }}\n {% endif %}\n {% endfor %}\n\n\n4. django-fontawesome ships with two template tags, ``fontawesome_stylesheet`` and ``fontawesome_icon``.\n - the former inserts a stylesheet link with a pre-configured href according to the ``FONTAWESOME_CSS_URL`` setting\n - the latter renders icons, and accepts the following optional keywords arguments: large, spin, fixed, li, border: (true/false), rotate: (90/180/270), title: (string)\n - you can also colorize an icon using the ``color='red'`` keyword argument to the ``fontawesome_icon`` template tag\n\n - example usage::\n\n {% load fontawesome %}\n \n \n {% fontawesome_stylesheet %} \n ...\n \n \n {% fontawesome_icon 'user' color='red' %}\n\n {% fontawesome_icon 'star' large=True spin=True %}\n \n \n\n\n\n.. |admin-widget| image:: docs/images/admin-widget.png", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/belek/django-fontawesome", "keywords": "", "license": "BSD License", "maintainer": "", "maintainer_email": "", "name": "django-f-awesome", "package_url": "https://pypi.org/project/django-f-awesome/", "platform": "", "project_url": "https://pypi.org/project/django-f-awesome/", "project_urls": { "Homepage": "https://github.com/belek/django-fontawesome" }, "release_url": "https://pypi.org/project/django-f-awesome/0.3.2/", "requires_dist": null, "requires_python": "", "summary": "a django app that provides a couple of fontawesome/django related utilities.", "version": "0.3.2" }, "last_serial": 3321464, "releases": { "0.3.2": [ { "comment_text": "", "digests": { "md5": "8ba13eeaacff513e328a82cf103df2a3", "sha256": "ed9e9a02bded0222367f735e1c1dd7d8b9192a2b0a8a3588abb91bbfd9aa16ec" }, "downloads": -1, "filename": "django-f-awesome-0.3.2.tar.gz", "has_sig": false, "md5_digest": "8ba13eeaacff513e328a82cf103df2a3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 674957, "upload_time": "2017-11-10T07:26:05", "url": "https://files.pythonhosted.org/packages/32/51/3bc3468e81d689c501f3bfde8be1a6a2a4d8108a039b064a60c7f06160ff/django-f-awesome-0.3.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8ba13eeaacff513e328a82cf103df2a3", "sha256": "ed9e9a02bded0222367f735e1c1dd7d8b9192a2b0a8a3588abb91bbfd9aa16ec" }, "downloads": -1, "filename": "django-f-awesome-0.3.2.tar.gz", "has_sig": false, "md5_digest": "8ba13eeaacff513e328a82cf103df2a3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 674957, "upload_time": "2017-11-10T07:26:05", "url": "https://files.pythonhosted.org/packages/32/51/3bc3468e81d689c501f3bfde8be1a6a2a4d8108a039b064a60c7f06160ff/django-f-awesome-0.3.2.tar.gz" } ] }