Skip to main content

Posts

Showing posts from November, 2017

003 - Convert User Creation to REST API endpoint using Django Framework

Stream Our Mistakes EP 003 In this episode, we will be working creating a REST API endpoint using Django REST Framework.  This will be a multi part series as I plan to use this backend with a Xamarin Android application. No guarantees it is going to work but I will attempt it anyways. This podcast/blog isn't called stream our mistakes for nothing aye? I looked over a few youtube videos, this blog post and the excellent Django Rest Documentation . Since this repo is not public, here is the code snippets that are relevant to the video. Please note: This project assumes you have already implemented Django Rest Framework in your project. In the Serializers.py file: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 from rest_framework import serializer from django.contrib.auth.models import User class UserCreateSerializer (serializers . ModelSerializer): class Meta : model = User fields = ( '

Alert dialog for Xamarin Android

So it occurred to me this weekend that I have been working on a project these past couple months but haven't posted any videos. Partially, this is a private project so I won't publish the code at all. The more pressing reason is I'm really learning myself as I go so it really isn't pretty. That being said, I considered posting some code to some of my biggest road blocks but felt that might slow down my progress. I've begun helping a friend who is new to coding and realized that it is beneficial to myself to write up and be able to share/teach those coming behind me. I will be using the label android snippets to keep my notes in regards to this Xamarin Android application. I'll add a shortcut link in the blog soon. Here's the most recent headache I had. I will look into possibly creating a class out of some of these snippets for myself. Alert dialog for Xamarin Android: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 AlertDialog.Builder aler