Re: trouble with setting static for img and css

2017-05-11 Thread Melvyn Sopacua
On Thursday 11 May 2017 05:28:33 johnf wrote: > I have researched this issue and I know all I have to do is read the > doc's. But I can seem to get the correct path working to allow the > website to find the correct files in my Media,CSS and JS folders. Read this wikipedia piece[1]. And then con

Re: trouble with setting static for img and css

2017-05-11 Thread Antonis Christofides
on might be like the following one: > [Unit] > Description=gunicorn-pesweb daemon > After=network.target > > [Service] > User=z > Group=www-data > WorkingDirectory=/home/z/pesweb > ExecStart=/home/z/pesweb/web_env/bin/gunicorn --bind > u

Re: trouble with setting static for img and css

2017-05-11 Thread Antonis Christofides
Hello, Hopefully these drawings of mine can help. How Django static files work in production If you have trouble understanding |STATIC_ROOT|, |STATIC_URL|, |collectstatic|, and the web server’s configuration, it’s because some things are better said with pictures than with text.

Re: trouble with setting static for img and css

2017-05-11 Thread John Fabiani
ome/z/pesweb > ExecStart=/home/z/pesweb/web_env/bin/gunicorn --bind > unix:/home/z/pesweb/pesweb.sock pesweb.wsgi:application > > [Install] > WantedBy=multi-user.target > > Hope this helps! > > Cheers, > Carl > > > > Original Message > Subject: trouble with s

Re: trouble with setting static for img and css

2017-05-11 Thread Carl
Service] User=z Group=www-data WorkingDirectory=/home/z/pesweb ExecStart=/home/z/pesweb/web_env/bin/gunicorn --bind unix:/home/z/pesweb/pesweb.sock pesweb.wsgi:application [Install] WantedBy=multi-user.target Hope this helps! Cheers, Carl Original Message ---- Subject: trouble with

RE: trouble with setting static for img and css

2017-05-11 Thread Matthew Pava
nf Sent: Thursday, May 11, 2017 7:29 AM To: Django users Subject: trouble with setting static for img and css Hi folks, I have researched this issue and I know all I have to do is read the doc's. But I can seem to get the correct path working to allow the website to find the correct files

trouble with setting static for img and css

2017-05-11 Thread johnf
Hi folks, I have researched this issue and I know all I have to do is read the doc's. But I can seem to get the correct path working to allow the website to find the correct files in my Media,CSS and JS folders. I'm using 1.11.x and have the following setup in OS file system. I have set DEB