Compare commits
No commits in common. "89e0dfc0eb5d957700e62e81f5a785ca45c8f76f" and "d2f2ca6ce0e5b83a6feae02b624691ae45bd0fd5" have entirely different histories.
89e0dfc0eb
...
d2f2ca6ce0
|
@ -148,8 +148,6 @@ IMAGE_PREFIX = 'http://studio.camp/images/'
|
|||
CONTACT_FROM_EMAIL = 'contact@studio.camp'
|
||||
CONTACT_TO_EMAIL = ['contact@studio.camp']
|
||||
|
||||
DATA_UPLOAD_MAX_MEMORY_SIZE = 150 * 1024 * 1024
|
||||
|
||||
try:
|
||||
from local_settings import *
|
||||
except:
|
||||
|
@ -171,4 +169,4 @@ except NameError:
|
|||
secret.write(SECRET_KEY)
|
||||
secret.close()
|
||||
except IOError:
|
||||
raise Exception('Please create a %s file with random characters to generate your secret key!' % SECRET_FILE)
|
||||
Exception('Please create a %s file with random characters to generate your secret key!' % SECRET_FILE)
|
||||
|
|
|
@ -68,7 +68,7 @@ class Content(models.Model):
|
|||
title = models.CharField(max_length=255)
|
||||
header = MarkdownxField(blank=True, null=True, default='')
|
||||
body = MarkdownxField(blank=True, null=True, default='')
|
||||
teaser = models.TextField(blank=True, null=True, validators=[MaxLengthValidator(250)])
|
||||
teaser = models.TextField(blank=True, null=True, validators=[MaxLengthValidator(200)])
|
||||
schedule = MarkdownxField(blank=True, null=True, default='')
|
||||
schedulebutton = models.CharField(db_column='scheduleButton', max_length=255, blank=True, null=True) # Field name made lowercase.
|
||||
optbtn2 = models.CharField(db_column='optBtn2', max_length=127, blank=True, null=True) # Field name made lowercase.
|
||||
|
|
|
@ -1,30 +0,0 @@
|
|||
diff --git a/photologue/forms.py b/photologue/forms.py
|
||||
index 2b05c17..1a69f88 100644
|
||||
--- a/photologue/forms.py
|
||||
+++ b/photologue/forms.py
|
||||
@@ -114,16 +114,6 @@ class UploadZipForm(forms.Form):
|
||||
logger.debug('Ignoring file "{0}".'.format(filename))
|
||||
continue
|
||||
|
||||
- if os.path.dirname(filename):
|
||||
- logger.warning('Ignoring file "{0}" as it is in a subfolder; all images should be in the top '
|
||||
- 'folder of the zip.'.format(filename))
|
||||
- if request:
|
||||
- messages.warning(request,
|
||||
- _('Ignoring file "{filename}" as it is in a subfolder; all images should '
|
||||
- 'be in the top folder of the zip.').format(filename=filename),
|
||||
- fail_silently=True)
|
||||
- continue
|
||||
-
|
||||
data = zip.read(filename)
|
||||
|
||||
if not len(data):
|
||||
@@ -166,7 +156,7 @@ class UploadZipForm(forms.Form):
|
||||
continue
|
||||
|
||||
contentfile = ContentFile(data)
|
||||
- photo.image.save(filename, contentfile)
|
||||
+ photo.image.save(os.path.basename(filename), contentfile)
|
||||
photo.save()
|
||||
photo.sites.add(current_site)
|
||||
gallery.photos.add(photo)
|
Loading…
Reference in New Issue
Block a user