Re: Django in Linux set image

2018-12-12 Thread pujiarahman
Hi all, i will tray it.. thanks for your attention Pada Senin, 10 Desember 2018 19.46.28 UTC+7, Riska Kurnianto menulis: > > in staging or production env, You need to specify STATIC_ROOT in > settings.py and run "manage.py collectstatic". > > > > On Mon, 10 Dec 2018, 10:28 pujiarahman > wro

Re: Django in Linux set image

2018-12-10 Thread Riska Kurnianto
in staging or production env, You need to specify STATIC_ROOT in settings.py and run "manage.py collectstatic". On Mon, 10 Dec 2018, 10:28 pujiarahman Hi all, > > i have instaled django in ubuntu, > i have image and i put in folder (*img*), the locate is > > blog > urls.py > views.py > admin.py

Re: Django in Linux set image

2018-12-10 Thread PASCUAL Eric
Hi, Which server are you using ? Is is runserver ? When running in debug mode, it serves statics, but not when debug mode is turned off. If you Google with "django runserver static debug" you'll get this hit in the very first ones : https://stackoverflow.com/questions/5836674/why-does-debug-