From f71ae837df8e5b491ee8a58f0bce37a5cadcc2bb Mon Sep 17 00:00:00 2001 From: jcanavan Date: Tue, 11 Sep 2018 20:04:27 -0400 Subject: [PATCH 1/5] added author to Docstsring @ accounts/api/views.py --- flash/src/accounts/api/views.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/flash/src/accounts/api/views.py b/flash/src/accounts/api/views.py index 20b1050..fea7092 100644 --- a/flash/src/accounts/api/views.py +++ b/flash/src/accounts/api/views.py @@ -1,4 +1,5 @@ """ +Jim Canavan FlashCourses REST API User Registration Class-Based View File Path: /flash/src/accounts/api/urls.py @@ -12,9 +13,10 @@ from .serializers import RegistrationSerializer from django.contrib.auth.models import User + class RegistrationAPIView(APIView): - """ - Creates the user. + """ + Creates the user. """ def post(self, request, format='json'): @@ -23,7 +25,5 @@ def post(self, request, format='json'): user = serializer.save() if user: return Response(serializer.data, status=status.HTTP_201_CREATED) - - return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST) - + return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST) From 66baec620417cad8e3da799edc756ec269d7ea49 Mon Sep 17 00:00:00 2001 From: jcanavan Date: Tue, 11 Sep 2018 20:07:50 -0400 Subject: [PATCH 2/5] Edited Author to docstrin accounts/models.py --- flash/src/accounts/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flash/src/accounts/models.py b/flash/src/accounts/models.py index 2d6ea02..cccea0c 100644 --- a/flash/src/accounts/models.py +++ b/flash/src/accounts/models.py @@ -4,6 +4,8 @@ Relative File Path: flash/src/accounts/models.py Description: accounts models for FlashCourse application Database: FlashCourses- mySQL + +jim canavan """ from django.db import models @@ -14,6 +16,7 @@ import uuid + class UserProfile(models.Model): """ UserProfile model From 6187bf6526480a9e488275cdc1e57ebce4a8b8d3 Mon Sep 17 00:00:00 2001 From: jcanavan <42788415+jcanavan@users.noreply.github.com> Date: Mon, 24 Sep 2018 17:30:56 -0400 Subject: [PATCH 3/5] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 511dfaa..67a1e47 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Documentation : FlashCourses -## Author: Andrea Murphy -## Last Updated: April 2018 +## Author: Jim Canavan +## Last Updated: Sept 2018 ## Description: Installation Steps to run FlashCourses Locally ## Relative File Path: /README.md @@ -12,7 +12,7 @@ with the common.py file > - Create a new folder named: “settings” > - Move common.py to the new settings file -> - Create a new file in the same folder and save it as **private_settings.py** +> - Create a new file in the same folder and save it as **settings_private.py** > In your new settings_private.py you only need to have 2 items in this settings file > - DEBUG = True From 4d096699a27db8edc76ab4d29d19e91a43ac367b Mon Sep 17 00:00:00 2001 From: jcanavan <42788415+jcanavan@users.noreply.github.com> Date: Mon, 24 Sep 2018 17:35:14 -0400 Subject: [PATCH 4/5] Update README.md --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 67a1e47..46d8967 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,7 @@ * You will need to create your own settings_private.py file to be able to run the project correctly with the common.py file -> - Create a new folder named: “settings” -> - Move common.py to the new settings file -> - Create a new file in the same folder and save it as **settings_private.py** +> - Create a new file in the settings folder (where common.py is located) and save it as **settings_private.py** > In your new settings_private.py you only need to have 2 items in this settings file > - DEBUG = True From 734c8a8ba249146b180c16220cbe10ab4c333d93 Mon Sep 17 00:00:00 2001 From: jcanavan <42788415+jcanavan@users.noreply.github.com> Date: Mon, 24 Sep 2018 17:35:41 -0400 Subject: [PATCH 5/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 46d8967..f3276ae 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ * You will need to create your own settings_private.py file to be able to run the project correctly with the common.py file -> - Create a new file in the settings folder (where common.py is located) and save it as **settings_private.py** +> - Create a file in the settings folder (where common.py is located) and save it as **settings_private.py** > In your new settings_private.py you only need to have 2 items in this settings file > - DEBUG = True