# Retrieve data from database without refreshing page

**URL:** <https://forum.djangoproject.com/t/retrieve-data-from-database-without-refreshing-page/5245>\
**Category:** Using Django\
**Created:** [November 17, 2020, 3:55pm UTC](https://forum.djangoproject.com/t/retrieve-data-from-database-without-refreshing-page/5245 "2020-11-17T15:55:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashokpanigrahi88](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/ashokpanigrahi88/32/2445_2.png) [@ashokpanigrahi88](https://forum.djangoproject.com/u/ashokpanigrahi88)\
**Post date:** [November 17, 2020, 3:55pm UTC](https://forum.djangoproject.com/t/retrieve-data-from-database-without-refreshing-page/5245/1 "2020-11-17T15:55:08Z")

</div>

Hello  
We are in the process of developing a complex ERP application (i.e. migrating desktop based application ) in django. Will need some help on how to achieve goal  
User Interface: Goods Receipt  
Input : Select Supplier from dropdown  
Output : Display address details automatically  
Input : Item Number  
Output : Display Item details i.e. name, price etc  
Input : Enter Quantity  
Output : Calculate prices , taxes , total automatically  
Is this possible using django.  
Has anybody in the community developed this kind of application ?  
Will really appreciate your help ,support or point me in right direction.  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![Suttonium](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/suttonium/32/1264_2.png) [@Suttonium](https://forum.djangoproject.com/u/Suttonium)\
**Post date:** [November 17, 2020, 5:06pm UTC](https://forum.djangoproject.com/t/retrieve-data-from-database-without-refreshing-page/5245/2 "2020-11-17T17:06:07Z")

</div>

To answer your question – yes, this is possible in Django, but it will involve some processing in your django views and javascript.

---

<div class="post-metadata">

**Author:** ![Berries](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/berries/32/2461_2.png) [@Berries](https://forum.djangoproject.com/u/Berries)\
**Post date:** [November 18, 2020, 10:35am UTC](https://forum.djangoproject.com/t/retrieve-data-from-database-without-refreshing-page/5245/3 "2020-11-18T10:35:35Z")

</div>

As mentioned above, you will need to use some javascript. The fastest way to do this would be to use ajax with jquery. It’s not the best way but if you want something working asap then it’s a good way to go. Otherwise, you can look into a framework like VueJS or React, but this will take much longer to integrate into your project. Here is an example where ajax is used in django templates. [Ajax request with django](https://simpleisbetterthancomplex.com/tutorial/2016/08/29/how-to-work-with-ajax-request-with-django.html)
