Commit Graph

59 Commits

Author SHA1 Message Date
winkidney
374be7a03f Fix: Fix test failure cased by new django-test client response
+ Also fix the old middleware
+ Fix MIDDLEWARE name error
2020-07-17 21:49:17 +08:00
winkidney
7398bc11f8 Fix: Should use MIDDLEWARE instead of MIDDLEWARE_CLASSES 2020-07-17 13:33:07 +08:00
winkidney
5a102dfce4 Feature: Add Pinry plugin config to local_settings.py 2020-05-08 11:01:10 +08:00
winkidney
5c44869647 Feature: Add naive plugin support for pinry 2020-05-08 11:01:10 +08:00
winkidney
8d7ddf48c1 Fix: Fix 500 error while trying to access /api/v2/docs 2020-03-05 12:28:45 +08:00
winkidney
db538c7c84 Feature: Should allow registration by default 2019-12-20 00:22:08 +08:00
winkidney
312db13171 Feature: Should not ignore local_settings in gunicorn 2019-12-20 00:22:08 +08:00
winkidney
26934dae71 Doc: Add ignore info for secret-key env-test 2019-12-20 00:22:08 +08:00
winkidney
2a2f65c437 Feature: Move local_settings.py 2019-12-20 00:22:08 +08:00
winkidney
7406e2fdcc Feature: Allow JsonRender only in production mode 2019-12-08 12:58:50 -05:00
winkidney
2458ad295c Fix: Add initial secret key for docker-pinry 2019-12-08 12:58:50 -05:00
winkidney
bb24ed3ecf Feature: Add pin-creation from remote-url
+ Add CSRF protection for every request
2019-12-08 12:58:50 -05:00
winkidney
54c245b6ef Feature: Add django_extensions to development version 2019-12-08 12:58:50 -05:00
winkidney
e120af94cf Fix: Use API_LIMIT_PER_PAGE in drs-settings 2019-02-22 16:23:08 +08:00
winkidney
fbbe4d8c2e Fix: Should use image_by_id as image-field name / add pagination 2019-02-22 16:23:08 +08:00
winkidney
f9e74f2ef7 Feature: Add url-filed name for DRF 2019-02-20 17:40:06 +08:00
winkidney
220c49a725 Feature: add basic drf-api for user/pin 2019-02-20 17:05:14 +08:00
winkidney
50ffa93d46 Feature: Add basic settings for DRF 2019-02-19 18:28:01 +08:00
winkidney
ddd9f73d21 Feature: Use X-Forwarded-For host in docker version 2018-12-29 15:58:21 +08:00
winkidney
e8bf3d4b30 Refactor: Will not force user to set SECRET_KEY in environ
+ Allow overwrite in local_settings.py (the original implemetation
  will cause an KeyError)
2018-09-08 03:43:52 -07:00
winkidney
2278d6a552 Feature: Support local_settings as optional settings 2018-09-04 13:44:49 +08:00
winkidney
ac469d47f9 Fix: Add a mark 'IS_TEST' to decide if we should load image-urls 2018-08-26 21:30:07 -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
6bb7a96ddc Rework settings, add apps.py, preping for django 1.10 upgrade 2016-11-28 16:58:34 -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
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
50d61af22a Move to bootstrap 3, better design, move all vendor items local. 2013-09-24 23:02:00 +00:00
Isaac Bythewood
310a89f2fe Change default pin load limit to 50 instead of 30 2013-03-20 20:37:04 -03:00
Krzysztof Klimonda
e0e0ac1679 Remove /by-md5/ prefix from image paths
Use forked django-images for now, until we can communicate with the
upstream about it. Fixes #4
2013-03-19 14:43:31 +01:00
Krzysztof Klimonda
0cbd5bdaa1 re-enable asset compression with django_compressor
Finally had time to figure out the problem "caused" by django_compressor,
so we can no re-enable it. Fixes #3
2013-03-05 02:42:20 -08:00
Isaac Bythewood
c7e1e1cd83 Move location of users middleware 2013-03-03 22:50:29 +00:00
Krzysztof Klimonda
5b777b7e14 Move the Authentication backend to the users package 2013-03-03 09:09:13 -08:00
Krzysztof Klimonda
53f05dbb6d A general project refactor
Removed pins django app, and moved code to the core. Moved user related
code out of core to the users app.
2013-03-03 04:47:34 -08:00
Krzysztof Klimonda
a0e11a949e Add a small (125x125px) square thumbnail
This is going to be used by a "similar images" feature #74
2013-03-02 16:12:29 -08:00
Isaac Bythewood
fa7e8c3b83 Get basic working bookmarklet and refactor API into core 2013-02-26 23:20:50 +00:00
Krzysztof Klimonda
af8c0865e0 Define LOGIN_URL in project settings 2013-02-26 11:22:50 -08:00
Isaac Bythewood
4e431e2a88 Refactor templates and and make includes for upcoming python file refactor into core and user. Also making templates easier to edit and read overall. 2013-02-26 03:27:41 +00:00
Krzysztof Klimonda
d0a71244b5 Another major Pinry model rewrite
Generate thumbnail and standard image on request, and use
http://github.com/mirumee/django-images for generating them. Also,
remove the CreatePin page as pin creation is going to be done
in JavaScript. Create UploadImage view for uploading images from
computer.
2013-02-25 04:08:35 +01:00
Krzysztof Klimonda
e2a38f8a10 Add image dimensions to the API and the third image size
There has been some refactoring going on in the pinry.pins.models module.
The upload_to code has been refactored into its own function, images
have been moved to their own models - otherwise the number of fields
in the Pin model would skyrocket. Also ModelManagers have been written
to move image fetching and generating outside of models.
2013-02-23 21:12:11 +01:00
Isaac Bythewood
a7d571a509 Remove a bunch of old vender files, refactor locations of static and template files, force api limit on calls 2013-02-23 02:23:58 +00:00
Krzysztof Klimonda
92b54799da Allow authentication with both Username and Email 2013-02-22 15:26:43 +01:00
Isaac Bythewood
e467a83683 Remove admin which was a temporary fix 2013-02-20 05:35:10 +00:00
Isaac Bythewood
fde97b05c6 Increase API limit. 2012-09-29 19:42:16 +00:00
Isaac Bythewood
c1b268312b Removed CSRF temporarily to fix many bugs. 2012-09-29 06:55:49 +00:00
Isaac Bythewood
605c25a561 Added basic admin functionality with pin integration. 2012-09-29 06:36:51 +00:00
Isaac Bythewood
230a6e959f Taggit implemented. 2012-09-28 04:42:13 +00:00
Isaac Bythewood
643224d575 Now using compressor and trying to fix test CSRF issue. 2012-08-02 00:22:57 +00:00
Isaac Bythewood
f00e106dfe Add in some new settings. 2012-08-01 21:30:18 +00:00
Isaac Bythewood
d92d30bb94 Added some production settings. Moving to travis-ci for testing. Added feature to stop new registrations. 2012-08-01 03:06:41 +00:00