This file contains hidden or 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
LANGUAGE_CODE = 'es-mx' | |
TIME_ZONE = 'America/Mexico_City' | |
USE_I18N = True | |
USE_TZ = True |
This file contains hidden or 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
STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')] | |
STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles") |
This file contains hidden or 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
os.path.join(BASE_DIR, 'templates') |
This file contains hidden or 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
[flake8] | |
max-line-length = 79 | |
exclude = <django_app>/migrations/*, env/* | |
ignore = E203, W503 | |
import-order-style = pep8 | |
# E203: whitespace before ':' | not pep8 compatible | |
# W503: line break before binary operator | not pep8 compatible |
This file contains hidden or 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
DB_NAME="users" | |
DB_USER="postgres" | |
DB_PASSWORD="123456789" | |
DB_HOST="localhost" | |
DB_POST=5432 |
This file contains hidden or 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
/* ************** EJERCICIOS MySQL ************** */ | |
-- Ejercicio 1: | |
-- Mostrar en consola el nombre de todos los usuarios cuya edad se encuentre en el rango de 10 a 20 y 40 a 70. | |
SELECT name, age FROM users WHERE (age >= 10 and age <= 20) OR (age >= 40 and age <= 70); | |
-- Ejercicio 2: |