diff --git a/README.md b/README.md index 511dfaa..f3276ae 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 @@ -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 **private_settings.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 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) 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