When switch to a flat 404 page without using a handler404 it works fine.
Not sure if this a bug in Django because the above method used to work
fine, but now it doesn't.
On Thursday, May 30, 2013 4:29:33 PM UTC-4, jayhalleaux wrote:
>
> So I am having issues with my 404 errors.
So I am having issues with my 404 errors.
When I manually throw a 404 error, my handler404 works fine and catches the
error showing my custom 404 error page.
http://tracklist.us/archive/event/1000/2012-12-05-sasha-moonpark-xxv-costa-salguero/
Now when I use a bad url which should be caught with
hod1(**params)
> On Apr 16, 2013 7:49 PM, "jayhalleaux" >
> wrote:
>
>> Not really a Django question but I'm trying to create a model method that
>> does not have a fixed set of parameters.
>>
>> models.py
>> Class Model_A(model.Model):
Not really a Django question but I'm trying to create a model method that
does not have a fixed set of parameters.
models.py
Class Model_A(model.Model):
...
def method1(self, **kwargs):
print param1, param2, param3
views.py
params = dict(
param1=something1,
param2=something2,
param3=somethi
>
> Any ideas on question 1? how to use named urls in settings.py?
>
>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com
thanks... i totally blanked as to where i was making the mistake.
On Saturday, March 9, 2013 3:39:06 AM UTC-5, Atul Bhouraskar wrote:
>
>
> I'll try to answer your second question:
>
> On Saturday, 9 March 2013 16:07:46 UTC+11, jayhalleaux wrote:
>>
>>
>>
&g
So I have two questions:
1. Changing LOGIN_REDIRECT to a named url.
Example:
settings.py:
LOGIN_REDIRECT = ?? // what do i set it to, 'tracklist:profile' gives me
an unsafe redirect error
urls.py: // which one? your root urls.py or your application urls.py
from django.conf.urls import inc
i take that back.
If I log in and then I close the tab, I can go back and still use the
url to go to a login required page.
--
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 u
works perfectly... thanks :)
On Jun 7, 9:29 am, "Tim Sawyer" wrote:
> Try putting:
>
> SESSION_EXPIRE_AT_BROWSER_CLOSE = True
>
> in your settings.py file.
>
> Tim.
>
>
>
> > I have the django auth system set correctly, my only problem is that
> > is if the user does not use the logout and just c
I have the django auth system set correctly, my only problem is that
is if the user does not use the logout and just closes the browser,
they are still logged in.
Any suggestions?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
So I am trying to create a navbar that is altered by users logging in
and out.
It is created using an inclusion tag which takes its context.
I tried passing permissions via:
return {
'perms': context['perms'],
'user': context['user'],
etc...
}
when making the incl
11 matches
Mail list logo