title: How to write a custom decorator in django?
body: <p>The problem -</p>
  
  <pre><code>@is_premium_user
  def sample_view:
            .......
            ......
  </code></pre>
  
  <p>I want certain views accesible to only the premium users of the website.<br>
  And how can I use this decorator across various applications in my project?</p>