Wednesday, August 30, 2017

Bizarre URL behaviour after deploying

This has bamboozled me some. And the best thing I've found on-line doesn't seem to apply:

Let me summarise.

I have a site that I've been building and testing with djangos development server of course. And it implements URLS like:

Works like a dream, so I'm deploying, locally first, under lighttpd and uwsgi. That is working fine too. Sort of,

These are all reached with links in my templates like yo:

{% url 'list' model %}
{% url 'add' model %}
{% url 'edit' model pk %}
{% url 'view' model pk %}
{% url 'delete' model pk %}

because in they all have "name"s defined like that.

All honky dory.

Now after deploying everything works nicely, but those same links point to:


That is the app name is inserted. Odd. And undesired if not a crisis.

But here's what bamboozles me. I can replace "app" in the url with any string at all, "x" say and the site continues to work but those URLs now point to :


For what it's worth I don't want to quote and every other bit of possible config here of course, I am mainly interested to know if someone has insights that aren't shared in that SO link above as none of what is shared there seems to apply.

For anyone really keen on code explorations is here:

and the whole site is there too.

What I want to understand is why this "app" suddenly appears in my URLs and how I can control it (remove it ideally). But I have looked at long enough and scratched my head and not found it. is right next to if you need to inspect it.

Kind regards,


No comments:

Post a Comment