609 questions
Advice
0
votes
2
replies
58
views
How to create a virtualenv in the terminal of macOS?
Im trying to setup the python and Django environment on my macBook air. Im doing it directly on the terminal of the computer but when I write "virtualenv" so I can create a virtualenv on my ...
-4
votes
2
answers
83
views
CSS not being loaded in Flask WebFrame
I am building an banking application and I was just trying to link HTML using the Flask framework.
What I have done until now:
Clear all the cookies and Cache of the browser and run the code, Have ...
1
vote
1
answer
51
views
Message component of the Writer web app framework fails
The Writer web app framework has a Message component (https://dev.writer.com/components/message) that is supposed to display text, optionally formatted based on a prefix. From the documentation:
...
0
votes
1
answer
81
views
How do I connect my pre-exisiting html-css webpages to a python code using Flask?
So I had been working on a code for a movie-recommendation site for a school project, which we were supposed to do in Python. It stores a dictionary of movies and takes couple inputs to recommend ...
1
vote
2
answers
76
views
Why `(keydown.code.alt.leftshift)` does NOT match when pressing alt and left shift in Angular? But `(keyup.shift.enter)` matched when shift and enter
issue
abstract
As title said.
details
I followed the Angular tutorial -- Adding event listeners#Using key modifiers.
I adopt third code snippets
<!-- Matches shift and enter -->
<input type=...
1
vote
0
answers
70
views
How can I change app_url of Perl Kelp App
I want to change app_url.
I did it as follows:
package Post;
use Kelp::Base 'Kelp';
use utf8;
sub before_dispatch {
# overriding this method disables access logs
}
sub build {
my $self = ...
0
votes
1
answer
117
views
Snake Game with Angular - Snake not spawning
I am in the first step of creating a snake which requires to:
Create the game board
Create the snake and the fruit
Display the snake and the fruit o
The problem is that the board is updated after ...
-3
votes
1
answer
93
views
A website with a different web framework per webpage possible? [closed]
Basically, I wanna make a website wherein each pages is built on a different web framework and I wanna know if it is somewhat possible.
Example: Website's Home Page is made through the Ruby on Rails ...
0
votes
1
answer
145
views
What are the differences between a Web Server and a Web Server Gateway Interface (WSGI)?
I get confused between WSGI and a web server. I'd like an explanation of the differences between them, or if they are the same thing. And thank you in advance.
1
vote
1
answer
1k
views
Invalid websocket upgrade
I've set up a server with the help of NiceGUI and Nginx on a VPS. The requests are coming through a subdomain and routed correctly: The server receives the request and prints the html elements.
...
0
votes
1
answer
72
views
nextJS/Firebase (experiments:enable webframeworks) DB issue
I am having an issue with a nextJS app that I created on Firebase, following this procedure, running the commands below:
% npx create-next-app@latest
% cd myapp
% firebase experiments:enable ...
0
votes
1
answer
182
views
Creating a game in Flask / Print the values of a while loop in different html pages
For a project, I'm currently trying to create a game (a variation of the Hangman) in python using Flask to make it accessible on an html page. This game is destined to be used by deaf children to ...
0
votes
1
answer
454
views
How to pass data to endpoints with rust-rocket
I have a file called main.rs and a file rocket.rs. The first one is used to launch rocket defined in the other file:
main.rs
#[tokio::main]
async fn main(){
let rocket = rocket();
rocket....
1
vote
2
answers
497
views
"No Firebase app associated with site" message
While working with Firebase, using:
% firebase experiments:enable webframeworks
after running the command below:
% firebase deploy
I see this message (that I do not recall seeing before)...
1
vote
1
answer
2k
views
Trouble setting up nicegui
I am new to nicegui. It seems like a great framework!
When trying to setup nicegui, I am getting an error from the following setup code:
main.py:
from nicegui import ui
ui.label('Hello NiceGUI!')
ui....
3
votes
1
answer
483
views
What is more_body with HTTP response?
With the ASGI framework Starlette, it has a streaming response that makes use of some more_body parameter in the HTTP response to denote if chunks have finished streaming (source code). There is an ...
1
vote
1
answer
978
views
MVC and API web frameworks
I don't quite understand the distinction between MVC and API web frameworks. For example, FAST API is called a tool for creating APIs, but can't a full-fledged web application be built on it by ...
0
votes
1
answer
520
views
react installation not progressing further
I've installed npx create-react-app project and npm init react-app project various times but the installation gets stuck at a certain point and does not proceed further.
This is the installation which ...
0
votes
0
answers
359
views
Deno Fresh show loading state while server is working
Fiddling around with the Fresh web framework (deno) and need some suggestion on how to show a loading indicator on my /posts/ screen when the user clicks on an anchor tag that leads to /posts/prune.
...
0
votes
0
answers
190
views
Integrating Backend API with Tea Stack Front-End (TailwindCSS, Eleventy, AlpineJS)
In my new project, I'm learning about new front-end frameworks and libraries and found the Tea Stack (TailwindCSS, Eleventy, AlpineJS). I really liked the idea of this minimal stack (I have very ...
1
vote
1
answer
333
views
Django project crashes server when admin backend is accessed
Problem
I am running apache2 on my local ubuntu server. I set up a Django project using django-admin startproject site and set up my virtual host to use a WSGI Daemon process to run the Django project....
0
votes
1
answer
792
views
How to connect my HTML file with CSS file inside of a Django Project
I have a simple html page that works and renders properly on my local browser, but when I reference the static css file the page loads without the styling and I get a 200 Success for the url but 404 ...
1
vote
0
answers
1k
views
python interceptor to intercept request coming in an end point
I am trying to implement an interceptor to intercept request coming in an end point. In this interceptor, I need to access headers before applying function. This interceptor should work with flask, ...
0
votes
1
answer
72
views
Django Module Object is Not Callable Problem
I'm struggling to fix an error that doesn't allow me to access my /api/lead/ URL, as I keep getting an error "module object is not callable. Within my DjangoApp project, I have one other folder ...
0
votes
1
answer
213
views
Agensgraph, graph databases, web development and webgis, advice on which way to go?
More of an advice question here.
I'm well versed in Postgres/PostGIS, so I thought I'd look at Agensgraph aka Apache Graph Extension (AGE). This is a graph implementation in Postgresql which uses SQL ...
19
votes
9
answers
26k
views
How to use TailwindCSS without Node.js and npm?
To use TailwindCSS, I need to have Node.js and npm in order to install it via npm install tailwindcss @tailwindcss/cli.
However, I don't have the option to use Node.js and npm, so I'm looking for a ...
1
vote
1
answer
2k
views
Angular Materials Tab Groups not importing
I am trying to set up a mat-tab-group with angular materials.
Errors:
Compiled with problems:
ERROR
../../app.module.ts:28:5 - error NG2011: The component 'MatTab' appears in 'imports', but is not ...
1
vote
1
answer
4k
views
How to Pass Data from Server using SSR in SvelteKit?
I'm used to using Express with a templating engine, like Handlebars. I want to start working with Svelte and SvelteKit, but I'm unsure how to start working with both. I am stuck on passing data to the ...
0
votes
0
answers
310
views
How to save in local an image upload in a web application using plotly dash in python?
I want to make an app using dash in which the user uploads an image, the application saves it in a predefined local folder, modifies this image and finally shows the original image and the modified ...
1
vote
1
answer
886
views
How can I use google translate directly on sveltekit web pages
I've been having issues using google translator directly on my sveltekit web app using the following code
<script type="text/javascript" src="//translate.google.com/translate_a/...
38
votes
2
answers
36k
views
What is the purpose of Uvicorn?
I supposed to work with FastAPI. I was taught that FastAPI is used with Uvicorn. What exactly is Uvicorn. I don't know what uvicorn is doing with FastAPI exactly. Can anyone explain?
1
vote
1
answer
324
views
Which web frameworks does Builder.io support
I would like to better understand which frameworks does Builder.io supports? Are all supports of equal integration level?
1
vote
1
answer
1k
views
alpinejs : limitations on usage of x-on directive
It seems to me like the x-on directive does not work without the presence of an x-data directive on a parent element.
For example, the below does not work
<button
x-on:click='console.log("...
0
votes
1
answer
1k
views
C++ @ custom annotation as Java or Python
It's possible to create a custom annotation like @ or another character as Rust's [#...] in C++?
Target would be something like:
#pragma once
#include "my_header.h"
@RestController(path = &...
1
vote
1
answer
96
views
Web Framework Structure [closed]
There are plenty of Web Application Frameworks available over the internet. Each of them has its own rich documentation and tutorials. However, there is a lack of information about the structure of ...
-1
votes
1
answer
1k
views
Java or Kotlin for Spring Boot (And Other Web Frameworks) [closed]
I have learned both Java and Kotlin over the past year, and I want to go into backend development. I am ready to learn and explore everything I can, and I have noticed that majority [exception Ktor] ...
1
vote
1
answer
606
views
How to set a children compontent in vue.js to be shown as "default"
I have a project made in Vue.js 3, using vue-router with a configuration like this:
const routes = [
{
path: '/',
name: "home",
component: Home
},
{
path: '/philosophy',...
0
votes
0
answers
27
views
BDD Framework - Can't Remember Which One Had HTML Integration
I remember learning about a framework when BDD was first getting a lot of attention. This framework had the concept of using the rows or cells of an HTML table to document and run tests/features. So, ...
0
votes
1
answer
387
views
How to make script execute once the first script is loaded
I'm trying to make a web framework and one feature will be a key-value state management tool. I need the second <script> tag to only run after ./script.js loads in.
index.html:
<!DOCTYPE html&...
0
votes
1
answer
240
views
UNIQUE constraint failed: post_author.href in django
I will create a different author table using the user table available in django and I want to combine this custom table I created with the column in the post model. Thus, I will have both the author ...
0
votes
0
answers
150
views
DoesNotExist at /cart/ OrderStatus matching query does not exist
It is showing that the urls path and views.py code is not correct despite all the corrections made in the code.
from django.contrib import admin
from django.urls import path
from django.conf.urls ...
0
votes
1
answer
286
views
Does Paginator from django.core.paginator reduces the load on server?
I am using Django.core.paginator for splitting the data into pages in the Django web framework.
data = emodel.objects.filter(Id=e_id, Date__range=(start_date,end_date))
and in paginator:
page = ...
0
votes
1
answer
650
views
How to render all data related to object id in views.py
I am trying to create a webapp for a restaurant to display the different menus available, Breakfast, Lunch, evening etc. I have created models for Menu, Menu Category and Menu Items. I have a menu....
1
vote
1
answer
989
views
localhost:3000 refused to connect when using npm start
I am new to react and having a problem here. Whenever I try to run my react app using npm start, I am getting these errors
events.js:352
throw er; // Unhandled 'error' event
^
Error: ...
7
votes
3
answers
2k
views
Are there apps built on top of VSCode open source base?
VSCode has a very customizable UI with Activity Bar, Sidebar, Tabs, Status Bar etc (https://code.visualstudio.com/docs/getstarted/userinterface); customizable via extensions and seems to have been ...
0
votes
1
answer
49
views
Accessing Statics Files in Django
I am having a structure of Django Project as:
│ db.sqlite3
│ manage.py
│
├───static
│ │ 1.jpg
│ │ bg1.jpg
│ │
│ └───css
│ login.css
│
...
1
vote
1
answer
301
views
Running cherrypy app on AWS: socket could not be created
I have developed a small web app on my Windows PC and tested it locally.
Then I wanted to transfer it to an AWS Ubuntu 18 instance.
For the sake of brevity, the app processes a form from a webpage and ...
0
votes
1
answer
94
views
Django-Virtual env
scripts folder is not available in my virtual environment folder.Any one please help me
How to activate virtual env ?
I did following commonds :-
pip3 install virtualenv
virtualenv bg
cd bg
cd scripts
...
0
votes
0
answers
191
views
Flask-wtforms: file not uploading
I'm trying to upload a file using flask_wtforms. The html page gets opened and I can choose the file but nothing happens when I click submit. There is no validation error or any other error. I've ...
1
vote
1
answer
444
views
Django mark / select some data in listview
i have listview class like this :
class VechileListView(ListView):
model = Vechile
template_name = 'store/arm_list.html'
context_object_name = 'arm'
in model Vechile, there are field ...