#Visual Prolog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name ~^(?!www\.)(?<domain>.+)$; | |
return 301 $scheme://$domain$request_uri; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BEGIN; | |
CREATE TABLE `sistema_categoriatipovino` ( | |
`id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY, | |
`nombre` varchar(64) NOT NULL | |
) | |
; | |
CREATE TABLE `sistema_tipovino` ( | |
`id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY, | |
`categoria_id` integer, | |
`anada` integer UNSIGNED NOT NULL, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends "base/main.html" %}{% load staticfiles bootstrap %} | |
{% block header %} | |
{% endblock %} | |
{% block content %} | |
<div id="login-form" class="vcenter"> | |
<div class="container-fluid"> | |
<form method="POST" enctype="multipart/form-data" autocomplete="off"> | |
{% csrf_token %} | |
<div class="col-xs-10 col-xs-offset-1 col-sm-6 col-sm-offset-3 col-lg-4 col-lg-offset-4"> | |
<div class="panel panel-default"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#How to vertically center HTML objects. | |
Only with pure HTML and CSS | |
Requirements: | |
- The height of the element's container must be known or specified. |
django-export-import
es un paquete de django que nos facilita la tarea de exportar e importar desde y hacia diferentes formatos de datos (CSV, XLS, JSON, HTML).
Éste paquete tiene 4 clases que serán las que más se utilizarían para exportar (y quizás también importar) fácilmente desde nuestra aplicación de Django.
Ésta clase nos sirve para poder utilizar los modelos de Django como recursos (Resource
s)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
||||||||||||||||||||||||||||||||||||||||| | |
||||||||||||||||||||||||||||||||||||||||| | |
||||||||||||||||||||||||||||||||||||||||| | |
||||||||||||||||||||||||||||||||||||||||| | |
||||||||||||||||||||||||||||||||||||||||| | |
||||||||||||||||| |||||||||||||||||||||| | |
|||||||||||||||| |||||||||||||||||||| | |
|||||||| ||||| . |||||||||||||| | |
|||||| |||| ||||||||||||||| | |
|||||| ||||||||||||||||| |