How can I pass the parameter "request" from a script to a view's function?
<p>I have a script which pretend to create a form in my site and receive the response, let's call it script.py.
This script needs to call a function in views.py:</p>

<pre><code>opc = newproject.views.Menu_Options(request, ask, Options)
</code></pre>

<p>This function needs to use request.POST, so needs to receive "request" as parameter.
The problem is:
Script.py doesn't know what is "request". I imported this:</p>

<pre><code>import newproject.views
import django
from django.http import request
</code></pre>

<p>I ran the project but simply ignored the parameter "request" and gave me an error in this line:</p>

<pre><code>opc = newproject.views.Menu_Options(ask, Options)


Exception Type: TypeError at /
Exception Value: Menu_Opctions() missing 1 required positional argument:     'Options'
</code></pre>

<p>Did I import a "wrong request"?
Is there any other way in views.py to import in a function the object "request" without passing it as parameter?
Thanks in advance! :) </p>