Commit Graph

331 Commits

Author SHA1 Message Date
winkidney
f85a1e7301 Fix: Upgrade django to 1.11 LTS
New version of django fix the RuntimeError while saving wepb file.

The patch will not be applied to Django 1.8

Ref: https://www.djangoproject.com/download/#supported-versions

Ref: https://github.com/django/django/pull/10331
2018-08-26 21:30:07 -07:00
winkidney
2d9b952482 Feature: Use page title as default description 2018-08-26 00:31:24 -07:00
winkidney
b7135b64aa Feature: Add referer field for Pin 2018-08-21 19:52:21 +08:00
winkidney
f8268c3a9d Feature: Use original-image url instead in light-box
Also add css to restrict original-image size
2018-08-18 08:49:15 -07:00
winkidney
1089e1f4de Feauture: Add AUTO-DELETE option in settings
For django-images, the AUTO-DELETE mark is required to remove files
automatically.
2018-08-18 08:48:31 -07:00
Isaac Bythewood
eb75175657 Swap to new settings structure and start adding docker files directly to project 2018-02-08 23:07:19 -05:00
Isaac Bythewood
1fcdf2a9a3 Refactor apps to be in repo folder 2018-02-08 21:57:49 -05:00
Isaac Bythewood
3849ee8e5d Swap to pipenv, fix issue with latest versions of python 3, dropping support for python 2 2018-02-06 00:10:51 +00:00
Haoling
2fb830e293 Fix miss tag 2017-12-19 10:34:21 +09:00
Isaac Bythewood
c71fa17aca Updates to support Python 3 2017-09-23 21:12:54 +00:00
Lapo Luchini
cbcd9c5f8b Ease code readability (and be closer to original too). 2017-04-22 15:46:00 +02:00
Lapo Luchini
ddf2891480 Remove the need for jQuery. 2017-04-22 13:27:39 +02:00
Isaac Bythewood
813ab93c11 Change default of user registrations to True since it is a common problem with new users. 2017-02-11 05:41:24 +00:00
Isaac Bythewood
a55644ba76 Start adding basic admin elements 2017-02-11 05:24:01 +00:00
Isaac Bythewood
af4e7437a3 self.url is not always set, return required fields for pin 2017-02-11 05:23:07 +00:00
Isaac Bythewood
0f7bb8cf84 Remove load line in base template 2017-02-11 04:58:09 +00:00
Isaac Bythewood
d0db375d1f Remove unused RSS feed system, we aren't going to update it anymore 2017-02-11 04:57:00 +00:00
Isaac Bythewood
2d8d92b8b7 Add template_settings back to context processors 2017-02-11 04:32:06 +00:00
Isaac Bythewood
9b71a7449c Remove bower.json and swap to using unpkg 2017-02-11 04:28:52 +00:00
Isaac Bythewood
21a67b341d Swap over to unpkg for CSS requirements 2017-02-11 04:18:46 +00:00
Isaac Bythewood
92120b0629 Remove excessive PINRY comment from base template 2017-02-11 04:15:51 +00:00
Isaac Bythewood
6c9723c506 Merge latest 1.10 django update attempts 2016-11-28 16:58:41 -05:00
Isaac Bythewood
6bb7a96ddc Rework settings, add apps.py, preping for django 1.10 upgrade 2016-11-28 16:58:34 -05:00
Isaac Bythewood
e73ea08f70 Merge pull request #99 from gissehel/https-gravatar
Remove explicit http image for gravatar images
2016-11-28 15:32:51 -05:00
Isaac Bythewood
d2b4cbc8c6 Setup development allowed hosts to be a wildcard, move wsgi and delete bootstrap 2016-11-28 15:22:04 -05:00
gissehel
631314afb4 remove explicit http image for gravatar images because it makes the whole site not https friendly. It works because gravatar support both http & https 2016-10-09 05:38:33 +02:00
Isaac Bythewood
8f66cd719c Reimplement image uploading 2016-02-25 02:26:45 +00:00
Isaac Bythewood
5cb59746df Fixes issue #37 2016-02-04 19:48:31 +00:00
Isaac Bythewood
5cda896eed Fix error message classes 2016-02-04 19:29:48 +00:00
Isaac Bythewood
9185e946ac Fix height of lightbox 2016-02-04 19:26:09 +00:00
Isaac Bythewood
69ccee06cc Merge pull request #83 from lapo-luchini/bookmarklet2
bookmarklet improvements to the image preview
2016-02-03 20:36:24 -05:00
Isaac Bythewood
5802167b72 Fix bug in API now allowing delete or edit of pins 2016-02-04 01:34:19 +00:00
Isaac Bythewood
51c6e58fc5 Use bower to handle js vendor dependencies 2016-02-04 01:28:39 +00:00
Isaac Bythewood
db34087da8 Merge pull request #76 from lapo-luchini/description
Improve description text rendering
2016-02-03 19:34:09 -05:00
Carl van Tonder
1114edc11a Update to Django 1.8 and tastypie 0.12
Closes #38, closes #88
2015-08-26 17:22:08 -04:00
Isaac Bythewood
a7aef9be91 Merge pull request #86 from Delphinator/fix-n+1-queries
Fix N+1 queries in pin loading
2015-04-08 06:40:56 -04:00
Jens Gutermuth
deb04500c5 Only use prefetched thumbnails if there are there
The optimization broke image uploading, this fixes it again.
2015-03-23 03:30:13 +01:00
Jens Gutermuth
9d4791b65a image can be loaded with a join as well (saves another query) 2015-03-23 02:30:54 +01:00
Jens Gutermuth
e4b8769168 DoesNotExist should be ObjectDoesNotExist, oops! 2015-03-23 02:28:21 +01:00
Jens Gutermuth
3bcc6d3152 Loanding pins does no N+1 queries anymore
This saves another three queries per pin, bringing to total query count
down to 8.

See issue #85 .
2015-03-23 02:22:35 +01:00
Jens Gutermuth
60cf2dcbd7 Fix three N+1 queries in pin loading
Fetch the submitter with a join and get all the images and tags in one
query each. This reduces the total query count for loading 50 pins from
304 to 158.

See issue #85.
2015-03-23 02:03:31 +01:00
Jens Gutermuth
58ea025c03 Case insensitive sorting of tags in javascript 2015-03-22 23:59:42 +01:00
Lapo Luchini
ac8419d749 Improvements to the image preview:
- show the image size on top of the preview.
- scale down the preview to view (most) of the image instead of just the center.
2015-01-20 10:24:27 +01:00
Lapo Luchini
9e901485ee Allow closing pinry with ESC or clicking on header.
On close, remove the script as well as the images.
2015-01-20 10:18:58 +01:00
Lapo Luchini
259d699551 Remove race condition waiting for proper event instead of fixed time. 2014-11-23 20:25:59 +01:00
Lapo Luchini
212dd7f819 Make links clickable and only show the domain in the text. 2014-11-23 20:14:20 +01:00
Lapo Luchini
0f62f70f79 Fix long descriptions from overflowing the area. 2014-11-23 20:14:10 +01:00
Razzi Abuissa
7c553e2e52 Remove unused ugettext import 2014-07-28 02:47:25 -04:00
Isaac Bythewood
d6c515ed0a Merge pull request #62 from tomwys/patch-2
Fix url regexp.
2014-07-21 23:54:29 -04:00
Lapo Luchini
e2f61176dd Properly encode query string parameters. 2014-05-28 16:10:08 +02:00