getattr() issue with copied model instance (2.2.16)

2020-09-02 Thread Liam Boer
Hello, - python version: 3.7 - django version: 2.2.16 After upgrading django from 2.2.15 to 2.2.16, I am experiencing errors with the code shown below (see code). Since 2.2.16 the "getattr(self.original, field_name)" line results in the following stack trace, which did not happen in

Re: Django relationships and the admin page

2017-04-12 Thread Liam H
ntrib.admin.ModelAdmin.inlines > > To support more levels, you can use django-nested-admin package: > https://pypi.python.org/pypi/django-nested-admin > > On Monday, April 10, 2017 at 7:48:37 PM UTC-4, Liam H wrote: >> >> Hi, >> >> I'm new to Django, programming, web

Django relationships and the admin page

2017-04-10 Thread Liam H
Hi, I'm new to Django, programming, web apps, the whole lot. I've been working on an app for a while now, but I'm having trouble figuring out how to organise my models in an effective way. Im using Django 1.10 and Python 2.7. Here's a rough example of the structure I'm trying: class

Re: Production django server : NoReverseMatch: Reverse for 'login' with arguments '()' and keyword arguments '{}' not found.

2014-04-21 Thread Liam Thompson
Are you certain that you are passing the correct or required parameters to the URL, and is the URL actually named ? On Saturday, 19 April 2014 13:25:04 UTC+2, 董健 wrote: > > i got NoReverseMatch when deloy cartridge to the webfaction. i can not > not figure out what happened. the problem

Re: Problems with ManyToManyFields from Base and Derived Classes

2014-04-04 Thread Liam J Thompson
elf.fields['managers'] = forms.ModelMultipleChoiceField(choices=self.managers, required=False) self.fields['viewers'] = forms.ModelMultipleChoiceField(choices=self.viewers, required=False) Sorry I can't be more helpful, your code looks like you know more than me anyway. Liam On 04/04/2014 08:44, Ale

Re: Problems with ManyToManyFields from Base and Derived Classes

2014-04-03 Thread Liam J Thompson
Hi Alex Let me have another look through your code and I'll try to come up with something useful. Liam On 03/04/2014 18:20, Alessandro Caruso wrote: I got the traceback (thanks to a middleware which collects it and a send it back to the ajax request even if DEBUG=False) Environment

Re: Problems with ManyToManyFields from Base and Derived Classes

2014-04-02 Thread Liam J Thompson
if that makes sense. Does it make a difference in your case ? I don't know, I'm still new at this so making some suggestions. Liam -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails fro

Re: Problems with ManyToManyFields from Base and Derived Classes

2014-04-02 Thread Liam Thompson
Hi Alex Your code is way more advanced that my skill level. Was wondering if you had tried to run that query viewers = ModelMultipleChoiceField(queryset = User.objects.all().order_by( 'username')) from the shell ? Liam On Wednesday, 2 April 2014 15:12:42 UTC+2, Alessandro Caruso wrote

Re: wsgi does not work as intended even it works fine when python manage.py runserver 0.0.0.0:8000

2014-03-27 Thread Liam Thompson
Are you seeing any error messages ? On Saturday, 22 March 2014 11:07:32 UTC+2, Jun Tanaka wrote: > > Hello, > > wsgi does not work as usually even it works fine when python manage.py > runserver 0.0.0.0:8000 > I use django version 1.3 > > I have two issues here. > 1. how to add projectname

Re: Which Real Time Communications Protocol

2013-12-21 Thread Liam Thompson
you could try http://json-rpc.org/ On Friday, 20 December 2013 18:58:39 UTC+2, Mario Osorio wrote: > > My app will have to communicate different customers (Linux devices, > Windoze devices, iOS devices and Android devices at least). > > Overall, any of these customer devices will start one of

Re: mod_wsgi setup

2013-11-15 Thread Liam Thompson
The "Requested setting DEBUG" says you've requested DEBUG but it's not setup. I don't think you would want DEBUG in production, so try to turn that off in the settings file. On Friday, 15 November 2013 11:34:58 UTC+2, tino wrote: > > Hello, > > I am trying to setup a python 2.7 + Django +

Re: Django App - Accessing Remote MySQL Database

2013-10-03 Thread Liam Griffin
I have a MySQL server with hundreds of dbs... is there a way to be able to connect to all these without breaking DRY principles? On Friday, 2 August 2013 14:26:23 UTC+1, Christian Schmitt wrote: > > You could use django's inbuild ORM: > https://docs.djangoproject.com/en/dev/topics/db/multi-db/ >

Re: django-ssl-auth

2013-09-29 Thread Liam Thompson
Hi Frank Thanks for the direction, my search terms need some work, that mailing list never came up in my searches. Liam -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails fro

django-ssl-auth

2013-09-29 Thread Liam Thompson
le to Django/WSGI (I think it surely would be ) ? There is some mention of using environmental variables, but this generally involves mod_python, which I'm not using. I would be most appreciative of pointers or directions to help clear up my misunderstanding / lack of knowledge. Liam

Re: Initial values and unbound forms (apparently a bug?)

2009-12-05 Thread Liam
, but the formset creates an > additional forms. > > How can I setinitialvaluesfor the correct number of forms? > > Liam -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us..

Django: displaying an image inside the admin (change form)

2009-10-31 Thread Liam
also want the image to be shown at the same spot. hope you guys will be able to help 10k ya all :) Liam From: "sstein...@gmail.com" <sstein...@gmail.com> To: django-users@googlegroups.com Cc: Twisted general discussion <twisted-pyt...@twistedmatr

Re: Make a "save and preview" button in admin.

2009-06-17 Thread Liam Chasteen
;Save and continue editing button". This is how I plan to implement it myself. Regards, Liam On Jun 7, 7:22 pm, Rodrigo Cea <rodrigo...@gmail.com> wrote: > I have added a "preview" button to the admin, like so: > > # In "templates/admin/core/change_form.html" >

Re: S3Storage, FileField -- default_storage.exists() has unwanted side-effects

2008-11-01 Thread Liam
e to work around it by using the str() function, which results > in the correct behavior. > > Anyway, it was non-intuitive for me that checking whether a file exists > would make Django do a GET on it! Is this a bug or do I just not > understand what's going on beneath the surface?

GeoDjango type mismatch in Postgres

2008-10-26 Thread Liam
It seems like what I'm trying to do is pretty straightforward, and similar to the examples at geodjango.org. What gives? ~Liam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post t

Re: GeoDjango problem -- server hangs on GEOSGeometry calls

2008-10-24 Thread Liam
Also, it's on CentOS 5.2 Just want to be complete. On Oct 24, 9:22 am, Info Cascade <[EMAIL PROTECTED]> wrote: > Hi, Justin, > > Thanks SO much for responding! > We met at the WhereCamp meeting, you probably don't remember... > Thanks for looking at this. > &g

GeoDjango problem -- server hangs on GEOSGeometry calls

2008-10-24 Thread Liam
, the server hangs at exactly that spot. No error logged. If I comment out the line, everything runs fine. What am I missing here? Anyone? Liam P.S. I was having the same problem with another call, fromstr() --~--~-~--~~~---~--~~ You received this message because you