I'm starting to get my feet wet with django but now I've moved my project to a site where I'm working off a sub-directory off the main site for my development. Everything is setup properly but I'm still very new to django and ran across a problem. If you goto chapter 7 of the free django book: http://www.djangobook.com/en/2.0/chapter07 We're starting to setup a few views and a template for the books example. We have 2 views setup with this chapter. One is for the search-form and the other is for the search results. When I process the search-form it sends me to search but it keeps redirecting to: www.mysite.com/search/?q=term I want it to redirect to: www.mysite.com/dev/search/?q=term Now, in my search_form.html I can set the action to goto /dev/search/ instead of /search/ (this is what it has by default) but I'm wondering if there's a variable in the settings.py or urls.py config that I can set to have this happen globally. It feels rigged to hardcode it like this, but it does work.