top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Adding a button with parallel functionality with Django

+1 vote
460 views

I have created a django project some months ago. It is an online survey. Now I want to add a button that when pressed adds something to a database, but does not change any existing functionalities.

Brief explanation:
button will always be present at the pages with survey questions,
when pressed it will simply add a page number (at which page user decided to press the button) to a database, but the user will continue with the survey as normal.
(when the button is pressed, the view, template, questions at hand should not change. Nothing changes for the survey subject!)

My question is how to simply add this button without interfering with the survey.
I do not need detailed instructions with models, views, templates, etc. just brief idea if it is possible to do that without adding new view, reloading view, adding forms etc...

posted Dec 8, 2013 by Mandeep Sehgal

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button
Offhand, it sounds like you need a button wired up to some javascript  which fires off an asynchronous HTTP request. But, since you haven't  really described anything about the structure of your application, that's just a wild guess.

Similar Questions
+1 vote

Is it possible to display a data grid table with django? Basically I am looking for displaying a data from the db table on the web interface through django or some other web interface.

My main application is in Python, that's why I'd like to explore Python possibilities first.

+2 votes

I am trying to learn Django. My initial exercise seems fine. I want to create an API with REST on Django for an interactive Python code. REST framework on Django I am understanding more or less.

I am looking for a simple example to start with. I am using Python 2.7+ on MS-Windows 7 Professional.

If any one may kindly suggest.

+4 votes

I have been trying to set up a python, django, mysql, virtualenvwrapper and git development project and am really confused. All of the documentation seems to ignore the apt-get installation methods used by Debian Linux and its derivatives. Does pip install the same as apt-get; I don't think so. If I use virtualenvwrapper, how does this fit with the normal debian (wheezy) installation. I also need git which just confuses the situation even more. Must I give up the automatic updating system that Debian provides when setting up the development environment?

The documentation centers on Windows, Mac and generic Linux distributions and ignores the automation of the Debian installation. All of the documentation I have found concentrates on the installation of individual packages or on the use of python-django and is very sketchy on the overall virtualenv(wrapper), git, python-django file structure and installation order.

+1 vote

I want to count the number of active user in website and also I have to display their IP Address by using python Django framework.

0 votes

Like in Angular Project we will use npm modules,dist etc. Similarly whats for Django Projects?

...