This is probably not strictly a Django question, but I'm hoping someone here has had to solve this before.
We have a django app that is sometimes deployed in an environment with SSL and talks over port 443, and other times is deployed in a non-SSL environment and talks over port 80. In our templates we serve CSS and JS files with this: href="https://0.0.0.0:443/..." When running over port 80 that does not work. Is there a way to tell in the template if we are using port 80 or 443 and adjust the href accordingly? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACwCsY61p7F%3DH5BYR3tKnFpDE6mdW%2BSV_QsJVHY%3DvsZDa2Yk6Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

