Re: Deploying Django tutorial part 4, redirecting problem, apache error

2009-03-12 Thread Adam Yee
On Feb 10, 5:27 am, "a...@amos-site.org.uk" wrote: > Where exactly do you put this I'm guessing in the file, but a bit of > context would be appreciated. #django.views.generic.list_detail.py ... ... def object_detail(request, ... ... ... ... c =

Re: Deploying Django tutorial part 4, redirecting problem, apache error

2009-02-11 Thread Maarten Kossen
Shouldn't it be pointed out in the tutorial that if you use a non-root path for your django-installation, the hard-coded form-action won't work? On Feb 10, 2:27 pm, "a...@amos-site.org.uk" wrote: > Where exactly do you put this I'm guessing in the file, but a bit

Re: Deploying Django tutorial part 4, redirecting problem, apache error

2009-02-10 Thread a...@amos-site.org.uk
Where exactly do you put this I'm guessing in the file, but a bit of context would be appreciated. On Jan 19, 7:17 am, Adam Yee wrote: > Success.  I added > > 'script_name': request.META['SCRIPT_NAME'] > > into the context of object_detail() in django's generic views >

Re: Deploying Django tutorial part 4, redirecting problem, apache error

2009-01-18 Thread Adam Yee
Success. I added 'script_name': request.META['SCRIPT_NAME'] into the context of object_detail() in django's generic views list_detail.py. Here's the modified form tag to the polls_detail.html template: Note removing the / before {{ script_name }} Just to reiterate what Preston said,

Re: Deploying Django tutorial part 4, redirecting problem, apache error

2009-01-18 Thread Adam Yee
On Jan 18, 7:39 am, ptone wrote: > In the tutorial, the form action in the poll_detail template is > hardcoded to "/polls/..." > > So the browser is doing what's been explicitly asked of it, despite > Django doing its best to deal gracefully with your mounting the app > at

Re: Deploying Django tutorial part 4, redirecting problem, apache error

2009-01-18 Thread Adam Yee
On Jan 18, 3:44 am, Graham Dumpleton wrote: > On Jan 18, 8:46 pm, Adam Yee wrote: > > > > > > > On Jan 17, 8:36 pm, Malcolm Tredinnick > > wrote: > > > > On Jan 18, 2:53 pm, Adam Yee wrote: > > > > >

Re: Deploying Django tutorial part 4, redirecting problem, apache error

2009-01-18 Thread Graham Dumpleton
On Jan 19, 3:02 am, JCorey wrote: > On Jan 18, 9:39 am, ptone wrote: > > > In the tutorial, the form action in the poll_detail template is > > hardcoded to "/polls/..." > > > So the browser is doing what's been explicitly asked of it, despite > > Django

Re: Deploying Django tutorial part 4, redirecting problem, apache error

2009-01-18 Thread JCorey
On Jan 18, 9:39 am, ptone wrote: > In the tutorial, the form action in the poll_detail template is > hardcoded to "/polls/..." > > So the browser is doing what's been explicitly asked of it, despite > Django doing its best to deal gracefully with your mounting the app > at

Re: Deploying Django tutorial part 4, redirecting problem, apache error

2009-01-18 Thread ptone
In the tutorial, the form action in the poll_detail template is hardcoded to "/polls/..." So the browser is doing what's been explicitly asked of it, despite Django doing its best to deal gracefully with your mounting the app at /mysite. In my own newcomer approach, the way I found to work

Re: Deploying Django tutorial part 4, redirecting problem, apache error

2009-01-18 Thread Graham Dumpleton
On Jan 18, 8:46 pm, Adam Yee wrote: > On Jan 17, 8:36 pm, Malcolm Tredinnick > wrote: > > > > > On Jan 18, 2:53 pm, Adam Yee wrote: > > > > It was a slam dunk for completing the tutorial in the development > > > server, but I

Re: Deploying Django tutorial part 4, redirecting problem, apache error

2009-01-18 Thread Graham Dumpleton
On Jan 18, 3:36 pm, Malcolm Tredinnick wrote: > On Jan 18, 2:53 pm, Adam Yee wrote: > > > It was a slam dunk for completing the tutorial in the development > > server, but I can't figure out this issue I'm having with the generic > > views while

Re: Deploying Django tutorial part 4, redirecting problem, apache error

2009-01-18 Thread Malcolm Tredinnick
On Sun, 2009-01-18 at 01:46 -0800, Adam Yee wrote: [...] > I'm still very puzzled by not being able to use '/mysite'. I agree > with you that somewhere '/mysite' is being stripped or just not being > accessed at all. My guess is somewhere in the generic views and/or > how they are set up in the

Re: Deploying Django tutorial part 4, redirecting problem, apache error

2009-01-18 Thread Adam Yee
On Jan 17, 8:36 pm, Malcolm Tredinnick wrote: > On Jan 18, 2:53 pm, Adam Yee wrote: > > > It was a slam dunk for completing the tutorial in the development > > server, but I can't figure out this issue I'm having with the generic > > views while

Re: Deploying Django tutorial part 4, redirecting problem, apache error

2009-01-17 Thread Malcolm Tredinnick
On Jan 18, 2:53 pm, Adam Yee wrote: > It was a slam dunk for completing the tutorial in the development > server, but I can't figure out this issue I'm having with the generic > views while using my apache server.  I'm unable to get the vote view > to redirect correctly. > >

Deploying Django tutorial part 4, redirecting problem, apache error

2009-01-17 Thread Adam Yee
It was a slam dunk for completing the tutorial in the development server, but I can't figure out this issue I'm having with the generic views while using my apache server. I'm unable to get the vote view to redirect correctly. My apache error seen here with both urls.py and views.py. The