[macports/macports-webapp] uploaded static files online on neocities.org (bd08ef0)

Umesh Singla umeshksingla at macports.org
Wed May 9 21:55:29 UTC 2018


Afair you just need to specify a static directory variable STATIC_URL
(which is usually present by default) in settings.py and access the files
(img, css, js) in your templates using relative path ("{% static
"my_app/style.css" %}").

Heroku shouldn't affect it in any manner.

I'll emphasize to read the same link Mojca suggested:
https://docs.djangoproject.com/en/2.0/howto/static-files/, at least first
few steps definitely.


On Wed, May 9, 2018, 12:36 Mojca Miklavec <notifications at github.com> wrote:

> Don't use third-party sites for hosting css. The files should be inside
> this repository and django should be configured properly to find them. I
> don't believe that this does not work.
>
>> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/macports/macports-webapp/commit/bd08ef0e8c44fc68f65c5bfa91458794601ec7bc#commitcomment-28909533>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AItWGOH6AwpESXmezuDTZQKKpYwGUVhzks5twpVdgaJpZM4T30GX>
> .
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20180509/a8b30a59/attachment.html>


More information about the macports-dev mailing list