{"id":25534344,"url":"https://github.com/uhmiller/djangotables","last_synced_at":"2026-04-25T12:32:34.264Z","repository":{"id":57422252,"uuid":"211069334","full_name":"uhmiller/djangotables","owner":"uhmiller","description":"Djangotables is a simple library for generating html tables with Django Framework using model data like django forms.","archived":false,"fork":false,"pushed_at":"2019-09-26T20:34:36.000Z","size":11,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-10T12:57:17.535Z","etag":null,"topics":["damgo-tables","django","django-forms","django-framework","djangotables","html","library","python","script"],"latest_commit_sha":null,"homepage":"","language":"Python","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/uhmiller.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-26T11:06:19.000Z","updated_at":"2020-05-19T15:42:35.000Z","dependencies_parsed_at":"2022-09-12T15:52:11.185Z","dependency_job_id":null,"html_url":"https://github.com/uhmiller/djangotables","commit_stats":null,"previous_names":["ageumatheus/djangotables","uhmiller/djangotables","uhttred/djangotables"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/uhmiller/djangotables","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uhmiller%2Fdjangotables","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uhmiller%2Fdjangotables/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uhmiller%2Fdjangotables/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uhmiller%2Fdjangotables/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uhmiller","download_url":"https://codeload.github.com/uhmiller/djangotables/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uhmiller%2Fdjangotables/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32262801,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T09:15:33.318Z","status":"ssl_error","status_checked_at":"2026-04-25T09:15:31.997Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["damgo-tables","django","django-forms","django-framework","djangotables","html","library","python","script"],"created_at":"2025-02-20T03:19:01.477Z","updated_at":"2026-04-25T12:32:34.227Z","avatar_url":"https://github.com/uhmiller.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"djangotables\n===============\n\nDjangotables is a simple library for generating html\ntables with [Django Framework](https://www.djangoproject.com/) using\nmodel data like django forms.\n\n----------------------------------------------------------------------------------\n\nDjangotables is a simple yet powerful library. A library based on forms\ngenerated by Django, if you are already familiar with django forms it will\nbe very easy to use django tables, otherwise it will be easy anyway :wink:\n\nI had the idea of developing when I was developing a Dashboard and always had\nto write the tables several times in html :sleeping:\n\n## Installation\n\n\nSimple **djangotables** can be installed with pip::\n\n    pip install djangotables\n\nRequirements\n----------------\n\n* Python ``3.6; 3.7``\n* Django ``2.0; 2.1; 2.2``\n\nThese are the officially supported python and package versions.  Other versions\nwill probably work\n\nUsage\n----------------\n\nIt's very simple to use, you just have to import ``djangotables.tables`` on\nyour ``tables.py`` file and create your subclass like below.\n\n```python\n\nfrom djangotables import tables\n\nclass UserTable(tables.Table):\n    first_name = tables.TextField(label=\"First Name\")\n    last_name  = tables.TextField(label=\"Last Name\")\n\n```\n\nSo, in your ``vews.py`` file, just import your table class and instantiate it\nby passing the queryset\n\n```python\n\nfrom .tables import UserTable\nfrom django.contrib.auth.models import User\n\nfrom django.shortcuts import render\n\ndef index(request):\n\n    table = UserTable( User.objects.all() )\n\n    return render( request, \"index.html\", {\n        \"table\": table\n    })\n\n```\n\nTo finish, on your ``index.html`` template file you just have to do this\n\n```html\n\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n    \u003chead\u003e ... \u003c/head\u003e\n    \u003cbody\u003e\n        \u003ctable\u003e\n            {{ table | safe }}\n        \u003c/table\u003e\n    \u003c/body\u003e\n\u003c/html\u003e\n\n```\n\nOkay, this is how simple you can use djangotables to improve\nyour daily development, feel free to contribute and help me\nmake this little library bigger\n\n----------------------------------------------------------------------------------\n\nOkay\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuhmiller%2Fdjangotables","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuhmiller%2Fdjangotables","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuhmiller%2Fdjangotables/lists"}