Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5996509
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:06:48+00:00 2026-05-23T00:06:48+00:00

Obviously, horses for courses, but what are some good ways to integrate javascript libraries

  • 0

Obviously, horses for courses, but what are some good ways to integrate javascript libraries with one’s Django application?

I’m planning on using jQuery, mostly because it seems popular and looks powerful (but I’m open to other suggestions).

Are there python-side libraries that are very helpful or essential? Or is it best simply to create JSON views, and hand-code the javascript (using an appropriate javascript framework)?

I’ve looked (briefly) at Dajax, but based on the scant documentation, it’s not clear that it really gives me very much. I would certainly prefer something with a bit more documentation.

Other answers here suggest that pjax doesn’t necessarily work well with many browsers, so that’s out.

Edit: Thanks everyone. I’ll be looking at tastypie to simplify exposing some json views, and man up to write some javascript by hand (Which having done a tiny bit earlier this year, seems much better than it was in the late 90s).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T00:06:49+00:00Added an answer on May 23, 2026 at 12:06 am

    On python side, I’d suggest to look at piston and tastypie.

    (Starting with AJAX + Django myself, I also found Dajax, but went with piston—felt more ‘unix-way’ for me, don’t like these all-in-one solutions. Though piston wasn’t updated for a long time now, so I’d recommend tastypie, which is actively maintained.)

    EDIT. There’s also a similar project, django-rest-framework. Never used it myself yet, it’s pretty new.

    Basically, these libs help you create a fully working read-write API for your models, so you can perform create-read-update-delete operations from your javascript via HTTP. You don’t need to define any views or serializers. Instead, you define resources, which is a decent abstraction, I think.

    And it usually takes just a few lines of code, especially if your resources are tied to models.

    However, if you need something more complicated, you can rethink your design write your views. With class-based views, it’s pretty easy, too. Take a look at this snippet for example.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Obviously I can use BCP but here is the issue. If one of the
It obviously depends on the context you are using them in but, I was
Obviously using stateless EJB beans in an entity bean smells, but please consider a
I'm using memcache for caching (obviously) which is great. But I'm also using it
I am using a custom class based off RelativeLayout but it obviously doesn't render
Obviously it gets updated during a write operation, but are there any non-destructive operations
Obviously I can do and DateTime.Now.After - DateTime.Now.Before but there must be something more
Version 1.0 of an application has a data model, which is saved/loaded using the
I'm trying to get my models related using ReferenceProperty, but not have a huge
Obviously, dereferencing an invalid pointer causes undefined behavior. But what about simply storing an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.