> The router assumes if you name your app with underscores that you *do* want
> hyphens when the app name is displayed in a URL, and that does seem
> reasonable.
>
> Best,
> Anthony
The problem is when I name my app with underscore but do not want
hyphens in the URL. As mentioned above, an example is when I use
Apache to serve static files. In such a scenario, I do want
URL('static', 'file.txt') to be 'my_app/static/file.txt' NOT 'my-app/
static/file.txt'. This is because Apache has no idea what 'my-app/
static/file.txt' is.
As Johnathan said, I can use mod-rewrite in Apache to rewrite, but it
doesn't make sense to require people do this by default.
I think the pretty URL display setting should be optional instead of
default. Generally speaking, I think behaviors that are different
from conventionally expected should be default behaviors. Pretty URLs
are desirable, but underscored filenames are conventional.
(desirable means nobody gets hurts if it's not done as such;
conventional means certainly will go bad if not done as such).