Skip to content
Advertisement

Tag: django

AJAX post request with django and python

I am trying to build a web app on django where a user can record something which then gets turned into text and after that sent to the server with AJAX. I did some research and found this article: https://medium.com/@manask322/implementing-speech-to-text-feature-in-a-django-app-f0fa53bb3e03 So I copied the html code: (this is only the part I copied) But changed the function in views.py a

How to store bitcoin and USD on the same django models field?

To store USD I am using DecimalField: But what if I want to store bitcoins? Bitcoin’s minimal thing is satoshi. One bitcoin = million satoshi. I have 2 options: using DecimalField with decimal_places=5 or using an IntegerField. But I do not want to have a sepperate field for storing this. Is there any way to organize storing bitcoin and USD

How to overwrite Django app to Pythonanywhere?

After the second time deploying the Django app to Pythonanywhere, (I re-edited and overwritten in VS code and did git push) I got the following error. The command is The first deployment succeeded but the second one is not. I don’t know the cause and how to overwrite it… Answer You need to have a requirements.txt file in your project

Advertisement