mirror of
https://github.com/viq/NewsBlur.git
synced 2025-04-13 09:38:09 +00:00
Patching Django 1.5 to handle underscores in subdomains.
This commit is contained in:
parent
0d2a3b135e
commit
27e9bf1503
1 changed files with 4 additions and 0 deletions
|
@ -4,6 +4,8 @@ import os
|
|||
import datetime
|
||||
import redis
|
||||
import raven
|
||||
import django.http
|
||||
import re
|
||||
from mongoengine import connect
|
||||
from boto.s3.connection import S3Connection
|
||||
from utils import jammit
|
||||
|
@ -560,3 +562,5 @@ if BACKED_BY_AWS.get('pages_on_s3') or BACKED_BY_AWS.get('icons_on_s3'):
|
|||
S3_PAGES_BUCKET = S3_CONN.get_bucket(S3_PAGES_BUCKET_NAME)
|
||||
if BACKED_BY_AWS.get('icons_on_s3'):
|
||||
S3_ICONS_BUCKET = S3_CONN.get_bucket(S3_ICONS_BUCKET_NAME)
|
||||
|
||||
django.http.request.host_validation_re = re.compile(r"^([a-z0-9.-_]+|\[[a-f0-9]*:[a-f0-9:]+\])(:\d+)?$")
|
Loading…
Add table
Reference in a new issue