A question of signals and ATOMIC_REQUESTS

2018-01-30 Thread mesulphur
When ATOMIC_REQUESTS=True is set, are ORM signals - post_save and pre_save - also executed within the transaction? Per my inference, they seem be to a part of the transaction. Assuming my inference is correct, then consider the following code @receiver(post_save, sender=MyModel) def log_and_

Re: Template Namespace Error (django2)

2018-01-30 Thread Carl Brubaker
So I'm not exactly sure what happened. I made a second "locallibrary" program that worked and then compared all of my files, because after I tried to change my original one back to the way Mozilla lays it out, it still wouldn't work. When I repasted the catalog/views.py file contents, it worked

Re: how do I handle a dropdown in Django whose only purpose is to get data.

2018-01-30 Thread Melvyn Sopacua
On vrijdag 26 januari 2018 22:25:55 CET eil...@themaii.org wrote: > well, you certainly got me correct! I'm fairly new to python - didn't do > much coding to learn. Trial by fire, sort of. and the original person who > put this together is now gone from the company and won't answer any > outstandin

Re: Django api call in view unable to save for foreign key userId

2018-01-30 Thread Etienne Robillard
Hi, Le 2018-01-29 à 22:31, cherngyo...@gmail.com a écrit : {"patientId":["This field is required."]}. This is a generic form validation error. I suspect the problem is with the following code: |classBookApptSerializer(serializers.ModelSerializer):patientId =MyUserSerializer(many=False)|

Re: putting together a simple calendar of events in Django

2018-01-30 Thread carlos
Hi, you maybe try this app https://github.com/llazzaro/django-scheduler Cheers On Tue, Jan 30, 2018 at 8:33 AM, Ari Davidow wrote: > Hi, > > I have a website that has been using a version of the Moveable Type > blogging tool for a simple calendar of events. This works quite well: By > reversing

putting together a simple calendar of events in Django

2018-01-30 Thread Ari Davidow
Hi, I have a website that has been using a version of the Moveable Type blogging tool for a simple calendar of events. This works quite well: By reversing the order of display, I am able to show events from today forward (as opposed to typical blog display of "today, back") What makes a Calendar

Re: Django-Channels: Debugging

2018-01-30 Thread 'Matthias Brück' via Django users
Thanks Andrew, using print("message", flush=True) did the trick to get the print messages immediately. Am Dienstag, 30. Januar 2018 02:00:20 UTC+1 schrieb Andrew Godwin: > > I'm not sure why the print messages were buffered - next time try flushing > stdout and see if that makes it work. > > And