Code

Changes between Initial Version and Version 1 of Ticket #5320


Ignore:
Timestamp:
09/02/07 02:28:31 (7 years ago)
Author:
ubernostrum
Comment:

(cleaning up formatting)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5320

    • Property Patch needs improvement unset
    • Property Needs tests unset
    • Property Needs documentation unset
  • Ticket #5320 – Description

    initial v1  
    33my django-app runs under www.domain.com/appl/ with fastcgi. 
    44 
    5 the output of "request.path" in a view called for ^$ is just "/" not "/appl/" as it should be...reproduce it: 
     5the output of "request.path" in a view called for `^$` is just "/" not "/appl/" as it should be...reproduce it: 
    66 
    77urls.py: 
     8{{{ 
    89from django.conf.urls.defaults import * 
    910from appl.views import start 
     
    1213        (r'^', start), 
    1314) 
    14  
     15}}} 
    1516views.py: 
     17{{{ 
    1618from django.shortcuts import render_to_response 
    1719 
    1820def start(request): 
    1921        return render_to_response('base.html',{'path':request.path}) 
    20  
     22}}} 
    2123base.html: 
     24{{{ 
    2225{{path}} 
    23  
     26}}} 
    2427running with fastcgi under www.domain.com/appl/ returns: 
    2528 
     
    3134 
    3235I 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