Skip to content
This repository has been archived by the owner on Jun 22, 2020. It is now read-only.

Commit

Permalink
Adicionando view home básico
Browse files Browse the repository at this point in the history
  • Loading branch information
daltonmatos committed Sep 28, 2013
1 parent 21cdafb commit f91cd27
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 31 deletions.
7 changes: 7 additions & 0 deletions apihackday/bolao/views.py
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# Create your views here.
from django.http import HttpResponse
from django.shortcuts import render_to_response
from django.template import RequestContext


def home(r):
return render_to_response('base.html', context_instance=RequestContext(r))
56 changes: 28 additions & 28 deletions apihackday/templates/base.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<!DOCTYPE html>
{% load staticfiles %}
<html lang="en">
<head>
<meta charset="utf-8">
Expand All @@ -11,12 +12,12 @@

<!-- Le styles -->
<link href='http://fonts.googleapis.com/css?family=Roboto:400,300,700' rel='stylesheet' type='text/css'>
<link href="{{ STATIC_URL }}css/bootplus.min.css" rel="stylesheet">
<link href="{{ STATIC_URL }}css/bootplus-responsive.min.css" rel="stylesheet">
<link href="{{ STATIC_URL }}css/font-awesome.min.css" rel="stylesheet">
<link href="{{ STATIC_URL }}css/font-awesome-ie7.min.css" rel="stylesheet">
<link href="{{ STATIC_URL }}css/bootplus.css" rel="stylesheet">
<link href="{{ STATIC_URL }}css/bootplus.css" rel="stylesheet">
<link href="{% static 'css/bootplus.min.css' %}" rel="stylesheet">
<link href="{% static 'css/bootplus-responsive.min.css'%} " rel="stylesheet">
<link href="{% static 'css/font-awesome.min.css'%}" rel="stylesheet">
<link href="{% static 'css/font-awesome-ie7.min.css'%}" rel="stylesheet">
<link href="{% static 'css/bootplus.css'%}" rel="stylesheet">
<link href="{% static 'css/bootplus.css'%}" rel="stylesheet">

<style type="text/css">
body {
Expand All @@ -37,11 +38,11 @@
<![endif]-->

<!-- Fav and touch icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ STATIC_URL }}ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="{{ STATIC_URL }}ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{ STATIC_URL }}ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="{{ STATIC_URL }}ico/apple-touch-icon-57-precomposed.png">
<link rel="shortcut icon" href="{{ STATIC_URL }}ico/favicon.png">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{% static 'ico/apple-touch-icon-144-precomposed.png'%}">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="{% static 'ico/apple-touch-icon-114-precomposed.png'%}">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="{% static 'ico/apple-touch-icon-72-precomposed.png'%}">
<link rel="apple-touch-icon-precomposed" href="{% static 'ico/apple-touch-icon-57-precomposed.png'%}">
<link rel="shortcut icon" href="{% static 'ico/favicon.png">
</head>

<body>
Expand Down Expand Up @@ -166,23 +167,22 @@ <h3 class="card-heading simple">Simple News Card</h3>
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="{{ STATIC_URL }}js/jquery.js"></script>
<script src="{{ STATIC_URL }}js/bootstrap-transition.js"></script>
<script src="{{ STATIC_URL }}js/bootstrap-alert.js"></script>
<script src="{{ STATIC_URL }}js/bootstrap-modal.js"></script>
<script src="{{ STATIC_URL }}js/bootstrap-dropdown.js"></script>
<script src="{{ STATIC_URL }}js/bootstrap-scrollspy.js"></script>
<script src="{{ STATIC_URL }}js/bootstrap-tab.js"></script>
<script src="{{ STATIC_URL }}js/bootstrap-tooltip.js"></script>
<script src="{{ STATIC_URL }}js/bootstrap-popover.js"></script>
<script src="{{ STATIC_URL }}js/bootstrap-button.js"></script>
<script src="{{ STATIC_URL }}js/bootstrap-collapse.js"></script>
<script src="{{ STATIC_URL }}js/bootstrap-carousel.js"></script>
<script src="{{ STATIC_URL }}js/bootstrap-typeahead.js"></script>

<script src="{{ STATIC_URL }}js/js/bootstrap.min.js"></script>
<script src="{{ STATIC_URL }}js/angular.min.js"></script>
<script src="{{ STATIC_URL }}js/controller/Profile.js"></script>
<script src="{% static 'js/jquery.js'%}"></script>
<script src="{% static 'js/bootstrap-transition.js'%}"></script>
<script src="{% static 'js/bootstrap-alert.js'%}"></script>
<script src="{% static 'js/bootstrap-modal.js'%}"></script>
<script src="{% static 'js/bootstrap-dropdown.js'%}"></script>
<script src="{% static 'js/bootstrap-scrollspy.js'%}"></script>
<script src="{% static 'js/bootstrap-tab.js'%}"></script>
<script src="{% static 'js/bootstrap-tooltip.js'%}"></script>
<script src="{% static 'js/bootstrap-popover.js'%}"></script>
<script src="{% static 'js/bootstrap-button.js'%}"></script>
<script src="{% static 'js/bootstrap-collapse.js'%}"></script>
<script src="{% static 'js/bootstrap-carousel.js'%}"></script>
<script src="{% static 'js/bootstrap-typeahead.js'%}"></script>
<script src="{% static 'js/js/bootstrap.min.js'%}"></script>
<script src="{% static 'js/angular.min.js'%}"></script>
<script src="{% static 'js/controller/Profile.js'%}"></script>

</body>
</html>
4 changes: 1 addition & 3 deletions apihackday/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
v1_api.register(ApostadorResource())

urlpatterns = patterns('',

# Examples:
# url(r'^$', 'apihackday.views.home', name='home'),
url(r'^$', 'bolao.views.home', name='home'),
# url(r'^apihackday/', include('apihackday.foo.urls')),
url(r'', include('social_auth.urls')),
url(r'^api/', include(v1_api.urls)),
Expand Down

0 comments on commit f91cd27

Please sign in to comment.