{ "info": { "author": "Raphael De Giusti", "author_email": "raphael.degiusti@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.7", "Framework :: Django :: 1.8", "Framework :: Django :: 1.9", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "## Install\n\nIn settings.py\n\n\n INSTALLED_APPS = [\n ...\n 'forest',\n 'corsheaders'\n ...\n ]\n\n\n MIDDLEWARE_CLASSES = [\n ...\n 'corsheaders.middleware.CorsMiddleware',\n ...\n ]\n\n CORS_ORIGIN_ALLOW_ALL = False\n CORS_ORIGIN_WHITELIST = ('app.forestadmin.com')\n FOREST_APP_NAME = [] # Accepts .*\n FOREST_SECRET_KEY = \n JWT_SECRET = \n\nIn your urls router (urls.py)\n\n url(r'^forest/', include('forest.urls')),\n\n\n## Development\n\nFor local development, use:\n\n`python setup.py develop`\n\n## Build\n\n`python setup.py sdist`\n\n## Actions\n\nCreate the following structure in your app folder.\nE.g. if your app is 'movies':\n\nCreate `./movies/forest/actions/__init__.py`\n\nThen put single file action in the actions directory:\n\nCreate `./movies/forest/actions/ban_user.py` with the following content:\n\n ACTION = {\n 'collection': 'Customers',\n 'name': 'Ban User',\n 'fields': [\n { 'field': 'duration', 'type': 'Number'}\n ]\n }\n\nThe variable name must be `ACTION`.\n\n## Smart Collections\n\nCreate the following structure in your app folder.\nE.g. if your app is 'movies':\n\nCreate `./movies/forest/smart_collections/__init__.py`\n\nThen put single file smart_collection in the `smart_collections` directory:\n\nCreate `./movies/forest/smart_collections/brands.py` with the following content:\n\n SMART_COLLECTION = {\n 'name': 'Brands',\n 'fields': [\n { 'field': 'brand', 'type': 'String'},\n { 'field': 'count', 'type': 'Number'}\n ]\n }\n\nThe variable name must be `SMART_COLLECTION`.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://www.forestadmin.com/", "keywords": null, "license": "GNU License", "maintainer": null, "maintainer_email": null, "name": "forest-django", "package_url": "https://pypi.org/project/forest-django/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/forest-django/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://www.forestadmin.com/" }, "release_url": "https://pypi.org/project/forest-django/0.1/", "requires_dist": null, "requires_python": null, "summary": "Forest connector for Django", "version": "0.1" }, "last_serial": 2333121, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "d2d836f5a7643cff4328e6e28c91dec0", "sha256": "e5f10520466a796437d897108261364edc32ba6ffe2d68eef856c48a57b11b84" }, "downloads": -1, "filename": "forest-django-0.1.tar.gz", "has_sig": false, "md5_digest": "d2d836f5a7643cff4328e6e28c91dec0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14553, "upload_time": "2016-09-09T08:28:05", "url": "https://files.pythonhosted.org/packages/08/46/05a88c106350352acee10cb08aaf960ad9d8fc913afea60f3d2b4549f365/forest-django-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d2d836f5a7643cff4328e6e28c91dec0", "sha256": "e5f10520466a796437d897108261364edc32ba6ffe2d68eef856c48a57b11b84" }, "downloads": -1, "filename": "forest-django-0.1.tar.gz", "has_sig": false, "md5_digest": "d2d836f5a7643cff4328e6e28c91dec0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14553, "upload_time": "2016-09-09T08:28:05", "url": "https://files.pythonhosted.org/packages/08/46/05a88c106350352acee10cb08aaf960ad9d8fc913afea60f3d2b4549f365/forest-django-0.1.tar.gz" } ] }