Basic AJAX requests and handlebars template for each review. Still static page #4

Merged
andrewlalis merged 7 commits from al/script_basics into develop 2018-09-25 15:18:38 +00:00
5 changed files with 13 additions and 8 deletions
Showing only changes of commit 4df42ed503 - Show all commits

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.pyc

View File

@ -106,14 +106,14 @@ AUTH_PASSWORD_VALIDATORS = [
] ]
REST_FRAMEWORK = { REST_FRAMEWORK = {
'DEFAULT_PERMISSION_CLASSES': ( # 'DEFAULT_PERMISSION_CLASSES': (
'rest_framework.permissions.IsAuthenticated', # 'rest_framework.permissions.IsAuthenticated',
), # ),
'DEFAULT_AUTHENTICATION_CLASSES': ( # 'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework_jwt.authentication.JSONWebTokenAuthentication', # 'rest_framework_jwt.authentication.JSONWebTokenAuthentication',
'rest_framework.authentication.SessionAuthentication', # 'rest_framework.authentication.SessionAuthentication',
'rest_framework.authentication.BasicAuthentication', # 'rest_framework.authentication.BasicAuthentication',
), # ),
} }
# Internationalization # Internationalization

Binary file not shown.

View File

@ -1,5 +1,9 @@
from django.db import models from django.db import models
class Review(models.Model):
# An integer rating which defines
rating = models.IntegerField(default=1)
# Create your models here. # Create your models here.
class UniversityReview(models.Model): class UniversityReview(models.Model):
university_name = models.CharField(max_length=200) university_name = models.CharField(max_length=200)

View File