top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Is it possible to display a data grid table with django

+1 vote
1,878 views

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.

posted Jan 4, 2014 by Amit Parthsarthi

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

+2 votes

Yes you can using the django template language.
Check out the django tutorial

answer Jan 4, 2014 by Anderson
+2 votes

The short answer is yes.

Basically I am looking for displaying a data from the db table on the web interface thru django or some other web interface.

While I prefer Django for larger projects, for a lighter-weight project such as what you describe, I'd be tempted to go with something a little more light-weight unless you need additional interactivity. I've recently been impressed with Bottle [ http://bottlepy.org/ ] for a small & clean web framework. CherryPy comes somewhere in the middle, but I can't say it met my needs/wants on the last project where it was chosen (mostly in the documentation department, but it's hard to beat Django's stellar docs).

answer Jan 5, 2014 by Jagan Mishra
Similar Questions
+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.

+1 vote

Anyone can explain how to delete or alter existing table in database?

+1 vote

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...

+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.

0 votes

I am having trouble matching Python data types with those of MySQL. MySQL has about 7 basic data types including Blobs, Binaries, etc. It also has a rich selection of geometry types. In addition, types like INT have 7 or 8 different options like Primary Key, zero fill, auto inc, etc. I can't seem to find anything in python to match these. I am trying to build a model.py for an existing database that was created with MySQL Workbench.

I do not wish to use anything other than MySQL because of the complexity of my storage needs (searchable text, PDF, Audio, Video and Photos). The text searches will often be word phrase searches through thousands of documents. I need the speed and the data type flexibility.

How do I build or modify a model.py to do this. I really don't want to write a model.py manually. That would really be a major pain. Workbench to the database an import to Django and edit is my choice. Unfortunately, the model.py produced has lost most of the functionality of the original database and I can't seem to figure out how to fix it.

...