GEODJANGO Problem/Question

2022-05-10 Thread Steve Watts
I am running a LayerMapping on a set of ShapeFiles acquired from a County GIS Department. I've done a quite a bit of this, and this is the first time I"ve seen such an issue. As LayerMapping is proceeding through the file saving model instances, it encounters one that it can't handle: "GDAL_ERR

Re: Single user as a seller and buyer at the same time.

2022-05-10 Thread George Tantiras
I cannot but agree with Kasper, but here is a naive example: @login_requireddef create_sale_view(request):   if request.user.has_perm("sell.add_product"):       # The user can add new product for sale   else:       # The user cannot add new product for salehttps://docs.djangoproject.com/en/4.0/topi

Re: Single user as a seller and buyer at the same time.

2022-05-10 Thread DJANGO DEVELOPER
yes. I went through the documentation but did not work on what I wanted to achieve. I am totally lost On Tue, May 10, 2022 at 5:05 PM Kasper Laudrup wrote: > On 10/05/2022 11.53, DJANGO DEVELOPER wrote: > > yes, I know. but how to use them? > > > > The link literally starts with "This document e

Django Admin external script before save/delete

2022-05-10 Thread Thiago Luiz Parolin
Hello everyone, I'm trying to run a script before saving and deleting objects in db using django admin. If the script fails, the action (save or delete) needs to be aborted and we need to inform the user with a message. In the django docs: "...When overriding ModelAdmin.save_model() andModelAdmin

Re: Images

2022-05-10 Thread Arshad Noman
You change the names of the pictures in the separate folder then copy them in a static folder then change the picture file names in the template folder then refresh then see pictures are new ones or not On Mon, 9 May 2022 at 20:15, Aliya Janmohamed wrote: > Hi > > It is still displaying the same

Re: Single user as a seller and buyer at the same time.

2022-05-10 Thread Kasper Laudrup
On 10/05/2022 11.53, DJANGO DEVELOPER wrote: yes, I know. but how to use them? The link literally starts with "This document explains the usage of Django’s authentication system in its default configuration" so it seems like an obvious place to look in order to figure out "how to use them".

Re: Single user as a seller and buyer at the same time.

2022-05-10 Thread DJANGO DEVELOPER
yes, I know. but how to use them? On Tue, May 10, 2022 at 1:11 PM George Tantiras wrote: > > What about Django permissions? > > https://docs.djangoproject.com/en/4.0/topics/auth/default/ > > A user can be related to many groups. > 20:23, 9 May 2022, DJANGO DEVELOPER : > > > https://stackoverflo

Re: Single user as a seller and buyer at the same time.

2022-05-10 Thread George Tantiras
What about Django permissions? https://docs.djangoproject.com/en/4.0/topics/auth/default/A user can be related to many groups.20:23, 9 May 2022, DJANGO DEVELOPER :https://stackoverflow.com/questions/72161764/how-to-make-a-user-act-as-a-seller-and-as-a-buyer-at-the-same-time-in-djangoI have posted m