Skip to content

Instantly share code, notes, and snippets.

View Tobi-De's full-sized avatar
👁️‍🗨️
Trade-offs everywhere!

Tobi DEGNON Tobi-De

👁️‍🗨️
Trade-offs everywhere!
View GitHub Profile
@Tobi-De
Tobi-De / python-django-postgres-ci.yml
Created April 22, 2020 09:30 — forked from jefftriplett/python-django-postgres-ci.yml
This is a good starting point for getting Python, Django, Postgres running as a service, pytest, black, and pip caching rolling with GitHub Actions.
name: CI
on: [push]
jobs:
test:
runs-on: ubuntu-latest
services:
@Tobi-De
Tobi-De / cbv_multiple_forms.html
Created September 13, 2020 06:25 — forked from badri/cbv_multiple_forms.html
Django multiple forms code with sample usage
{% extends "base.html" %}
{% block content %}
<form method="post">{% csrf_token %}
{{ forms.subscription }}
<input type="submit" value="Subscribe">
</form>
<form method="post">{% csrf_token %}
{{ forms.contact }}
<input type="submit" value="Send">
@Tobi-De
Tobi-De / markdown.css
Last active October 9, 2020 14:12
Markdown CSS
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px; }
body > *:first-child {
from datetime import datetime
"""
Called during request:
process_request(request)
process_view(request, view_func, view_args, view_kwargs)
Called during response:
process_exception(request, exception) (only if the view raised an exception)
process_template_response(request, response) (only for template responses)
@Tobi-De
Tobi-De / GitCommitEmoji.md
Created May 10, 2022 14:52 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji