From e686f0d57ee24b9e43604201dc6c7bc7db36390c Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sat, 5 Nov 2016 14:58:28 -0400 Subject: [PATCH] more --- contrib/frontends/django/nntpchan/.gitignore | 3 ++- .../django/nntpchan/assets/placeholder.jpg | Bin 0 -> 11926 bytes contrib/frontends/django/nntpchan/media/.keep | 0 .../django/nntpchan/nntpchan/settings.py | 2 ++ .../frontends/django/nntpchan/nntpchan/views.py | 2 +- 5 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 contrib/frontends/django/nntpchan/assets/placeholder.jpg create mode 100644 contrib/frontends/django/nntpchan/media/.keep diff --git a/contrib/frontends/django/nntpchan/.gitignore b/contrib/frontends/django/nntpchan/.gitignore index 1e8916b..a762814 100644 --- a/contrib/frontends/django/nntpchan/.gitignore +++ b/contrib/frontends/django/nntpchan/.gitignore @@ -1,3 +1,4 @@ *.sqlite3 *.pyc -__pycache__ \ No newline at end of file +__pycache__ +media \ No newline at end of file diff --git a/contrib/frontends/django/nntpchan/assets/placeholder.jpg b/contrib/frontends/django/nntpchan/assets/placeholder.jpg new file mode 100644 index 0000000000000000000000000000000000000000..c355ce821268c4701caad36756c2bf5e82f280f8 GIT binary patch literal 11926 zcmc(Fdpy+H|Noh3XlA6wmh^VPeKL8ABtq8P`-) zq|uhhtw?PytuVWhZrZY`q!7O6J!*G9-{0@?{XTww{mz@2_xqgJ>-oB#*E#RQOwY^! zAUHX&9RLc20*>$kGt&cO;%nXdkfkDALe+-KthyS=UEHvUUentlD0CAo&L0O4Nm`@<75*KP2Ezw%ENXts! zfNVrx&9bvyZL@AYCwR+x=bf(WY`hQq>zlTpa7aMhX5bP)&F7p|8$1}3jdpA^gWE)|3<@zAh9y(|1%X@NkW=eaQlBD+D=%= zurT_E2!;RW{_i^@2|Yy8s=)iZ1Gyo^E(H00|L(FkY@k;exCp)e-3b7Cp{5sBh5oP3 zip?s!y|&^r>V>!1iv3-k&XTKH10!d;rjuU(Pd%tcmwZb^`N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(32!_zch@tP5zYMv>r4Ip`6t|7jvVHXExL0lX-k~8p3T&6e3O=@R?ShsV6s^m|l24>XW@}(Rf`nah~7?wb?bLUL7}`qvF-Hk61B}%kY0^;%+@+o_JAH zX&}1qX*lJAroU@N_k+hIFFm^jkDMq;-i!F}D{NKoJtlL;D<+*|8xm5NB!)ybH~nez z-d@eXD;w9{oSeK_*WW>}&eeZV)u?#H`iEdOvxEm}51n5)n;mMSywXfvP_xBwYf5am zSvHQ}qf0&GeQ3MtYY&WQYqIqZo7b8h3tlt>VsDb$=J_scJy@*8#h=Rb@UFPN^s3qm zTL=ITo&mzJf}^)Tzq#+3B{;p|9X`^EO0#B4M)UK`tzSF|jvl8t*S9zxviays z+M(OzU2LLCzKqIKBBYAW&rM#pWFjbj*+KkX%aeN&0g&bW3fLg zvBZRGW@#w6MDFGrm><(vIj}vgXX1zJ3H31wOA=S)N0248xQQg!a96?c2peVPL#n;~ z$%phz7hLzNw~Za`|C!+)*IB4ZS!+q%9$w%r2C-qT$|pkp z@ISIYP;=?1o&USsf$P?k57C)Tf2!kBHOEc`Y^5erGUD!bls{duDqx`fvFTa;MU z3mN;}y;z#_rdx>*&z{j+s;b2*Sy8Sur9IyIw2-OSgb!L8tns-^@R5<}#WYBHj8*FT z5@kqABofcM7j9ZoZwzOe;>hEoc-Qf);P;noa5Yx?Nv|*Q3peR_`FcgsPCr^uQJ$7_ z*z`hUc!f@5<*w+^M23HvU{NB!@%@92J(}X$tc*8z5?*fWR^PQvz3j?On`d43M<%t` O2d{X%vfFm1_rCy1$qQEi literal 0 HcmV?d00001 diff --git a/contrib/frontends/django/nntpchan/media/.keep b/contrib/frontends/django/nntpchan/media/.keep new file mode 100644 index 0000000..e69de29 diff --git a/contrib/frontends/django/nntpchan/nntpchan/settings.py b/contrib/frontends/django/nntpchan/nntpchan/settings.py index d7be1f2..5678e48 100644 --- a/contrib/frontends/django/nntpchan/nntpchan/settings.py +++ b/contrib/frontends/django/nntpchan/nntpchan/settings.py @@ -123,5 +123,7 @@ USE_TZ = True STATIC_URL = '/static/' +ASSETS_ROOT = os.path.join(BASE_DIR, 'assets') + MEDIA_ROOT = os.path.join(BASE_DIR, 'media') MEDIA_URL = '/media/' diff --git a/contrib/frontends/django/nntpchan/nntpchan/views.py b/contrib/frontends/django/nntpchan/nntpchan/views.py index 10c87ce..b897de7 100644 --- a/contrib/frontends/django/nntpchan/nntpchan/views.py +++ b/contrib/frontends/django/nntpchan/nntpchan/views.py @@ -82,7 +82,7 @@ def webhook(request): with open(fname, 'wb') as f: f.write(payload) tname = os.path.join(settings.MEDIA_ROOT, 'thumb-{}.jpg'.format(fn)) - placeholder = os.path.join(settings.MEDIA_ROOT, 'placeholder.jpg') + placeholder = os.path.join(settings.ASSETS_ROOT, 'placeholder.jpg') if not os.path.exists(tname): thumbnail.generate(fname, tname, placeholder)