Commits

Sergio Berlotto committed 3fb74bb Draft

Tema

  • Participants
  • Parent commits 6d192ff

Comments (0)

Files changed (11)

-
-^\.pyc/
+^\.pyc/
 ^static/

File allsites/__init__.pyc

Binary file added.

File allsites/models.py

+from django.db import models
+from django.contrib.sites.models import Site
+
+class Noticia(models.Model):
+    '''
+    Model para guardar notícias simples
+    '''
+    titulo = models.CharField(max_length=30)
+    conteudo = models.TextField()
+    url = models.SlugField(max_length=150)
+    dt_criacao = models.DateTimeField(auto_now_add=True)
+    dt_alteracao = models.DateTimeField(auto_now=True)
+    

File allsites/settings.py

     # Use Django-Compress ?
     # 'compress',
     
+    'allsites',
+    
     'django.contrib.flatpages',
 )
 

File allsites/settings.pyc

Binary file added.

File allsites/urls.pyc

Binary file added.

File allsites/views.pyc

Binary file added.

File allsites/wsgi.pyc

Binary file added.

File themes/default/base_generic.html

 
   <div id="main">
     <div id="header">
-        <img src="/static/img/header.png"/>
+        <h1>AllSites FW</h1>
+        <h2>Your free simple generic site framework</h2>
     </div> <!-- end header -->
     <div id="content">
         {% block content %}

File themes/default/home.html

 {# This is description of <HEAD> meta tag #}
 {% block description %}The Allsites Django Default Template{% endblock %}
 
-{% block static_at_head %}
-{% endblock %}
 
 {% block content %}
   <h1>The Allsites Django Default Template</h1>
 {% endblock %}
 
 
-{% block static_at_body %}
-{% endblock %}

File themes/default/static/css/styles.css

 body{
-
+    background-color: #F8F8F8;
 }
 
 #main{
     height: 200px;
     width: 100%;
     border-bottom: 10px solid #c3c3c3;
-    background-color: yellow;
+    background: #909090 ;
 }
 
 #content{
     width: 800px;
     float: left;
-    background-color: #ffhhff;
+    background-color: #FFF;
 }
 
 #sidebar{
     width: 160px;
     float: left;
-    background-color: blue;
+    background-color: #FF0033;
 }
 
 #footer{
     width: 100%;
     clean: both;
-    background-color: #c5c5c5;
+    background-color: #660000;
 }