Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Recent content by Javier Estévez

  1. J

    Django template6

    TemplateDoesNotExist at / todo_list_templates/list.html Request Method: GET Request URL: http://127.0.0.1:8001/ Django Version: 4.1.2 Exception Type: TemplateDoesNotExist Exception Value: todo_list_templates/list.html Exception Location...
  2. J

    How can I include the input and output file commandline arguments for my C++ program's run and debug configuration? [duplicate]

    Use the args field in your launch.json configuration to specify commandline arguments for the launch configuration.
  3. J

    PyTest warning - RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of django.urls.re_path()

    You should use re_path instead of url as url is deprecated. Sample code snippet is given below: from django.urls import re_path urlpatterns = [ re_path(r'^password/reset/$', PasswordResetView.as_view()), re_path(r'^password/reset/confirm/$', PasswordResetConfirmView.as_view())...
  4. J

    How to fit a image in all the empty space using css grid?

    Define the grid layout for that container and then specify the size and position of the image within that layout. <div class="grid-container"> <img src="your-image-url.jpg" class="grid-item"> </div> .grid-container { display: grid; grid-template-columns: repeat(3, 1fr)...
  5. J

    JavaScript add space to a string after 2 characters but ignore newline character

    I have to insert a space after every two characters in a string but by completely ignoring the newline character. I am able to do the spacing part but the problem comes with the newline as that is also counted as a character and when rendering the string it adds space at wrong positions. let...
  6. J

    React redirect to URL in all lowercase when there is an uppercase letter

    You can use Regular Expression for that. I dont see the use case for this but if you really want check with an if condition you can use the following function. export default function PrivateRoute(props) { const { component: Comp, exact, path} = props; const redirectToLowercase =...
  7. J

    How do I show only the y axis and hide everything else - including the plot itself and the x axis?

    I need to show only the elements of the y axis and nothing else. name <- c("A", "B", "C", "D", "E") values <- c(1, 2, 3, 4, 5) data<-data.frame(name, values) ggplot() geom_blank(data=data, aes(y=reorder(name,desc(name))))+ theme(axis.text.x=element_blank(), axis.title = element_blank()...
  8. J

    How do I solve this code when user select the second dropdown(select_2) box it will go to a hyperlink or new website

    If you need to catch the change event on the second dropdown, you may just add an handler for that event on the second dropdown like you did on the first one. Then, since I see you have the url to visit only on some options, before deciding to visit the given url, you may check if the dropdown...
Top