def paragraph(request):
form1 = PSummaryForm1()
form2 = PSummaryForm2()
# return render(request, 'paragraph.html', {'form1': form1, 'form2': form2 })
# if this is a POST request we need to process the form data
if request.method == 'POST':
form1 = PSummaryForm1(request.POST)
if request.POST.get("form_type") == 'formOne':
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
from re import search | |
#example_sent2 = "Sunset is the time of day when our sky meets the outer space solar winds. There are blue, pink, and purple swirls, spinning and twisting, like clouds of balloons caught in a whirlwind. The sun moves slowly to hide behind the line of horizon, while the moon races to take its place in prominence atop the night sky. People slow to a crawl, entranced, fully forgetting the deeds that must still be done. There is a coolness, a calmness, when the sun does set..XYZ, Example Exports as my Post Office Box 924 Yavatmal - 445001 INDIA.Ram is a very good student." | |
pin = [] | |
ct = [] | |
#for loading csv file into list | |
with open('pincode_final.csv',"r") as csvfile: | |
csv_f = csv.reader(csvfile) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
https://www.codechef.com/LTIME73B/problems/SILLYPRS | |
*/ | |
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
int t,n; | |
cin>>t; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Delete Albums Functionality" Code for Django Tutorial for Beginners - 32 - UpdateView and DeleteView | |
{% extends 'music/base.html' %} | |
{% block title %}Album Details{% endblock %} | |
{% block body %} | |
<img src="{{ album.album_logo }}" alt=""> | |
<!-- Just add this code inside your detail.html for updating albums.Simple Code for demonstration of | |
functionality.If you understand this then you can design page according to your need. | |
Dont forget to write method name of form is POST.Add this code snippet in your detail.html --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends 'music/base.html' %} | |
{% block body %} | |
{% if all_albums %} | |
<h3>All Albums : </h3> | |
<ul type='none'> | |
<!-- Just add this code inside your index.html for deleting albums.Simple Code for demonstration of | |
functionality.If you understand this then you can design page according to your need. --> | |
{% for album in all_albums %} | |
<li> | |
<div class="inline-form"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Bootstrap 4 Accordion with Plus Minus Icons</title> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css"> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> | |
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Best SQL tutorial for begineers | |
https://www.sqltutorial.org/ | |
https://www.sqltutorial.org/sql-cheat-sheet/ | |
SQL Extra concepts | |
https://www.sqltutorial.org/sql-views/ | |
https://www.sqltutorial.org/sql-functions/ | |
https://www.sqltutorial.org/sql-triggers/ | |
Interview Questions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- add lombok dependency inside pom.xml | |
- run lombook jar first using `java -jar lombok_jar` | |
- specify sts executable file name | |
- clean and build project |
I want to render two forms on single html page.
-
form1 has two inputs(paragraph to summarize and length of summary) and after clicking on generate summary button from left side of page it will return summary for left side paragraph
-
form2 has two inputs(paragraph to summarize and length of summary) and after clicking on generate summary button from right side of page it will return summary for right side paragraph
OlderNewer