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 =
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
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
>
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,
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
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:
>
> > > >
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
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
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
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
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
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
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
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.
>
>
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
15 matches
Mail list logo