http/__init__.py describe Http404 Exception as:
class Http404(Exception):
pass
You can make own Exception:
class Http403(Exception):
pass
For 403 Response do you have HttpResponseForbidden in other Hand.
Jonas Obrist schrieb:
> I don't quite understand why I can raise a Http404 but
Using e.x. raise Http404 isn't clean solution. Is a very ugly shortcut.
So you can return always a 404-view. All other unhandled errors given
500 - is general server error for _unhandled_ exception. Maybe I was
wrong, but using exceptions is not pretty way.
Jonas Obrist schrieb:
> It probably
Hello,
if you need template engine only, then make more sence to port pure
template engine such as jinja2. IMHO.
Michael Feingold schrieb:
> I am working on NDjango project. NDjango is a port of Django template
> language to .Net. It is an open source project. If you are curious you
> can get
Please don't write "ANNOUNCE". This make no sense and seems ugly.
Tarun Pasrija schrieb:
> Mistakably I have missed the What's New section so here is goes:-
>
> What's New??
> -
>
> This version has added support for the following-
> - ZOS support included
> - ibm_db google
VIM. django-dev is for discussion of developing Django itself!
zweb schrieb:
> I see there are multiple django bundles for textmate.
>
> Which is the best one you recommend?
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Django developers" group.
> To
Hello,
here is django-developers, not python-tornado )
'chiru'tha schrieb:
> Hi to all,
> when i' running the helloworld example, i get this error.. But when i
> remove the statements corresponds to the options.py module its
> working fine..
> and one thing is when i run the same code with
Hello,
It's a false place. All what you need - one Model for Settings.
if SettingsModel.objects.get(code='guest_can_comment'):
can_post
else:
cant_post
You can wrap this in one decorator function.
Harro schrieb:
Because the authentication backend now allows for role based
permissions you
No. You need row based permissions if You will limit User(!) rights. For
example user can edit entries with FK 2. See
http://code.djangoproject.com/wiki/RowLevelPermissions
But AnonymousUser (Guest) don't have any permissions. It's a special and
that the guest can - it's not a permission -
Why wouldn't a AnonymousUser have permissions?
Basically, this is senseless.
For some photo's you might want to disable rating and/
or commenting.
How often it is required to the user? In 99% of cases it is enough
specify in an album "can" or "can not". It's really overkill of
Hey folks,
While people are throwing around 1.3 ideas... I think we should start
the process of deprecating and removing support for mod_python. Why?
* mod_wsgi is better in every way.
And? Jinja2-Template Engine is every way better as Django Template
Engine. Drop DJango Template Engine
+1. Explaining existence of private core-list is needless.
But also +1 for other points in Eric's presentation.
Thanks Jacob,
I don't understand why we are discussing about it.
It's quite obvious that if there is a core team, there's also a
mailing list.
S
--
You received this message
I disagree. Although it is normal for a project to have private
mailing lists, such as -security
You disagree, but it is normal? Decide for you first.
I'm very glad Jacob took the time to
explain the need for its presence in Django.
There is a difference about knowledge of the confidential
I would say that any information on why a structure exists is good.
There is no difference have developers a confidential list, a chat or
they communicate by phone, right? It has no relation to structure. It is
a natural way for the decision not public problems.
--
You received this
13 matches
Mail list logo