Skip to content

README Change #88

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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
Expand Down
10 changes: 5 additions & 5 deletions flash/src/accounts/api/views.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""
Jim Canavan
FlashCourses REST API User Registration Class-Based View

File Path: /flash/src/accounts/api/urls.py
Expand All @@ -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'):
Expand All @@ -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)
3 changes: 3 additions & 0 deletions flash/src/accounts/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -14,6 +16,7 @@

import uuid


class UserProfile(models.Model):
"""
UserProfile model
Expand Down