Changes between Initial Version and Version 1 of Ticket #5320
- Timestamp:
- Sep 2, 2007, 4:28:31 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #5320 – Description
initial v1 3 3 my django-app runs under www.domain.com/appl/ with fastcgi. 4 4 5 the output of "request.path" in a view called for ^$is just "/" not "/appl/" as it should be...reproduce it:5 the output of "request.path" in a view called for `^$` is just "/" not "/appl/" as it should be...reproduce it: 6 6 7 7 urls.py: 8 {{{ 8 9 from django.conf.urls.defaults import * 9 10 from appl.views import start … … 12 13 (r'^', start), 13 14 ) 14 15 }}} 15 16 views.py: 17 {{{ 16 18 from django.shortcuts import render_to_response 17 19 18 20 def start(request): 19 21 return render_to_response('base.html',{'path':request.path}) 20 22 }}} 21 23 base.html: 24 {{{ 22 25 {{path}} 23 26 }}} 24 27 running with fastcgi under www.domain.com/appl/ returns: 25 28 … … 31 34 32 35 I know this can be solved with a rewrite-rule in a .htaccess, but this shouldn't be the proper way to fix bugs. 33 34