Skip to content

Instantly share code, notes, and snippets.

View Wombatpm's full-sized avatar

Wombatpm Wombatpm

  • Unremarkable planet around a yellow sun, Mostly Harmless
View GitHub Profile
@Wombatpm
Wombatpm / cbv_multiple_forms.html
Created July 24, 2019 15:31 — 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">
@Wombatpm
Wombatpm / admin.py
Created June 13, 2019 16:11 — forked from haxoza/admin.py
Django custom user model & custom admin
from django.contrib import admin
from django.contrib.auth import admin as auth_admin
from .models import *
from forms import UserChangeForm, UserCreationForm
class UserAdmin(auth_admin.UserAdmin):
fieldsets = (
(None, {'fields': ('email', 'password')}),
('Personal info', {'fields': ('first_name', 'last_name', 'twitter', 'photo', 'event')}),

Genomics - A programmer's guide.

Andy Thomason is a Senior Programmer at Genomics PLC. He has been witing graphics systems, games and compilers since the '70s and specialises in code performance.

https://www.genomicsplc.com

@Wombatpm
Wombatpm / Django Apache Deploy
Created September 19, 2018 15:02 — forked from atheiman/Django Apache Deploy
Simplified Django deploy using Apache HTTP Server.
Simplified Django deploy using Apache HTTP Server.