title: My function is missing 1 required positional argument: 'request'
body: <p>I am currently working on my first website, and I'm experiencing some trouble in views.py. Specifically this def:</p>
  <pre><code>def translated_view(self, request):
      text = request.POST.get('text')
      translate = self.translator
      context = {
          'translated': translate(text)
  
      }
      return render(request, context, 'main/translated.html')
  </code></pre>
  <p>The self is because of this other function that translates text into an invented language.</p>
  <pre><code>def translator_view(request):
      def translator(phrase):
          translation = &quot;&quot;
          for letter in phrase:
              if letter.lower() in &quot;a&quot;:
                  if letter.isupper():
                      translation = translation + &quot;U&quot;
                  else:
                      translation = translation + &quot;u&quot;
              elif letter.lower() in &quot;t&quot;:
                  if letter.isupper():
                      translation = translation + &quot;A&quot;
                  else:
                      translation = translation + &quot;a&quot;
              elif letter.lower() in &quot;c&quot;:
                  if letter.isupper():
                      translation = translation + &quot;G&quot;
                  else:
                      translation = translation + &quot;g&quot;
              elif letter.lower() in &quot;g&quot;:
                  if letter.isupper():
                      translation = translation + &quot;C&quot;
                  else:
                      translation = translation + &quot;c&quot;
          return translation
      return render(request, 'main/translator.html', { translator : 'translator'})
  </code></pre>
  <p>As you can see I have the request argument. However I'm still seeing this error.</p>