FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pyt/examples/example_inputs/django_views.py at master · jackcoolpython/pyt · GitHub
jackcoolpython
pyt
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
pyt
/
examples
/
example_inputs
/
django_views.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
17 lines (12 loc) · 346 Bytes
Breadcrumbs
pyt
/
examples
/
example_inputs
/
django_views.py
Copy path
File metadata and controls
17 lines (12 loc) · 346 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
def
django_view_function
(
request
,
x
):
return
x
class
DjangoViewClass
(
object
):
def
__init__
(
self
):
pass
@
classmethod
def
as_view
(
cls
):
def
view_function
(
request
,
x
):
return
x
return
view_function
# in practice, this would be called in a Django URLconf file
view
=
DjangoViewClass
.
as_view
()
Back
|
FazBrowse Home
|
New Git URL