Are you using a custom authentication backend?
Admin calls get_all_permissions() method on the logged-in user, which
tries to call get_all_permissions() method of each authentication
backend used.
The back-ends used should implement this method and definetely
/topics/auth/#other-authentication-sources
I think, this document should mention about admin / permissions issues
when using custom backends.
Best,
oMat
On May 7, 3:01 pm, "omat * gezgin.com" <o...@gezgin.com> wrote:
> While trying to track down the problem, I encou
])
Am I missing something basic?
Best,
oMat
On May 7, 1:25 pm, "omat * gezgin.com" <o...@gezgin.com> wrote:
> Sure, otherwise I won't be able to login to admin with that user at
> first place.
>
> Best,
> oMat
>
> On May 7, 1:04 pm, Kenneth Gonsalves <la
Sure, otherwise I won't be able to login to admin with that user at
first place.
Best,
oMat
On May 7, 1:04 pm, Kenneth Gonsalves wrote:
> On Thursday 07 May 2009 15:32:08 omat wrote:
>
> > "You don't have permission to edit anything."
>
> you have set is_staff?
> --
>
Thanks for the detailed reply Russ.
I added a boolean field to the model to specify the most current entry
for the user, updated with save(), thus letting me to fetch records of
the most current entries with a simple query.
I think de-normalization and avoiding expensive complex aggregate
com>
wrote:
> On Feb 27, 10:23 pm, "omat * gezgin.com" <o...@gezgin.com> wrote:
>
> > 'file' for liblwgeom.so and two of it dependencies (libgeos_c.1.dylib
> > and libproj.0.dylib) reveals they are built only for i386.
>
> > Is this ok or shou
Dumpleton <graham.dumple...@gmail.com>
wrote:
> On Feb 27, 8:13 pm, "omat* gezgin.com" <o...@gezgin.com> wrote:
>
> > I am using the django's built-in development server.
>
> Odd then.
>
> All I can suggest is to run:
>
> otool -L /usr/local/pgsql_
I am using the django's built-in development server.
Thanks.
On Feb 27, 12:48 am, Graham Dumpleton <graham.dumple...@gmail.com>
wrote:
> On Feb 27, 12:29 am, "omat * gezgin.com" <o...@gezgin.com> wrote:
>
> > Thanks for the pointer.
>
> > But I c
Thanks for the pointer.
But I checked the architecture of the liblwgeom.so with 'file' and the
result is:
/usr/local/pgsql_saved_0804141532/lib/liblwgeom.so: Mach-O bundle i386
which is the correct architecture for my Intel based macbook pro.
I am lost.
On Feb 26, 1:25 pm, Graham
Hi,
I had my sessions working properly until now, but now I am getting
None as the value of request.session.session_key in my view function.
I don't know what change I made caused this.
I have double checked that:
- MIDDLEWARE_CLASSES has
'django.contrib.sessions.middleware.SessionMiddleware'
-
Hi,
I feel like commenting and voting should be two separate applications,
because in a sites scope, there can be content other than comments,
say photos, that also need to be voted.
Wouldn't it be more natural and manageable to have a generic voting
application that keeps scores of every
pt cookies when running besides an installed
version of IE7. This can be with other combinations also, which I am
not going to test.
On 4 Mayıs, 09:51, "omat * gezgin.com" <[EMAIL PROTECTED]> wrote:
> No, the domain is "turkpop.com". I tried setting SESSION_COOKIE_D
6 standalone version together with installed IE7 on the
same machine for testing. I think there might be a buggy interference
among them when running together. I will test with a machine with only
IE6 installed.
On 4 Mayıs, 02:47, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote:
>
I cannot set session cookies in IE6, thus I cannot handle sessions of
my users that are using IE6.
In the FAQ, there is a section mentioning a similar problem in the
admin site and tells to set the SESSION_COOKIE_DOMAIN parameter in the
admin settings.
As my problem is not limited to admin, I
Thanks Enrico, it was an emtpy css left in the base template...
On 2 Mayıs, 17:41, Enrico <[EMAIL PROTECTED]> wrote:
> I got the same situation a long time ago...
>
> After a lot of headaches, I've noticed that I had an empty image tag,
> so the browser calls the current page twice, one time
Hi all,
I am running the latest svn version on development web server and in
one of my applications, for each request, the view function is called
twice. Whether the request that triggers the view function is GET or
POST, another GET request follows the original and the view function
is called
PATH_INFO'] at production level ?
>
> uri = request.META.get('PATH_INFO')
>
> On 28 avr, 12:53, "omat * gezgin.com" <[EMAIL PROTECTED]> wrote:
>
> > I need to use the current request URI in a template. Thus, I am
> > passing the uri as a context variable,
I need to use the current request URI in a template. Thus, I am
passing the uri as a context variable, which is:
uri = request.META.get('REQUEST_URI') or request.META.get('PATH_INFO')
When I use this expression in the test server, which uses the
request.META.get('PATH_INFO'), everything is fine
I still need to solve this issue. Am I missing something obvious, or
can this be a bug?
Thanks again...
oMat
On 23 Mart, 14:37, "omat * gezgin.com" <[EMAIL PROTECTED]> wrote:
> I have two models, Artist and Album. I am able to add new albums via
> the admin interface b
I have two models, Artist and Album. I am able to add new albums via
the admin interface but the list of artists in the album edit / add
pages are not ordered.
If I am not getting the documentation wrong, this should be achieved
simply by stating the default ordering in the meta class. My
By the way, when I try to commit using transaction.commit(), I get a
TransactionManagementError saying "This code isn't under transaction
management", which makes sense, as the cursor is not in a transaction
context.
On 14 Mart, 17:36, "omat * gezgin.com" <[EMAIL PR
I am trying to run a custom insert sql on postgres db, but the command
does not seem to commit. I searched through this list and saw that
there are unresolved discussions like:
http://groups.google.com/group/django-users/browse_thread/thread/65adbdfa9bc92a7b/
Following the examples in the
Hi all,
I have set the comments application up to run with my applications and
it is functioning as expected. I over rid the templates belonging to
the comments application by copying them to my site's templates/
comments folder. This also works fine.
But, my base template that comment pages
I have an ImageWithThumbs field class derived from ImageField class
that manages thumbnails of an image. It takes list of dimensions as a
parameter and handles the creation and deletion of the resized
images.
I want to dynamically add methods to return the url of a resized image
when its
I came across several approaches for managing thumbnails of images and
then I wrote mine to allow user to specify any number of thumbnail
images to be created.
When initializing the field class, specify the dimensions that you
want to have like:
photo = ImageWithThumbsField(upload_to = 'path',
Thanks for pointing me to right direction. This snippet solved the
issue...
omat
On 28 Şubat, 20:06, "Rubic" <[EMAIL PROTECTED]> wrote:
> Choices needs to be a sequence of (id, value) tuples. List
> comprehensions are probably the most convenient way to
> do
Hi all,
I am trying to limit choices on a form generated by form_for_model. I
created a form class using form_for_instance then inherit another
class from that and limit the list of choices for a field in the
__init__(). I feel that I am close but I couldn't manipulate the
choices.
My classes
Thanks for the suggestions.
> * Write messages in Turkish and provide an English translation for the
> projects that need it, but not for this one (untested).
This would be an interesting hack but there already exists a Turkish
translation. Reversing it would be a burden. Also, it wouldn't
For the upcoming release, may I suggest a way to override the language
selection precedence and/or force a preset language in
get_language_from_request, as discussed here:
http://groups.google.com/group/django-users/browse_thread/thread/15ec233671b0beed
Thanks,
oMat
On 27 Şubat, 02:26,
solve your problem? Did you define the languages in the
setting file like:
LANGUAGES = (
('ru', 'Russian'),
('en', 'English'),
)
Does the order matter?
oMat
On 26 Şubat, 16:30, Ivan Sagalaev <[EMAIL PROTECTED]> wrote:
> omat * gezgin.com wrote:
> > Yes, but I want
don't want to hard code messages like form validation
errors.
Thanks,
oMat
On Feb 26, 4:04 pm, Baurzhan Ismagulov <[EMAIL PROTECTED]> wrote:
> On Mon, Feb 26, 2007 at 01:57:26PM -0000, omat * gezgin.com wrote:
> > > 2. Where are you trying to see the translati
> 1. Which version of Django?
revision 4608 form svn
> 2. Where are you trying to see the translation? Admin, or your
>application?
my application
Thanks...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
I want to have only one translation, the one set by the LANGUAGE_CODE
parameter to be available, no matter the browser settings. Django
checks the http header for accepted languages before the LANGUAGE_CODE
in the settings. Thus, I get the translation I want only when the
language is added to my
yeesss!
thanks a lot, everybody...
On Feb 19, 3:38 pm, Ivan Sagalaev <[EMAIL PROTECTED]> wrote:
> Dirk Eschler wrote:
> > you can try to add this as first line in your file:
>
> > # -*- coding: utf-8 -*-
>
> And after this there's no need to write u'ç'.encode('utf-8') but is
> enough to write
I am trying to match a utf-8 character with a filter. Within the
python prompt, "u'ç'.encode('utf-8')" returns "\xc3\xa7" correctly but
when I use this inside a filter like:
(name__startswith = u'ç'.encode('utf-8'))
I get a syntax error:
Non-ASCII character '\xc3' in file .../views.py on line
.
Thanks again,
oMat
On Feb 18, 7:42 pm, Ivan Sagalaev <[EMAIL PROTECTED]> wrote:
> omat * gezgin.com wrote:
> > And url pattern that matches the view is
> > (r'^photo/(?P[-\w]+)/(?P\d+)/$',
> > 'artist.views.artist_photo'),
>
> > Images are displaying fi
I am running revision 4541 and experimenting with the new {% url
path.to.view %} syntax.
My template for displaying a set of thumbnail images is like:
{% for photo in photo_set %}
{% endfor %}
And url pattern that matches the view is
(r'^photo/(?P[-\w]+)/(?P\d+)/$',
Thanks for the clarification. I totally agree with your points on good
design. I was just curios...
mat
On Feb 18, 8:33 am, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
> On 2/18/07, omat * gezgin.com <[EMAIL PROTECTED]> wrote:
>
>
>
> > I couldn't
I couldn't find any reference on passing parameters to a view method
from within a template. All I could find are some examples of passing
a single parameter to filter functions like:
{{ pub_date|date:"F j, Y" }}
Is there a way of doing this?
This may be more of a python question, but here I go...
I want to develop a maillist manager that works with existing django
applications. I thought that it would be suitable to declare the
mailable content class in the model in a way similar to the admin
application.
Suppose there is a
About a year ago, there had been a discussion on a similar topic:
http://groups.google.com/group/django-users/browse_thread/thread/
006108ff1b23c36c
But most of the important points were left unanswered. The topic is
expired, so I am starting a new one.
I think it is very important to be able
Hi all,
There had been a discussion on selecting objects based on their tags in
a blogging application:
http://groups-beta.google.com/group/django-users/browse_thread/thread/f2bfff678b1f5ee8/
I want to do something similar, but a little bit more complicated. I am
trying to decide which entry
42 matches
Mail list logo