37 lines
642 B
Plaintext
37 lines
642 B
Plaintext
include::../description.adoc[]
|
|
|
|
include::../ask-yourself.adoc[]
|
|
|
|
include::../recommended.adoc[]
|
|
|
|
== Sensitive Code Example
|
|
|
|
Django endpoint declaration
|
|
|
|
----
|
|
from django.urls import path, re_path
|
|
|
|
def declare_views(views):
|
|
return [
|
|
path('', views['index']), # Sensitive
|
|
re_path(r'^about/[0-9]*/$', views['about']), # Sensitive
|
|
]
|
|
----
|
|
|
|
include::../see.adoc[]
|
|
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
'''
|
|
== Implementation Specification
|
|
(visible only on this page)
|
|
|
|
include::../message.adoc[]
|
|
|
|
'''
|
|
== Comments And Links
|
|
(visible only on this page)
|
|
|
|
include::../comments-and-links.adoc[]
|
|
endif::env-github,rspecator-view[]
|