Show More
@@ -0,0 +1,6 b'' | |||
|
1 | URL_DOMAINS = { | |
|
2 | 'meduza.io': 'meduza', | |
|
3 | 'youtube.com': 'youtube', | |
|
4 | 'youtu.be': 'youtube', | |
|
5 | 'wikipedia.org': 'wikipedia', | |
|
6 | } |
@@ -1,10 +1,11 b'' | |||
|
1 | import os | |
|
2 | 1 |
|
|
3 | 2 | |
|
3 | from django.contrib.staticfiles import finders | |
|
4 | from django.contrib.staticfiles.templatetags.staticfiles import static | |
|
4 | 5 | from django.core.files.images import get_image_dimensions |
|
5 | 6 | from django.template.defaultfilters import filesizeformat |
|
6 | from django.contrib.staticfiles.templatetags.staticfiles import static | |
|
7 | from django.contrib.staticfiles import finders | |
|
7 | ||
|
8 | from boards.models.attachment.domains import URL_DOMAINS | |
|
8 | 9 | |
|
9 | 10 | REGEX_DOMAIN = re.compile(r'(\w+\.)*(\w+\.\w+)') |
|
10 | 11 | |
@@ -46,13 +47,6 b' URL_PROTOCOLS = {' | |||
|
46 | 47 | 'magnet': 'magnet', |
|
47 | 48 | } |
|
48 | 49 | |
|
49 | URL_DOMAINS = { | |
|
50 | 'meduza.io': 'meduza', | |
|
51 | 'youtube.com': 'youtube', | |
|
52 | 'youtu.be': 'youtube', | |
|
53 | 'wikipedia.org': 'wikipedia', | |
|
54 | } | |
|
55 | ||
|
56 | 50 | CSS_CLASS_IMAGE = 'image' |
|
57 | 51 | CSS_CLASS_THUMB = 'thumb' |
|
58 | 52 |
General Comments 0
You need to be logged in to leave comments.
Login now