Página principal

parent 20df0318
Nuclear Blast icon by Arthur Shlain (CC by 3.0)
Proyecto Manhattan
==================
> First we take Manhattan, then we take Berlin
> First we take Manhattan, then we take Berlin.
Manhattan es una aplicación web para gestionar los proyectos de Innovación Docente.
Está desarrollada con [Django](https://www.djangoproject.com/) 2 y mucho cariño ♥.
......@@ -12,14 +12,26 @@ Requisitos
* Python 3.7 o superior (el script `compile_python.sh` lo instala en Debian o Ubuntu).
* [pip](https://pip.pypa.io/en/stable/installing/) (puede venir con la instalación de Python).
* [pipenv](https://github.com/pypa/pipenv) (se puede instalar con pip).
* [pipenv](https://github.com/pypa/pipenv) (se puede instalar con `sudo -H pip3.7 install pipenv`).
* Un SGBD aceptado por Django (vg PostgreSQL o MariaDB).
Instalación
-----------
`pipenv --python 3.7 install --dev`
```shell
cd manhattan
pipenv --python 3.7 install --dev
```
Ejecución
---------
```shell
pipenv shell
./manage.py runserver
```
Configuración
......
from django.urls import path
# from . import views
from .views import AyudaView, HomePageView
urlpatterns = [
path("", HomePageView.as_view(), name="home"),
path("ayuda/", AyudaView.as_view(), name="ayuda"),
]
from django.shortcuts import render
from django.views.generic import TemplateView
# Create your views here.
class AyudaView(TemplateView):
template_name = "ayuda.html"
class HomePageView(TemplateView):
template_name = "home.html"
......@@ -20,7 +20,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# See https://docs.djangoproject.com/en/2.1/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'xk6ujnt_zj7xlnt@c&$jc9f_=u3io5e!87imbqz4)=li*$tu%w'
SECRET_KEY = "xk6ujnt_zj7xlnt@c&$jc9f_=u3io5e!87imbqz4)=li*$tu%w"
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
......@@ -31,54 +31,54 @@ ALLOWED_HOSTS = []
# Application definition
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.staticfiles",
# Local
'indo.apps.IndoConfig',
"indo.apps.IndoConfig",
]
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
"django.middleware.security.SecurityMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
"django.middleware.common.CommonMiddleware",
"django.middleware.csrf.CsrfViewMiddleware",
"django.contrib.auth.middleware.AuthenticationMiddleware",
"django.contrib.messages.middleware.MessageMiddleware",
"django.middleware.clickjacking.XFrameOptionsMiddleware",
]
ROOT_URLCONF = 'manhattan_project.urls'
ROOT_URLCONF = "manhattan_project.urls"
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
"BACKEND": "django.template.backends.django.DjangoTemplates",
"DIRS": [os.path.join(BASE_DIR, "templates")],
"APP_DIRS": True,
"OPTIONS": {
"context_processors": [
"django.template.context_processors.debug",
"django.template.context_processors.request",
"django.contrib.auth.context_processors.auth",
"django.contrib.messages.context_processors.messages",
]
},
},
}
]
WSGI_APPLICATION = 'manhattan_project.wsgi.application'
WSGI_APPLICATION = "manhattan_project.wsgi.application"
# Database
# https://docs.djangoproject.com/en/2.1/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": os.path.join(BASE_DIR, "db.sqlite3"),
}
}
......@@ -88,26 +88,20 @@ DATABASES = {
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
"NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator"
},
{"NAME": "django.contrib.auth.password_validation.MinimumLengthValidator"},
{"NAME": "django.contrib.auth.password_validation.CommonPasswordValidator"},
{"NAME": "django.contrib.auth.password_validation.NumericPasswordValidator"},
]
# Internationalization
# https://docs.djangoproject.com/en/2.1/topics/i18n/
LANGUAGE_CODE = 'es-es'
LANGUAGE_CODE = "es-es"
TIME_ZONE = 'Europe/Madrid'
TIME_ZONE = "Europe/Madrid"
USE_I18N = True
......@@ -119,4 +113,5 @@ USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/2.1/howto/static-files/
STATIC_URL = '/static/'
STATIC_URL = "/static/"
STATICFILES_DIRS = [os.path.join(BASE_DIR, "static")]
......@@ -14,8 +14,27 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from django.contrib.staticfiles.storage import staticfiles_storage
from django.urls import path, include
from django.views.generic import TemplateView
from django.views.generic.base import RedirectView
urlpatterns = [
path('admin/', admin.site.urls),
path("admin/", admin.site.urls),
path(
"browserconfig.xml",
RedirectView.as_view(url=staticfiles_storage.url("favicons/browserconfig.xml")),
name="browserconfig",
),
path(
"favicon.ico",
RedirectView.as_view(url=staticfiles_storage.url("favicons/favicon.ico")),
name="favicon",
),
path(
"robots.txt",
TemplateView.as_view(template_name="robots.txt", content_type="text/plain"),
name="robots_file",
),
path("", include("indo.urls")),
]
html {
min-height: 100%;
position: relative;
}
body {
background: url("img/bg-pattern_nuevo1.png") #88a repeat scroll center 0;
font-family: 'LatoLatinWeb', sans-serif;
margin-bottom: 460px; /* Margin bottom by footer height */
margin-top: 56px;
}
/*** Navbar ***/
.bg-azul {
background-color: #213C71;
}
.navbar-dark .navbar-brand {
color: #d2d2d2;
}
.navbar-dark .navbar-nav .nav-link {
color: #d2d2d2;
}
.navbar-dark .navbar-nav .nav-link:focus, .navbar-dark .navbar-nav .nav-link:hover {
color: #ffffff;
}
.navbar .fas {
font-size: 200%;
line-height: 0;
margin-top: 11px;
vertical-align: top;
}
.dropdown-item .fas {
font-size: 100%;
}
.navbar .icon-logoUZ {
font-size: 250%;
line-height: 0;
position: absolute;
}
.screen-reader {
position: absolute;
left: -10000px;
top: auto;
width: 1px;
height: 1px;
overflow: hidden;
}
/*** Jumbotron ***/
.jumbotron {
background-color: transparent;
color: white;
text-align: center;
}
.jumbotron h1 {
font-family: 'LatoLatinWebLight', sans-serif;
font-size: 3rem;
}
.jumbotron .fas {
font-size: 150%;
}
/*** Container ***/
.container-blanco {
background-color: white;
padding: 56px;
}
/*** Cabecera azul de las tablas ***/
.cabecera-azul table {
border: 0px;
}
.cabecera-azul thead {
background: #6595C0;
margin: 0;
padding: 0;
border-collapse: collapse;
border-spacing: 0;
}
.cabecera-azul thead tr {
border-bottom: 1px solid #167F92;
}
.cabecera-azul thead tr th {
border: 0px;
color: white;
padding: 0.375em 0.5em;
border-bottom: 0.1875em solid #C0C0C0;
font-weight: bold;
}
.cabecera-azul thead tr th a {
color: white;
}
.cabecera-azul .filters {
background: #B2CADF;
}
.cabecera-azul tfoot {
background: #B2CADF;
}
.cabecera-azul tbody tr td {
border: 0px;
}
/*** Mensaje de alerta ***/
.alert .fas {
float: left;
font-size: 200%;
margin-right: 9px;
}
/*** Footer ***/
.footer {
background-color: #212121;
bottom: 0;
color: rgb(151, 151, 151);
position: absolute;
width: 100%;
}
.footer .p-md-5 {
padding-bottom: 0px !important;
}
.footer .icon-logoUZ {
font-size: 400%;
}
.footer a {
font-weight: 500;
color:#d2d2d2;
}
.footer a:focus, .footer a:hover {
color: #ffffff;
text-decoration: none;
}
.footer-links {
font-size: 85%;
padding-left: 0;
}
.footer-links li {
display: inline-block;
}
.footer-links li+li {
margin-left: 2rem;
}
This source diff could not be displayed because it is too large. You can view the blob instead.
Copyright (c) 2010-2015, Łukasz Dziedzic (dziedzic@typoland.com),
with Reserved Font Name Lato.
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
@font-face {
font-family: 'Universidad-de-Zaragoza';
src: url('fonts/Universidad-de-Zaragoza.eot?jwp46z');
src: url('fonts/Universidad-de-Zaragoza.eot?jwp46z#iefix') format('embedded-opentype'),
url('fonts/Universidad-de-Zaragoza.ttf?jwp46z') format('truetype'),
url('fonts/Universidad-de-Zaragoza.woff?jwp46z') format('woff'),
url('fonts/Universidad-de-Zaragoza.svg?jwp46z#Universidad-de-Zaragoza') format('svg');
font-weight: normal;
font-style: normal;
}
[class^="icon-"], [class*=" icon-"] {
/* use !important to prevent issues with browser extensions that change fonts */
font-family: 'Universidad-de-Zaragoza' !important;
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.icon-logoUZ:before {
content: "\e600";
}
.icon-unizar-nombre:before {
content: "\e90d";
}
.icon-books:before {
content: "\e602";
}
.icon-library:before {
content: "\e667";
}
.icon-mail:before {
content: "\e603";
}
.icon-book:before {
content: "\e666";