Skip to main content
Remove Travis CI badge
Source Link
Flimm
  • 154.1k
  • 49
  • 282
  • 295

django-fullurl

If you're trying to do this in a Django template, I've released a tiny PyPI package django-fullurl to let you replace url and static template tags with fullurl and fullstatic, like this:

{% load fullurl %} Absolute URL is: {% fullurl "foo:bar" %} Another absolute URL is: {% fullstatic "kitten.jpg" %} 

These badges should hopefully stay up-to-date automatically:

PyPI Travis CI

In a view, you can of course use request.build_absolute_uri instead.

django-fullurl

If you're trying to do this in a Django template, I've released a tiny PyPI package django-fullurl to let you replace url and static template tags with fullurl and fullstatic, like this:

{% load fullurl %} Absolute URL is: {% fullurl "foo:bar" %} Another absolute URL is: {% fullstatic "kitten.jpg" %} 

These badges should hopefully stay up-to-date automatically:

PyPI Travis CI

In a view, you can of course use request.build_absolute_uri instead.

django-fullurl

If you're trying to do this in a Django template, I've released a tiny PyPI package django-fullurl to let you replace url and static template tags with fullurl and fullstatic, like this:

{% load fullurl %} Absolute URL is: {% fullurl "foo:bar" %} Another absolute URL is: {% fullstatic "kitten.jpg" %} 

These badges should hopefully stay up-to-date automatically:

PyPI

In a view, you can of course use request.build_absolute_uri instead.

Source Link
Flimm
  • 154.1k
  • 49
  • 282
  • 295

django-fullurl

If you're trying to do this in a Django template, I've released a tiny PyPI package django-fullurl to let you replace url and static template tags with fullurl and fullstatic, like this:

{% load fullurl %} Absolute URL is: {% fullurl "foo:bar" %} Another absolute URL is: {% fullstatic "kitten.jpg" %} 

These badges should hopefully stay up-to-date automatically:

PyPI Travis CI

In a view, you can of course use request.build_absolute_uri instead.