diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7e99e36 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.pyc \ No newline at end of file diff --git a/backend/RateMyCourse/settings.py b/backend/RateMyCourse/settings.py index 626db12..73873c8 100644 --- a/backend/RateMyCourse/settings.py +++ b/backend/RateMyCourse/settings.py @@ -106,14 +106,14 @@ AUTH_PASSWORD_VALIDATORS = [ ] REST_FRAMEWORK = { - 'DEFAULT_PERMISSION_CLASSES': ( - 'rest_framework.permissions.IsAuthenticated', - ), - 'DEFAULT_AUTHENTICATION_CLASSES': ( - 'rest_framework_jwt.authentication.JSONWebTokenAuthentication', - 'rest_framework.authentication.SessionAuthentication', - 'rest_framework.authentication.BasicAuthentication', - ), + # 'DEFAULT_PERMISSION_CLASSES': ( + # 'rest_framework.permissions.IsAuthenticated', + # ), + # 'DEFAULT_AUTHENTICATION_CLASSES': ( + # 'rest_framework_jwt.authentication.JSONWebTokenAuthentication', + # 'rest_framework.authentication.SessionAuthentication', + # 'rest_framework.authentication.BasicAuthentication', + # ), } # Internationalization diff --git a/backend/db.sqlite3 b/backend/db.sqlite3 index 6908531..3e92540 100644 Binary files a/backend/db.sqlite3 and b/backend/db.sqlite3 differ diff --git a/backend/postings/models.py b/backend/postings/models.py index ffb4422..44c784f 100644 --- a/backend/postings/models.py +++ b/backend/postings/models.py @@ -1,5 +1,9 @@ from django.db import models +class Review(models.Model): + # An integer rating which defines + rating = models.IntegerField(default=1) + # Create your models here. class UniversityReview(models.Model): university_name = models.CharField(max_length=200) diff --git a/frontpage/js/load_reviews.js b/frontpage/js/load_reviews.js new file mode 100644 index 0000000..e69de29