Wednesday, August 30, 2017

Re: Bizarre URL behaviour after deploying


Yes, I have deployed, that is the problem in a sense. URLs are clean in dev and suddenly contain an app_name when deployed.

Not sure what you mean by configuration? The Django settings are here:

The rest of the config is uwsgi under lighttpd, but none of that is likely to impact the appearance of an app_name in my URLs all of a sudden. I don't mind sharing the config files, but it's a distraction I fear. As the site runs fine, only the URLs are modified by Django post deployment for some reason.

I have found more folk wanting same and yet none of the posted solution are useful to me:

as my puzzle is why the app name is used post deployment but not in development. I have nowhere asked for it to be used and am not making sense of why it is being used alas.

Kind regards,


Daniel Roseman wrote:

How have you deployed this project? Can you show your deployment configuration?
On Wednesday, 30 August 2017 12:42:01 UTC+1, Bernd Wechner wrote:

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,


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
To post to this group, send email to
Visit this group at
To view this discussion on the web visit
For more options, visit

No comments:

Post a Comment