# Path: course/models/news.py
# class News(models.Model):
#     def __str__(self):
#     def render_entry(self):
#     def render_date(self):


from course.models import news
from django.shortcuts import render, render_to_response
from django.utils.translation import ugettext as _


def index(request):
    return render(
        request,
        'index.html',
        {
            'title': _('Welcome'),
            'news': news.News.objects.order_by('-id')

# Path: course/models/news.py
# class News(models.Model):
#     def __str__(self):
#     def render_entry(self):
#     def render_date(self):


# Path: course/views/index.py
from course.models import news
from django.shortcuts import render, render_to_response
from django.utils.translation import ugettext as _



def index(request):
    return render(
        request,
        'index.html',
        {
            'title': _('Welcome'),
            'news': news.News.objects.order_by('-id')

        }