title: I have two data to render
body: <p>Now I have two data to render: one is in 'base.html', and the other is in 'index.html'.I tried the following two methods, but none of them worked.</p>
  <h1>views.py</h1>
  <pre><code>def everyday_cs(request):
      r = Content.objects.filter(is_check=True)
      everyday_cs = random.choice(r)
      return render(request, 'base.html', locals())
  
  def index(request):
      everyday_cs(request)
      articles = LifeArticle.objects.all()
      return render(request, 'index.html', locals())
  </code></pre>
  <h1>url.py</h1>
  <pre><code>urlpatterns = [
      url(r'^$', views.index,),
  ]
  </code></pre>
  <p>and</p>
  <h1>testurl.py</h1>
  <pre><code>urlpatterns = [
      url(r'^$', views.index,),
      url(r'^$', views.everyday_cs,),
  ]
  </code></pre>
  <h1>base.html</h1>
  <pre><code>{{everyday_cs}}
  </code></pre>
  <h1>index.html</h1>
  <pre><code>{% extends &quot;base.html&quot; %}
  {% if articles %}
  {% for article in articles %}
  {{article.title}}
  {% endfor %}
  {% endif %}
  </code></pre>
  <p>I want to run the 'everyday_cs' function first when I run 'index' and 'url.py' write two 'url(r'^$', )' to run them, but they don't work.</p>