MVPEEEE #7
|
@ -0,0 +1 @@
|
|||
*.pyc
|
|
@ -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
|
||||
|
|
Binary file not shown.
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue