avatarLaxfed Paulacy

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

1431

Abstract

ow would things sound if I stopped thinking?</li></ul><h2 id="9fa8">Somatic Field</h2><ul><li>Which part of my body is the least comfortable?</li><li>Which parts of my body are hardest to detect?</li><li>What happens when I concentrate on two body parts at once?</li><li>Do any bad emotions arise during the body scan?</li><li>How would my body change if I stopped thinking about it?</li></ul><h2 id="778a">Taste Field</h2><ul><li>Does the taste change as I roll it around my tongue?</li><li>How does the intensity compare with other things I have tasted?</li><li>How would it taste if I had never smelled it?</li><li>Does my feeling about the taste change between first contact and swallow?</li><li>How would it taste if I were asleep right now?</li></ul><h2 id="a87c">Olfactory Field</h2><ul><li>Would I recognize the smell if I had not seen it?</li><li>What adjectives are suitable? (Smooth? Bold? Sweet? Floral?)</li><li>How close must it come to me before my nose can detect it?</li><li>Does it improve my mood or worsen it?</li><li>What memories does it bring to mind?</li></ul><h2 id="5631">Cognitive Field</h2><ul><li>If my thoughts were rabbits in a yard, how crowded would the yard be?</li><li>If my attention was a dog, which rabbits would it chase?</li><li>How much of my focus three seconds ago was on the past?</li><li>How does a little circle make me feel?</li><li>What would I be dreaming now if I were not awake?</

Options

li></ul><h2 id="9690">Emotional Field</h2><ul><li>How easy or hard is it to turn each feeling on and off?</li><li>What changes will happen when I start to pray?</li><li>If I were the prow of a ship would my sea be bright under the sun?</li><li>Who have I shared this suffering with?</li><li>How deeply do I love you?</li></ul><figure id="ef74"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*31vXTbzWPAdDxN72iuu31w.jpeg"><figcaption>Photo by Author | Dancing with the Goddess</figcaption></figure><h2 id="1f17">Questions After the Scans are All Finished</h2><ul><li>Did I close my eyes for most of the scans?</li><li>In what ways are mental fields like maps?</li><li>If I were only allowed to keep one field, which one would I choose?</li></ul><h1 id="010c">Note</h1><p id="4022">To the best of my recollection, all the questions are in my own words. If I copied anybody from unconscious memory it was probably my first remote meditation teacher, <a href="https://www.thegreatcourses.com/professors/mark-w-muesse/">Mark Muesse</a>, a Therevada practitioner from Texas.</p><h1 id="d3c3">About the Author</h1><p id="f104">Tom spends his workdays asking people in a big store if they would like any information about heating and cooling. He often wears an Indiana Jones hat. A grapevine in his front yard convinced him to let her live and to even provide her with a little support. That’s all. :)</p></article></body>

PYTHON — Variable Arguments In Url Routing And Views In Python

Simplicity is the soul of efficiency. — Austin Freeman

Insights in this article were refined using prompt engineering methods.

PYTHON — Installing And Launching Jupyter For Python

## Variable Arguments in URL Routing and Views in Python

In Python, variable arguments in URL routing and views are instrumental in passing dynamic data and customizing the display of information to users. This tutorial will guide you through setting up variable arguments in URL routing and views in a Django project. By the end of this tutorial, you’ll be able to display a single project on a webpage by accessing its unique URL.

Setting Up URL Routing

In a Django project, URL routing is configured in the urlpatterns list within the urls.py file of each app. To include variable arguments in URL routing, such as an integer to specify a particular resource, you can use angle brackets and specify the type of data expected. This allows capturing part of the URL and passing it forward into the app.

# urls.py

from django.urls import path
from . import views

urlpatterns = [
    path('', views.all_projects),
    path('<int:pk>', views.project_detail)
]

In the above code snippet, the URL pattern <int:pk> captures an integer value from the URL and passes it to the project_detail view.

Creating the View Function

The view function, project_detail, retrieves the specific resource from the database based on the provided primary key and renders it to the user. The primary key captured from the URL is used to fetch the corresponding data from the database.

# views.py

from django.shortcuts import render
from .models import Project

def project_detail(request, pk):
    project = Project.objects.get(pk=pk)
    return render(request, 'projects/detail.html', {"project": project})

Displaying the Project Details

The project details are then displayed on the webpage using a template. Ensure that the context dictionary passed to the render function in the view matches the variable name used in the template.

<!-- detail.html -->

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Project Details</title>
</head>
<body>
    <h1>Project Name: {{ project.name }}</h1>
    <p>{{ project.description }}</p>
    <!-- Add more project details here -->
</body>
</html>

In the detail.html template, the project details are accessed using the project variable, which was passed from the view.

Conclusion

By incorporating variable arguments in URL routing and views, you can create dynamic web applications that cater to individual resources. This approach enables users to access specific content based on the provided URL, enhancing the interactivity and customization of the application.

PYTHON — Recursion in Python Class

Arguments
Views
Url
Routing
Python
Recommended from ReadMedium