{"id":21455688,"url":"https://github.com/skyl/django-files","last_synced_at":"2025-03-17T03:25:06.562Z","repository":{"id":634793,"uuid":"275894","full_name":"skyl/django-files","owner":"skyl","description":"Tag simple file object with metadata to you other models.  Now you can \"see files for object\" and \"add a file to object\".  You might want to checkout django-attachments.","archived":false,"fork":false,"pushed_at":"2009-08-12T11:09:54.000Z","size":222,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-23T13:13:53.450Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://skyl.org","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skyl.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-08-12T08:43:12.000Z","updated_at":"2014-10-04T22:15:09.000Z","dependencies_parsed_at":"2022-07-18T09:09:19.435Z","dependency_job_id":null,"html_url":"https://github.com/skyl/django-files","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyl%2Fdjango-files","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyl%2Fdjango-files/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyl%2Fdjango-files/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyl%2Fdjango-files/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skyl","download_url":"https://codeload.github.com/skyl/django-files/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243966252,"owners_count":20376030,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-23T05:13:06.537Z","updated_at":"2025-03-17T03:25:06.542Z","avatar_url":"https://github.com/skyl.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"--------------\ndjango-files\n--------------\n\nAn app for tagging arbitrary models with \"files\".\nA file is a simple model with a filefield, title, description, owner, content-object.\n\nThe idea is to have templatetags for tagging objects with \n(google gears drag and drop?)\n\nLikewise, an overview of files for various model_instances will be obtainable.\n\n\nRequirements\n============\n\n    * jQuery 1.3+\n\n    * http://code.google.com/p/sorl-thumbnail/\n\nThis app is being built for pinax-0.7+.\nYour mileage may vary out of the box in other environments.\nFor quick integration you will need a current copy django-uni_form, for instance.\n\nInstall\n=======\n\n    * Check out the code onto your path as files::\n\n        git clone git://github.com/skyl/django-files.git files\n\n    * Add 'files' to INSTALLED_APPS\n\n    * add (r'^files/', include('files.urls')), to your urlpatterns\n\n    * syncdb\n\nFor Pinax you can take the additional steps, \nadd to the right_tabs block in site_base.html::\n\n    \u003cli id=\"tab_files\"\u003e\u003ca href=\"{% url files_all %}\"\u003e{% trans \"Files\" %}\u003c/a\u003e\u003c/li\u003e\n\nIn site_tabs.css you can add rules for\n``body.files #tab_files a`` and ``body.files #tab_files``. \n\nPinax Usage\n===========\n\nIn the template with the object(s) you want to tag add::\n\n    {% load files_tags %}\n\nWhere you would like the link to add an file to a model instance::\n\n    {% file_link_add_to myModelInstance 'css_id' %}\n\nTo make this link a jQuery dialog widget, in extra_body::\n\n    \u003cscript type=\"text/javascript\" src=\"{{MEDIA_URL}}files/js/jquery-ui.js\"\u003e\u003c/script\u003e\n    {% add_file_to myModelinstance 'css_id' %}\n \nNote that you can choose 'css_id' for these tags but they must match.\n\nAdd css for the widget to extra_head::\n\n    {% include 'files/widgetCSS.html' %}\n  \nTo add a link to all of the files for a model instance::\n    \n    {% link_to_files_for myModelInstance 'css_class' %}\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyl%2Fdjango-files","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskyl%2Fdjango-files","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyl%2Fdjango-files/lists"}