Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (testpypi.python.org).
Help us improve Python packaging - Donate today!

Class-based Django ajax views.

Project Description

Class-based Django ajax views.

Installation

Manually

python setup.py install

PyPI

pip install django-ajax-views

Usage

settings.py

INSTALLED_APPS = [
    ...
    'ajax_views',
    ...
]

views.py

from django.http import HttpResponse
from ajax_views import AjaxView

class MyAjaxView(AjaxView):
    def post(self, request, *args, **kwargs):
        return HttpResponse('OK')

urls.py

from django.conf.urls import url
from my_app.views import MyAjaxView

urlpatterns = [
    ...
    url(r'^my_ajax/$', MyAjaxView.as_view(), name='my_ajax'),
]

Author

Alex Tarkhov

License

This project is licensed under the BSD License - see the LICENSE file for details.

Release History

Release History

This version
History Node

0.1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-ajax-views-0.1.0.tar.gz (5.2 kB) Copy SHA256 Checksum SHA256 Source Jan 2, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting