This file contains hidden or 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
def fix_dev_path(): | |
from filer.models import File | |
import sys | |
for f in File.objects.filter(is_public=True): | |
sys.stdout.write(u'moving %s to public storage... ' % f.id) | |
f.is_public = False | |
f.file.name = "filer/%s" % f.file.name | |
f.save() | |
f.is_public = True | |
f.save() |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
import os | |
gettext = lambda s: s | |
PROJECT_PATH = os.path.abspath(os.path.dirname(__file__)) | |
DEBUG = True | |
TEMPLATE_DEBUG = DEBUG | |
ADMINS = ( | |
# ('Your Name', '[email protected]'), |
This file contains hidden or 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
# Django settings for cms13 project. | |
import os | |
gettext = lambda s: s | |
PROJECT_PATH = os.path.abspath(os.path.dirname(__file__)) | |
DEBUG = True | |
TEMPLATE_DEBUG = DEBUG | |
ADMINS = ( | |
# ('Your Name', '[email protected]'), |
This file contains hidden or 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
# encoding: utf-8 | |
from django.core.management.base import BaseCommand | |
## | |
## FancyImageModel is a plugin model holding a ImageField called "oldimage" and | |
## FilerImageField "image". It removed duplicates based on the basename of the original | |
## image. This may or may not work for you. | |
from imageplugin.models import FancyImageModel |
NewerOlder