Ejemplo n.º 1
0
def home_view(request):
    context_dict = {}
    news = ManageBlog.get_news_blog()
    context_dict['news'] = news[:settings.NUM_HOME_NEWS]
    context_dict['SLIDE_TIMER'] = settings.SLIDE_TIMER
    projects = ManageProject.get_frontpage_projects()
    random.shuffle(projects)
    context_dict['projects'] = projects[:settings.NUM_HOME_PROJECTS]
    context_dict['tab_home'] = True
    return render_to_response('home.html', context_dict, context_instance=RequestContext(request))
Ejemplo n.º 2
0
Archivo: views.py Proyecto: tapia/osweb
def company_view(request):
    context_dict = {}
    projects = ManageProject.get_projects()
    context_dict['projects'] = projects
    context_dict['tab_company'] = True
    return render_to_response('main/company.html', context_dict, context_instance=RequestContext(request))
Ejemplo n.º 3
0
def project_detail(request, projectname):
    context_dict = {}
    context_dict['link'] = "http://www.openshine.com" + request.path
    context_dict['project'] = ManageProject.get_project(projectname)
    return render_to_response('projects/project_detail.html', context_dict, context_instance=RequestContext(request))
Ejemplo n.º 4
0
def projects_view(request):
    context_dict = {}
    context_dict['tab_projects'] = True
    projects = ManageProject.get_projects()
    context_dict['projects'] = projects
    return render_to_response('projects/projects.html', context_dict, context_instance=RequestContext(request))