All Questions
Tagged with web-development-server python-3.x
27 questions
0
votes
0
answers
1k
views
FastAPI Endpoint Returning Empty Data
I am working on a FastAPI endpoint (/all) that is supposed to fetch data from a database and return it in response. However, I am encountering an issue where the response data is very less compared to ...
0
votes
1
answer
95
views
PYTHON: no response in html
so im trying to create a simple page were after clicking the "submit" button i get the response "it works!"..(it's something very simple in order for me to get somewhere bigger, to ...
1
vote
0
answers
154
views
Unittest for flask app not running as expected
I have created a simple unit test for my flask app, these tests are saved in a different folder, and then called from the manage.py file. However, when I run the tests, none of the test functions is ...
0
votes
2
answers
414
views
Django page error. Something wrong in urls
I am new to Django and learning this python framework. I have created a virtual environment called Virtual_Django_Project and installed Django in it. Moving ahead I created folder called ...
0
votes
1
answer
236
views
How to process an uploaded file and notify the user later when the file is uploaded in django
I have a Django app that allows a user to upload file. I am processing this file on the server and it takes about 3 mins for the task to complete. I am assuming the browser won't wait that long for a ...
0
votes
1
answer
362
views
Serializer giving empty OrderedDict (data is None)
please note that email is basically the username here to not get confused, in serializer.py I have debugged the data, but it seem that user is giving me None
serializer.py
class LoginSerializer(...
1
vote
1
answer
548
views
How to send stream data using just python?
I am currently learning NodeJS and I learned a really neat way of sending big files, using streams, I already have a bit of an experience with Django but how can I do the following in Django (or ...
0
votes
1
answer
952
views
HTTPSConnectionPool(host='api.razorpay.com', port=443): Max retries exceeded with url: /v1/orders
I was developing a social-media/eCommerce web app with Django. I want to add a payment gateway for purchasing products on the website for that I am using 'Razorpay'.
I integrated it which worked fine ...
0
votes
1
answer
2k
views
What is the use of apps.py, appconfig in django project. How and why to use it? could someone explain in a simple way [duplicate]
from django.apps import AppConfig
class App1Config(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'app1'
1
vote
1
answer
124
views
When I delete a folder or a file in Django manually and try to run the project I'm getting error on the same module which I have deleted?
I have deleted a folder named accounts from my Django project and tried to run the file, but getting this error
"ModuleNotFoundError: No module named 'accounts'"
Even though I have deleted ...
0
votes
1
answer
263
views
how to connect javascript code to python flask
Iam working on a front end project.
my requirement is I need to create a flask API.
In front end one java script file will be there from there signal/message should go to python flask api and flask ...
5
votes
5
answers
8k
views
Django 3.x: AttributeError: module 'django.contrib.admin' has no attribute 'display'
from django.contrib import admin
from .models import Shop
@admin.register(Shop)
class ShopAdmin(admin.ModelAdmin):
@admin.display(description='Name')
def upper_case_name(self,obj):
...
0
votes
1
answer
134
views
I want to give users ten coins each time they create a post on my blog in django but it's not giving them automatically
I have tried alot of codes yet none of them have worked so I decided to leave the views unrelated to my models.py
My question is:
I want to give users ten coins each time they create a post on my blog ...
0
votes
1
answer
211
views
I'm using ubuntu, django 3.0.5, sqlte3 ...Help!!! Thanks! running "python manage.py shell" in command line, it gives error:
i am learning django,
I'm using python 3.8, django 3.0.5, sqlite 3
after running "python manage.py shell".
is this due to sqlite?
The Error i get is:
Traceback (most recent call last):
SyntaxError:...
0
votes
0
answers
42
views
How can I solve this problem of connecting MySQL with Django
This is the issue from running the server: