old_contents: 
  # from django.shortcuts import render
  from django.http import JsonResponse
  from datetime import datetime
  from .api import Twitter
  from .models import Tweet, TwitterConfiguration
  
  
  def index(request):
      try:
          conf = TwitterConfiguration.objects.first()
          twitter = Twitter()
          topics = conf.topics.split()
          languages = conf.languages.split()
          twitter.stream(topics, languages)
          tweets = Tweet.objects.all()
          tweet = tweets[len(tweets) - 1]
          tweet_object = {
              'name': tweet.name,
              'user': '@{0}'.format(tweet.user),
              'text': tweet.text,
              'date': tweet.twitter_date_created.strftime('%d/%b/%Y      %H:%M'),
              'error': False
          }
          return JsonResponse(tweet_object, safe=False)
      except Exception:
          tweet_object = {
              'name': '@Penelope',
              'user': 'Penelope',
              'text': 'I can\'t find you love.',
              'date': datetime.now().strftime('%d/%b/%Y      %H:%M'),
              'error': True
          }
          return JsonResponse(tweet_object, safe=False)
  
new_contents: 
  # from django.shortcuts import render
  from django.http import JsonResponse
  from datetime import datetime
  from .api import Twitter
  from .models import Tweet, TwitterConfiguration
  
  
  def index(request):
      try:
          conf = TwitterConfiguration.objects.first()
          twitter = Twitter()
          topics = conf.topics.split()
          languages = conf.languages.split()
          twitter.stream(topics, languages)
          tweets = Tweet.objects.all()
          tweet = tweets[len(tweets) - 1]
          tweet_object = {
              'name': tweet.name,
              'user': '@{0}'.format(tweet.user),
              'text': tweet.text,
              'date': tweet.twitter_date_created.strftime('%d/%b/%Y      %H:%M'),
              'error': False
          }
          return JsonResponse(tweet_object, safe=False)
      except Exception:
          tweet_object = {
              'name': '@Penelope',
              'user': 'Penelope',
              'text': 'I can\'t find you love.',
              'date': datetime.now().strftime('%d/%b/%Y              %H:%M'),
              'error': True
          }
          return JsonResponse(tweet_object, safe=False)
  
subject: update in feature selector