I would make the content actually be contained on the Parent page, and then
make the child page a link page type (added through the page admin) and
point it at the parent.


On Wed, Mar 19, 2014 at 1:55 PM, wahid Mohammad Abdul Wahid <
[email protected]> wrote:

> Hello everyone
> I am new to django  and recently installed mezzaine with django version
> 1.6.2. I want to let the user redirect on the first child page if the
> parent page is selected from the menu. I was able to add two redirect
> entries via Site-->Redirects link like the followings:
>
>    -
>
> Redirect from                  
> <http://127.0.0.1:8000/admin/redirects/redirect/?o=-1> Redirect
> to 
> <http://127.0.0.1:8000/admin/redirects/redirect/?o=2.1>/clients/<http://127.0.0.1:8000/admin/redirects/redirect/1/>
> /clients/education//hello/<http://127.0.0.1:8000/admin/redirects/redirect/2/>
> /clients/education/
>
>
> Second one works fine whereas the first one does not work at all.
>
>
> I also tried by adding entries in urls.py and views.py like the followings:
>
> In views.py
> def redirect_clients(request):
>     return redirect('/clients/education')
>
> In urls.py
> url("^clients/$", redirect_clients , name="TEST"),
> url("^test/$", redirect_clients , name="TEST"),
>
>
> Again same problem...the /test/ is working fine but /clients/ does not. I
> guess I am missing something very simple and obvious. Any idea pls?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to