use signals in channels2 - send message when a database field is updated

2019-11-23 Thread Levent Engin
Hi; How can i implement to use signals inside channels2? I want to send message via consumer when a database field is updated. Wiil that be inside consumer or models? Is there a sample or tutorial? Best regards -- You received this message because you are subscribed to the Google Groups

Re: Database field for Image Upload

2014-10-29 Thread Bill Freeman
Note that if these images will be displayed on the site it is best done by your front end (Apache, ngnx, etc.) since the HTML to show them treats them as a separate request, and serving static files is your front end's forte. The front end knows how to do this with files, but probably not with data

Re: Database field for Image Upload

2014-10-29 Thread pjotr
https://docs.djangoproject.com/en/1.7/ref/models/fields/#imagefield The image file will not be stored in the database, but in MEDIAROOT by default. So maybe this is not the answer to your question. On Wednesday, October 29, 2014 10:18:30 AM UTC+1, Shubham Gupta wrote: > > Is there any way from

Database field for Image Upload

2014-10-29 Thread Shubham Gupta
Is there any way from which i can add image as a field so that images are added into my database? what data type i must use for this problem..? thank you in advance -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this grou

Re: Need a binary database field for a Django application.

2009-05-11 Thread Will Kraytos
On May 11, 7:55 am, Karen Tracey wrote: > Have you investigated creating your own custom field: > > http://docs.djangoproject.com/en/dev/howto/custom-model-fields/ Thanks, I did look at that briefly. Was hoping there was some sort of built-in support that wouldn't require me to define my own cus

Re: Need a binary database field for a Django application.

2009-05-11 Thread Karen Tracey
On Mon, May 11, 2009 at 6:08 AM, Will Kraytos wrote: > Hi there, > > My company's application needs to store binary data in the database. I need > it to work at least across the two database systems we're currently using: > Postgres (bytea) for production, SQLite3 (BLOB) for development. > > What

Need a binary database field for a Django application.

2009-05-11 Thread Will Kraytos
Hi there, My company's application needs to store binary data in the database. I need it to work at least across the two database systems we're currently using: Postgres (bytea) for production, SQLite3 (BLOB) for development. What are my options? The only relevant ticket[1] causes me to believe

Re: blob database field

2009-01-26 Thread Malcolm Tredinnick
On Mon, 2009-01-26 at 20:47 -0700, reed crowe wrote: > I am trying to integrate a web front end to another > application that uses a mysql database. The applications > stores small png graphs as blobs in the database and I > would like to be able to display those in the web front > end. I have

blob database field

2009-01-26 Thread reed crowe
I am trying to integrate a web front end to another application that uses a mysql database. The applications stores small png graphs as blobs in the database and I would like to be able to display those in the web front end. I have seen a few discussions on the topic, and maybe a patch for co

Database Field spanning multiple columns

2007-06-22 Thread [EMAIL PROTECTED]
Hi, We use a lot of IP Adresses and Networks in FFSomething. Currently the default IPAdressField which works more or less good. To make it easier to work with IP Networks, i wan't to create a generic IP field type. Now my problem: To make this field working on every database, i thought about thi

Re: database field

2007-02-27 Thread Mary
Dear Aidas; Can you please give me more details for the solution as i can't understand how to develop this solution Thank you for your help :) Mary Adel On Feb 27, 12:12 pm, "Aidas Bendoraitis" <[EMAIL PROTECTED]> wrote: > I think, overriding the admin template for specific application would >

Re: database field

2007-02-27 Thread Aidas Bendoraitis
I think, overriding the admin template for specific application would be the most straightforward solution: * create a template in your template dir admin/yourapp/change_form.html * show some field there only if request.user has some permissions. Regards, Aidas Bendoraitis [aka Archatas] On 2/2

database field

2007-02-25 Thread Mary
How can i create a field in a model that can't be seen by anyone that logs onto the admin interface except by certain user only Thank you in advance; Mary Adel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djang

Re: Update database field

2006-11-18 Thread Manu J
is is the correct way, if not somebody can advise me another > > ;) > > > > On Nov 14, 11:37 am, "tinti" <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > I need some help updating a database field. Can someone post me an > > > example on

Re: Update database field

2006-11-14 Thread [EMAIL PROTECTED]
er > ;) > > On Nov 14, 11:37 am, "tinti" <[EMAIL PROTECTED]> wrote: > > Hi all, > > I need some help updating a database field. Can someone post me an > > example on updating a database field using the views.py and a static > > value to update. For exa

Update database field

2006-11-14 Thread tinti
Hi all, I need some help updating a database field. Can someone post me an example on updating a database field using the views.py and a static value to update. For example each time an item is requested set the field read to 1. I have to build something similar. Thanks for any reply tinti

Re: Update database field

2006-11-14 Thread tinti
Got it: update = Queue.objects.get(message=message_id) update.read = 1 update.save() I thinks this is the correct way, if not somebody can advise me another ;) On Nov 14, 11:37 am, "tinti" <[EMAIL PROTECTED]> wrote: > Hi all, > I need some help updating

Re: how to do complex query which filters on method not database field

2006-11-06 Thread Ivan Sagalaev
Rachel Willmer wrote: > I have a complicated query which should return the subset of a table > whose objects match one of several conditions. > > What's the easiest way of doing this, given that I can't just do a SQL > statement, because some of the conditions require me to feed the > object's va

how to do complex query which filters on method not database field

2006-11-06 Thread Rachel Willmer
I have a complicated query which should return the subset of a table whose objects match one of several conditions. What's the easiest way of doing this, given that I can't just do a SQL statement, because some of the conditions require me to feed the object's values into a function to evaluate i