{"id":22761128,"url":"https://github.com/dldevinc/ajax-views","last_synced_at":"2025-08-29T05:13:07.052Z","repository":{"id":57409419,"uuid":"158286158","full_name":"dldevinc/ajax-views","owner":"dldevinc","description":"A simple Django application to easily use AJAX views with JavaScript.","archived":false,"fork":false,"pushed_at":"2025-05-08T15:33:03.000Z","size":109,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-19T23:48:14.215Z","etag":null,"topics":["ajax","ajax-views","django"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit-0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dldevinc.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-11-19T20:30:16.000Z","updated_at":"2024-12-20T13:06:05.000Z","dependencies_parsed_at":"2025-04-14T19:32:17.762Z","dependency_job_id":"d1752795-068b-4092-b51b-70ba77604f2a","html_url":"https://github.com/dldevinc/ajax-views","commit_stats":{"total_commits":102,"total_committers":3,"mean_commits":34.0,"dds":0.1568627450980392,"last_synced_commit":"3ee0b41fc96993929b0f4dcd6e9903ffad6fd580"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/dldevinc/ajax-views","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dldevinc%2Fajax-views","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dldevinc%2Fajax-views/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dldevinc%2Fajax-views/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dldevinc%2Fajax-views/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dldevinc","download_url":"https://codeload.github.com/dldevinc/ajax-views/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dldevinc%2Fajax-views/sbom","scorecard":{"id":347020,"data":{"date":"2025-08-11","repo":{"name":"github.com/dldevinc/ajax-views","commit":"04d7664166e11c16c8240fa1423cee9524d27f42"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.7,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":10,"reason":"SAST tool detected: CodeQL","details":["Info: SAST configuration detected: CodeQL","Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:28","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:29","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Warn: no topLevel permission defined: .github/workflows/tests.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/dldevinc/ajax-views/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/dldevinc/ajax-views/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:54: update your workflow using https://app.stepsecurity.io/secureworkflow/dldevinc/ajax-views/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/dldevinc/ajax-views/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/dldevinc/ajax-views/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/dldevinc/ajax-views/tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/dldevinc/ajax-views/tests.yml/main?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/release.yml:21","Warn: pipCommand not pinned by hash: .github/workflows/tests.yml:33","Info:   0 out of   7 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT No Attribution: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2025-47 / GHSA-7xr5-9hcq-chf9","Warn: Project is vulnerable to: PYSEC-2025-37 / GHSA-8j24-cjrq-gr2m","Warn: Project is vulnerable to: PYSEC-2025-13 / GHSA-p3fp-8748-vqfq","Warn: Project is vulnerable to: PYSEC-2025-1 / GHSA-qcgg-j2x8-h9g8"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T07:18:31.841Z","repository_id":57409419,"created_at":"2025-08-18T07:18:31.847Z","updated_at":"2025-08-18T07:18:31.847Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272084844,"owners_count":24870584,"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","status":"online","status_checked_at":"2025-08-25T02:00:12.092Z","response_time":1107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["ajax","ajax-views","django"],"created_at":"2024-12-11T09:10:48.803Z","updated_at":"2025-08-29T05:13:07.033Z","avatar_url":"https://github.com/dldevinc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ajax-views\n\nA simple Django application to easily use AJAX views with JavaScript.\n\n[![PyPI](https://img.shields.io/pypi/v/ajax-views.svg)](https://pypi.org/project/ajax-views/)\n[![Build Status](https://github.com/dldevinc/ajax-views/actions/workflows/tests.yml/badge.svg)](https://github.com/dldevinc/ajax-views)\n[![Software license](https://img.shields.io/pypi/l/ajax-views.svg)](https://pypi.org/project/ajax-views/)\n\n## Compatibility\n\n-   `django` \u003e= 3.2\n-   `python` \u003e= 3.9\n\n## Features\n\n-   Ability to expose your AJAX URLs to JavaScript\n-   Supported Function-Based and Class-Based Views\n-   One URL pattern ~~to rule them all~~ for all AJAX views\n-   Jinja2 support\n\n## Installation\n\nInstall the package via Pip:\n\n```\npip install ajax-views\n```\n\nAdd it to your `INSTALLED_APPS` list:\n\n```python\nINSTALLED_APPS = (\n    # ...\n    \"ajax_views\",\n    # ...\n)\n```\n\nAdd `ajax_views.urls` to your URLconf:\n\n```python\nfrom django.urls import include, path\n\nurlpatterns = [\n    path(\"ajax/\", include(\"ajax_views.urls\")),\n]\n```\n\n## Usage\n\n#### @ajax_view(\"name\")\n\nUse this decorator to register your views (Function-Based or Class-Based).\n\n```python\nfrom ajax_views.decorators import ajax_view\n\n@ajax_view(\"myapp.form\")\ndef form_view(request):\n    ...\n\n@ajax_view(\"myapp.form_cbv\")\nclass AjaxFormView(FormView):\n    ...\n```\n\n**NOTE**: The specified name has to be unique.\n\nYou can combine `ajax_view` with other decorators:\n\n```python\n@csrf_exempt\n@require_POST\n@ajax_view(\"myapp.contact_form\")\ndef csrf_exempt_view(request):\n    # ...\n```\n\n#### {% ajax_views_json %}\n\nTemplate tag to output registered URLs as JSON.\n\n```djangotemplate\n{% load ajax_views %}\n\n\u003cscript\u003e\n    window.ajax_views = {% ajax_views_json %};\n\u003c/script\u003e\n```\n\nNow you can use the declared object to refer to the corresponding urls like this:\n\n```javascript\n$.ajax({\n    url: window.ajax_views.myapp.form,\n    ...\n});\n```\n\n#### {% ajax_url 'name' %}\n\nThis tag is used to add AJAX URLs in the template files:\n\n```djangotemplate\n{% load ajax_views %}\n\n\u003cform action=\"{% ajax_url 'myapp.form' %}\" method=\"post\"\u003e\n    ...\n\u003c/form\u003e\n```\n\n#### Multiple names\n\nYou can have multiple names for the same view:\n\n```python\nfrom ajax_views.decorators import ajax_view\n\n@ajax_view([\"myapp.form\", \"myapp.fallback\"])\ndef example_view(request):\n    ...\n```\n\n## Jinja2 support\n\nEnable Jinja2 extension\n\n```python\nTEMPLATES = [\n    {\n        \"BACKEND\": \"django.template.backends.jinja2.Jinja2\",\n        \"OPTIONS\": {\n            \"extensions\": [\n                # ...\n                \"ajax_views.templatetags.ajax_views.AjaxViewsExtension\",\n            ]\n        }\n    }\n]\n```\n\n**NOTE**: If you are using [django-jinja](https://niwinz.github.io/django-jinja/latest/), you don't need to do this.\n\nThe usage is similar to Django, except that `ajax_url` is a global function:\n\n```jinja2\n\u003cform action=\"{{ ajax_url('myapp.form') }}\" method=\"post\"\u003e\n    ...\n\u003c/form\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdldevinc%2Fajax-views","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdldevinc%2Fajax-views","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdldevinc%2Fajax-views/lists"}