Skip to content

Instantly share code, notes, and snippets.

Avatar

kit.andres aaquirogal

View GitHub Profile
@aaquirogal
aaquirogal / socialauth-home.html
Last active Jan 31, 2018
Social auth - app/templates/home.html
View socialauth-home.html
{% extends "layout/base.html" %}
{% block title %}Homepage{% endblock title %}
{% block content %}
<h1>Django project running.</h1>
{% if user.is_authenticated %}
<p>
{{ user }}
@aaquirogal
aaquirogal / socialauth-urls.py
Last active Jan 31, 2018
Social auth - app/urls.py
View socialauth-urls.py
from django.conf.urls import include
from django.conf.urls import url
from django.contrib import admin
from django.contrib.auth import views as auth_views
from app.views import HomeView
urlpatterns = [
url(r'^admin/', admin.site.urls),
@aaquirogal
aaquirogal / socialauth-settings.py
Last active Sep 7, 2018
Social auth - app/settings.py
View socialauth-settings.py
"""
Django settings for app project.
Generated by 'django-admin startproject' using Django 1.11.7.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
@aaquirogal
aaquirogal / utopianintro.md
Last active Jan 12, 2018
My intro as a Utopian moderator
View utopianintro.md

Why I want to be part of utopian?

Utopian is a revolutionary project, that will allow us to offer quality software to all people giving them free solutions. Access to the most advanced technological applications will boost the overall progress of many communities.

In other words (the clearest), utopian is definitely an idea that can build a better world, since it allows us to provide advanced decentralized technology.I want to be part of utopian because I also want to contribute to the construction of a better world.

My background

Talking about myself is the boring part for me, but, come on.

@aaquirogal
aaquirogal / ajax_app_views.py
Last active Jan 11, 2018
AJAX app/views.py
View ajax_app_views.py
from django.template.loader import render_to_string
from django.http import JsonResponse
from django.views.generic import TemplateView
from django.shortcuts import redirect
from django.core.mail import EmailMessage
from app.forms import ContactForm
View ajax_app_urls.py
from django.conf.urls import url
from django.contrib import admin
from app.views import HomeView
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(
r'^$',
@aaquirogal
aaquirogal / ajax_post_home.html
Last active Jan 11, 2018
AJAX post app/templates/home.html
View ajax_post_home.html
{% extends "layout/base.html" %}
{% load widget_tweaks %}
{% block title %}Homepage{% endblock title %}
{% block content %}
<h1>Django project running.</h1>
<div class="row">
<div class="col-md-4 offset-md-4">
@aaquirogal
aaquirogal / django_emailing_email_content.html
Created Jan 4, 2018
Django emailing email_content.html
View django_emailing_email_content.html
<h1 style="font-size: 1.5em; line-height: 2em;">Mensaje de usuario.</h1>
<p>Usted ha recibido un nuevo mensaje de un usuario:</p>
<dl>
<dt>Nombre:</dt>
<dd>{{ name }}</dd>
<dt>Correo elecrónico:</dt>
<dd>{{ email }}</dd>
@aaquirogal
aaquirogal / django-emailing-views.py
Last active Jan 4, 2018
Django emailing - views.py
View django-emailing-views.py
from django.template.loader import render_to_string
from django.views.generic import TemplateView
from django.shortcuts import redirect
from django.core.mail import EmailMessage
from app.forms import ContactForm
class HomeView(TemplateView):
@aaquirogal
aaquirogal / django-widget-tweaks-home.html
Last active Jan 2, 2018
django-widget-tweaks app/templates/home.html
View django-widget-tweaks-home.html
{% extends "layout/base.html" %}
{% load widget_tweaks %}
{% block title %}Homepage{% endblock title %}
{% block content %}
<h1>Django project running.</h1>
<div class="row">
<div class="col-md-4 offset-md-4">