Questions tagged [web-development-server]

Use this tag for questions related to a Web-development Server, i.e. the backend/server side of a web application, when it comes to its development.

can be used in several situations, so please use one or more additional tags to better describe your case.

1473 questions
-1
votes
2 answers

how to resize my image preview for website

Hi I'm using the below code to setup a image preview It sets up the preview…
unofficialdxnny
  • 105
  • 1
  • 7
-1
votes
1 answer

we can used react-router-dom and rect-scroll/module at same time in react.js? if yes then how to used?

import React from 'react' import "./Navbar.css" import { Link } from 'react-scroll/modules'; import { Link } from "react-router-dom"; In my project I need to use react-scroll and react-router-dom at time in react app but import { Link } from…
-1
votes
1 answer

i am facing this error in Node.js 'INVALID_HTTP_TOKEN' how to fix it?

I was learning to make a basic server in Node.js but I face this error every time I try to run my server I have provided an image of my code and an image of the error as well please help if you can Code Error
-1
votes
1 answer

passing variable value from django to another python script

I want to run an external python file the Django.view code is as follows: def generate(request): a=int(request.POST["status"]) b=int(request.POST["level"]) run(['python', 'water.py',a,b]) I have imported this water.py file from my app…
-1
votes
2 answers

How to download a file from Flask with send_from_directory?

Hi I am having trouble downloading a csv file in Flask which is stored in csv_files folder. The structure of the files is as below. I am getting requested url is not found on server error. Please help I am a novice Flask user. I have an export…
user3608646
  • 13
  • 1
  • 8
-1
votes
1 answer

How do I upload files to my web server by passing the file path in the URL using Flask?

I am able to upload files through forms using Flask but what I require is to be able to put the local file path in the URL and then flask can upload the file and process it. How do I do this?
-1
votes
1 answer

How to pass a variable from Javascript to Flask

I was doing a little project where I want to pass value of variable "x" from javascript to a pyhthon variable get_x. Can someone help me on how to do so. index.html:

-1
votes
1 answer

Is there any alternatives for XMLHttpRequest in client server communication

I have a XMLHttpRequest to communicate with an server side .php file (clientserver.php). The request is like, tablink = tab.url; $("#p1").text("Selected URL - "+tablink); var xhr=new XMLHttpRequest(); params="url="+tablink; //…
-1
votes
1 answer

Is there a way to write websocket code in a standard way?

It seems that every single language and all of its web socket libraries uses its own slightly different quirky method to write its web socket code, slightly different code, slightly different language, some longer, some shorter, some simpler and…
-1
votes
1 answer

How to send data continuously from views.py to html template in Django?

Is there any way to send continuous data from views.py to a html template? If I use return then we can send data only once but i want to send continuously for some time.
-1
votes
2 answers

Python FLASK Return KeyboardIntrupt

I created a route for Flask which executes a python script "Voice_Recorder.py". This script starts recording a wav file. To stop recording and saving the file I need to pass a keyboard interrupt. Is it possible to pass a keyboard interrupt from the…
-1
votes
1 answer

Visual Studio Live Server

I use visual studio code for web development. when I use live server for open (.js) file the live server open in browser and I saw listing directory/ in my browser . my .html file work but .Js file cannot work
-1
votes
1 answer

Index.js is not importing App.js even when when export is used

Even though when I am using 'export default App;' there is still an error saying './App does not contain a default export (imported as 'App').' in Index.js file. The error is solved when i change the name of the file. this is the code in App.jsx…
-1
votes
1 answer

What is the use of apps.py, appconfig in django project. How and why to use it? could someone explain in a simple way

from django.apps import AppConfig class App1Config(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'app1'
-1
votes
1 answer

How do I return a file to a user using Flask

I am new to Flask and web dev in general, so bear with me. I've been working on a Flask application where the user submits a file to a form, the server takes it and manipulates it, then returns the edited file back to the user. I am aware that the…
jshe2304
  • 33
  • 1
  • 3