Skip to content

Instantly share code, notes, and snippets.

View yorchwebs's full-sized avatar
🧑‍💻
I'm working on it now...

Jorge Garcia yorchwebs

🧑‍💻
I'm working on it now...
View GitHub Profile
@yorchwebs
yorchwebs / django_language
Created January 3, 2025 19:42
MX Language & Timezone in Django
LANGUAGE_CODE = 'es-mx'
TIME_ZONE = 'America/Mexico_City'
USE_I18N = True
USE_TZ = True
@yorchwebs
yorchwebs / saticfiles
Created January 3, 2025 19:40
Staticfiles Path on Django
STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')]
STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles")
@yorchwebs
yorchwebs / template dirs
Created January 3, 2025 19:39
Template Dirs
os.path.join(BASE_DIR, 'templates')
@yorchwebs
yorchwebs / .flake8
Last active January 3, 2025 19:43
flake8
[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
@yorchwebs
yorchwebs / psql_envs.txt
Last active December 4, 2024 22:31
PostgreSQL Environments
DB_NAME="users"
DB_USER="postgres"
DB_PASSWORD="123456789"
DB_HOST="localhost"
DB_POST=5432
@yorchwebs
yorchwebs / sentencias.sql
Last active December 7, 2022 18:16
SQL Ejercicios (Bootcamp BackEnd con Python)
/* ************** 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: