This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SignupForm(forms.Form): | |
""" | |
Form for creating a new user account. | |
Validates that the requested username and e-mail is not already in use. | |
Also requires the password to be entered twice and the Terms of Service to | |
be accepted. | |
""" | |
username = forms.RegexField(regex=USERNAME_RE, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
from django.utils.text import compress_string | |
from django.utils.cache import patch_vary_headers | |
from django import http | |
try: | |
import settings | |
XS_SHARING_ALLOWED_ORIGINS = settings.XS_SHARING_ALLOWED_ORIGINS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"adult": false, | |
"backdrop_path": "/8uO0gUM8aNqYLs1OsTBQiXu0fEv.jpg", | |
"belongs_to_collection": null, | |
"budget": 63000000, | |
"genres": [ | |
{ | |
"id": 28, | |
"name": "Action" | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": 1, | |
"page": 1, | |
"results": [ | |
{ | |
"backdrop_path": "/gmLMaDXi4lFWG8WitaCYOJS5GtL.jpg", | |
"id": 12180, | |
"original_title": "Star Wars: The Clone Wars", | |
"release_date": "2008-08-15", | |
"poster_path": "/xd6yhmtS6mEURZLwUDT5raEMbf.jpg", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
"filter_name": "Subject", | |
"children": [{ | |
"name": "", | |
"tags": [{ | |
"name": "Community", | |
"description": "Community" | |
}, { | |
"name": "Politics", | |
"description": "Politics" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
"filter_name": "Subject", | |
"filter_title": "Subject / Topic", | |
"children": [{ | |
"name": "", | |
"tags": [{ | |
"name": "Community", | |
"description": "" | |
},{ | |
"name": "Culture", |