I have django running on an apache server using mod_wsgi, as well as an angularjs app served directly by apache, not by django. I would like to make POST calls to the django server (running rest_framework) but I am having problems with the csrf tok...
I am trying to use Vue.js in Django templates. One such template is the following:  {% load static %} <!DOCTYPE html> <html>  <head> </head>  <body>     <div id="myApp">         <span>Hello [[ message...
I'm trying to use JavaScript's fetch library to make a form submission to my Django application. However no matter what I do it still complains about CSRF validation.  The docs on Ajax mentions specifying a header which I have tried.  I'v...
Is it possible to save the javascript html5 geolocation latitude and longitude to the django admin when user uses the geolocation website. The web page goal is to save the user's longitude and latitude values so that the data can be accessed late...
First of all, I am a newbie at programming. I am trying to make a web page where you have a Google Map embedded, and in this Map you can see a colored line that sets a path. For this, I am using Django. In my views.py I have a variable called points,...
Update:  I was writing a small module to handle this csrf token problem in backbone until I got push notification of @Louis's answer.  His answer is quite elegant and seems nice, but I'll leave a link to my backbone.csrf module github repo ju...
I have a Django template with an AJAX menu (where clicking on different menu items reloads a part of the page). Each menu click invokes a Django view function through AJAX and returns some data to be shown on the page.  I am loading all the JS requir...
Background: I have a dynamic table (as in I don't know its size/elements until runtime) where I am trying to populate a text area with a javascript function. To do this I plan on passing the text area's id along with the values I want to popu...
I'm currently generating an image via matplotlib using the properties of an object, and am able to create a view that displays said image in a HttpResponse. I used the following snippet to do so: http://wiki.scipy.org/Cookbook/Matplotlib/Django....
I'm starting a project and following the documentation I didn't succeed to include javascript.  Here is my settings:  STATIC_URL = '/static/'  STATICFILES_DIRS = (     os.path.join(BASE_DIR, "static"), )  STATIC_ROOT = '/s...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.