Why does django use absolute paths




















If i were to guess, it is more expensive for relative paths to be evaluated for every request, than absolute path. Add a comment. Active Oldest Votes. Improve this answer. I did check the documentation, its not in there. The Django book you are linking to even says that it the book is out of date. Your question concerning the increase in portability using relative paths is answered by the fact that since the absolute path can be defined dynamically using Python there is no loss in portability when using absolute paths.

Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Code Revisions 1. Embed What would you like to do? Embed Embed this gist in your website.

Share Copy sharable link for this gist. Learn more about clone URLs. Download ZIP. Django 1. This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters. Sign up for free to join this conversation on GitHub. Already have an account?

Sign in to comment. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Django settings for testsentry project. Not used with sqlite3. Note that ' PythonOption django. It looks like there is no consitency between some parts of django regarding the use of django. Django is a registered trademark of the Django Software Foundation.

Django The web framework for perfectionists with deadlines. Opened 13 years ago Closed 13 years ago. Description After an upgrade to 1. Oldest first Newest first Threaded. Show comments Show property changes. I had a vhost with the following configuration with django 0.



0コメント

  • 1000 / 1000