- Working with forms
- HTML forms
- GET and POST
- Django’s role in forms
- Forms in Django
- The Django Form class
- Instantiating, processing, and rendering forms
- Building a form
- The work that needs to be done
- HTML forms
- Building a form in Django
This file contains hidden or 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
from http.client import HTTPResponse | |
import json | |
from django.shortcuts import render | |
from django.views.generic import ListView | |
import os | |
from requests import request | |
from . import forms | |
from django.views import View |
This file contains hidden or 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 "main/base_templates/base.html" %} | |
{% block content %} | |
{% if result %} | |
----- call api with ----- | |
{{ message }} | |
{% else %} | |
<div> enter your details here </div> |
This file contains hidden or 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
def getMeetingData(request): | |
myTokens = credentials() | |
print("....sending a", type(myTokens)) | |
return render(request,"getdata/meetingData.html",{'title':'meeting-data', | |
'message':'create a form to enter data and render data', | |
'myJsonTokens':myTokens['access_token']}) | |
class getMeetingClassView(ListView): |
This file contains hidden or 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 "main/base_templates/base.html" %} {% block content %} | |
<div class="content-section"> | |
<div class="title"> | |
<div>{{title}}</div> | |
<div>{{message}}</div> | |
</div> | |
{% csrf_token %} | |
<fieldset class="form-group"> |
Step 1 : go to the link below for generating code -> click allow -> copy from the url bar and update the code variable in environment
link : https://authentication.logmeininc.com/oauth/authorize?client_id=&response_type=code&redirect_uri=https://www.codanalytics.net/
This file contains hidden or 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
,Regex summary and examples | |
. - any charcter except newline | |
\d - Digit(0-9) | |
\D - Not a digit(0-9) | |
\w - word charcter(a-z, A-Z,0-9,_) | |
\W- not a word charcter | |
\s - whitespace(space , tab, newline) | |
\S - not a whitespace(space , tab , newline) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1. go to https://api-console.zoho.in/
"""
ZohoCRM.modules.ALL,ZohoCRM.org.ALL,ZohoCRM.modules.custom.all,ZohoCRM.users.all,ZohoCRM.org.all,ZohoCRM.settings.all
"""
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.