Django Ajax View
Simple Django library for quickly using Ajax calls in regular views.
For example, suppose you have a regular TemplateView in Django, which you want to add Ajax interactivity to. Simply add an @ajax method to your controller, and it becomes accessible in the HTML template side as a function:
class MyController(AjaxView):
...
@ajax
def greetings(self, name):
return f'Why hello there, {name}!'
Inside the rendered HTML:
const message = await greetings({name: 'Ken'})
See documentation for details. Licensed under MIT.
Metadata
Release files for django-ajaxview 1.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-ajaxview-1.0.6.tar.gz | 27.8 kB | Details |
Release files / django-ajaxview-1.0.6.tar.gz
| Download URL | django-ajaxview-1.0.6.tar.gz |
|---|---|
| Size | 27.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f05675453917dd823d2e86f154601a78f03abe3fa31d460d813e52cbfa5df88f
|
|
BLAKE2b-256 checksum How to use checksums |
101bd91fc1b46c66baf12925cfb9f81c1250569a1e31c8777234e33a2952b611
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
|