Actually i had the url matching that was matchin all the request and
send it to home.
the problem was that in the home view i accidentally copied a
logout(request) into the view and obviusly every time it was logging
out me.

now it works.

On Oct 6, 4:05 pm, Victor Rocha <vicoro...@gmail.com> wrote:
> Depending on what exactly you want to accomplish to match the root to a
> url, I do as follow:
> url(r'^$', 'earth.views.Home'),
>
> However, it is sometimes good to have a default page if a request didnt
> match the url requested (I would use this as the very last rule, otherwise
> it will catch every request):
> url(r'^', 'earth.views.Home'),
>
> As for your origina question, are you sure you have your session middleware
> activated?
>
>
>
>
>
>
>
> On Saturday, October 6, 2012 9:53:36 AM UTC-4, Stefano T wrote:
>
> > What i want is to match the root of my website with a url.
>
> > On Saturday, October 6, 2012 12:53:08 AM UTC+2, ke1g wrote:
>
> >> All urls match this.  The regular expression says "any URL that starts
> >> from the beginning, no matter what follows.  I suspect that you want
> >> 'r^$'
>
> >> Bill
>
> >> On Fri, Oct 5, 2012 at 2:15 PM, Stefano T
> >> <stefano.tr...@gmail.com> wrote:
> >> > wait i may have spotted out the problem:
> >> > if i've an app, is this the correct url pattern for the homepage?
>
> >> >     url(r'^', 'earth.views.Home'),
>
> >> > or does it take ll the urls?
>
> >> > On Friday, October 5, 2012 8:10:09 PM UTC+2, Stefano T wrote:
>
> >> >> i didn't est SESSION_COOKIE_AGE anywhere, so i suppose it's set to its
> >> >> default value.
> >> >> Cookies are enabled.
> >> >> i'm facing the problem in chrome (i deleted all the browser data,
> >> nothing
> >> >> changed)
> >> >> with FF it works.
> >> >> Before it was working with chrome, suddently it stopped.
>
> >> >> On Friday, October 5, 2012 7:32:16 PM UTC+2, Larry....@gmail.comwrote:
>
> >> >>> On Fri, Oct 5, 2012 at 10:57 AM, Stefano T
> >> >>> <stefano.tr...@gmail.com> wrote:
> >> >>> > Hi all.
> >> >>> > i'm new to django and i'm facing a problem i can't solve so far.
> >> >>> > Basically, when i log in in the admin part, every operation i do it
> >> >>> > ask me for the login. doesn't matter which browser i user, it's
> >> always
> >> >>> > the same.
> >> >>> > at the beginning it was acting normally: once logged in i stay
> >> logged
> >> >>> > in until the logout.
> >> >>> > idea?
>
> >> >>> What is SESSION_COOKIE_AGE set to in your settings file? Or are
> >> >>> cookies disabled for your browser?
>
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> Groups
> >> > "Django users" group.
> >> > To view this discussion on the web visit
> >> >https://groups.google.com/d/msg/django-users/-/jJ7LrE2_TC0J.
>
> >> > To post to this group, send email to django...@googlegroups.com.
> >> > To unsubscribe from this group, send email to
> >> > django-users...@googlegroups.com.
> >> > For more options, visit this group at
> >> >http://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to