Django - File or Image Delete

2016-07-08 Thread sevenrrainbow
The user has the possibility to add/delete image and documents. I used GCBV UpdateView and a FormModel for this. How can I offer the possibility to the user to delete the file/image ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To un

Hebrew in Raw Query Like Clause

2016-07-08 Thread Art Zemon
Hello, I have a column in a table that contains Hebrew text. I need to do a query with a LIKE clause on the Hebrew text. The query works if I execute the SQL directly, either in a SQL window of phpMyAdmin or in a command line mysql client. But I cannot get it to work within Django. I tried Bible.

Re: Hebrew in Raw Query Like Clause

2016-07-08 Thread Michal Petrucha
On Thu, Jul 07, 2016 at 11:23:21PM -0500, Art Zemon wrote: > Hello, > > I have a column in a table that contains Hebrew text. I need to do a query > with a LIKE clause on the Hebrew text. The query works if I execute the SQL > directly, either in a SQL window of phpMyAdmin or in a command line mys

Re: Django - File or Image Delete

2016-07-08 Thread Mstislav Kazakov
Just pass empty value in file field. If blank=True and null=True, everything should work fine and image will be removed. пятница, 8 июля 2016 г., 17:23:42 UTC+5 пользователь sevenr...@gmail.com написал: > > The user has the possibility to add/delete image and documents. > > > I used GCBV UpdateV

Re: Invalid HTTP_HOST header in shared server

2016-07-08 Thread Luis Zárate
nobody knows how to solve this problem? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send em

Add 2 Models in a ModelForm

2016-07-08 Thread sevenrrainbow
I have a ProductModel and an ImageModel, link thru a ForeignKey to product id. I want the ImageField(from ImageModel) to appear and be processed in the same form with the other ProductModel atributes. I use GCBV for view. How can be done ? -- You received this message because you are sub

Django Admin - customize use jquery inside and custom fields.

2016-07-08 Thread sevenrrainbow
I want to implement in Django Admin a jquery plugin that "adjust" and image(http://guillotine.js.org/), them get the coordinates with ImageKit and save the new image. I need some tutorials and advises how to do it. -- You received this message because you are subscribed to the Google Groups "

Re: Django Admin - customize use jquery inside and custom fields.

2016-07-08 Thread Luis Zárate
2016-07-08 10:24 GMT-06:00 : > and save the new im You can start reading how to set css and js to form and admin site. See -- "La utopía sirve para caminar" Fernando Birri -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe fr

Re: Django Admin - customize use jquery inside and custom fields.

2016-07-08 Thread Luis Zárate
See https://docs.djangoproject.com/en/1.9/topics/forms/media/ 2016-07-08 10:58 GMT-06:00 Luis Zárate : > > 2016-07-08 10:24 GMT-06:00 : > >> and save the new im > > > You can start reading how to set css and js to form and admin site. > > See > > > > -- > "La utopía sirve para caminar" Fernando B

Substring Searching for Hebrew Text

2016-07-08 Thread Art Zemon
Hello, I have a column in a table that contains Hebrew text. I need to do a query with a LIKE clause on the Hebrew text. The query works if I execute the SQL directly, either in a SQL window of phpMyAdmin or in a command line mysql client. But I cannot get it to work within Django. I tried Bib

Re: Substring Searching for Hebrew Text

2016-07-08 Thread Art Zemon
Never mind... this is s duplicate of a post that I made via email last night. The emailed one finally showed up. I guess it had been held for moderation. -- Art Z. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

ValueError: invalid literal for int() with base 10: 'on'

2016-07-08 Thread Gary Roach
Hi all, I'm working on the official django 1.9 tutorial part 4 , Python 3.5 and Django 1.9 are encapsulated in a virtualenv file in my /opt/ directory. OS Debian Linux with KDE desktop IDE Eclipse with PyDev plugin. Every time I try to vote the program errors out with the following: File

Re: ValueError: invalid literal for int() with base 10: 'on'

2016-07-08 Thread James Schneider
> The polls,detail.html is: > > {{ question.question_text }} > > {% if error_message %}{{ error_message }} > {% endif %} > > > {% csrf_token %} > > {% for choice in question.choice_set.all %} > id="choice{{forloop.counter }}" > value"{{ choice.id }}" /> It

Re: ValueError: invalid literal for int() with base 10: 'on'

2016-07-08 Thread Gary Roach
On 07/08/2016 04:58 PM, James Schneider wrote: > The polls,detail.html is: > > {{ question.question_text }} > > {% if error_message %}{{ error_message }} > {% endif %} > > http://question.id> %}" method="post"> > {% csrf_token %} > > {% for choice in question.choice_set.all %} >

Re: Hebrew in Raw Query Like Clause

2016-07-08 Thread Art Zemon
On Friday, July 8, 2016 at 8:34:00 AM UTC-5, Michal Petrucha wrote: > > I may be wrong, but it seems to me that you're using wrong quoting in > that raw query; I think it should be:: > > select sortkey, book, chapter, verse, hebrew_text > from bible_bible > where hebrew_text like

Re: Hebrew in Raw Query Like Clause

2016-07-08 Thread Art Zemon
Michal, Actually, your syntax didn't quite work. It threw a couple of warnings and seemed to match all records in the database. But you got me on the right track. This syntax does work properly: select ... where word like concat('%%', %s, '%%') Thanks for getting me pointed in the right direc

how should i make a non downloadable image in my django website

2016-07-08 Thread deepak manupati
how should i make a non downloadable image in my django website -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To pos

Re: Django TCP Socket Communication

2016-07-08 Thread Anil reddy reddy M
Hi, Yeah, I am ready On Thursday, June 16, 2016 at 5:12:52 PM UTC+5:30, Sergiy Khohlov wrote: > > Have ready this kind of application using django + postgis. At this > moment protocols Cabon and teltronika are supported. Are you interested ? > > Many thanks, > > Serge > > > +380 636150445 > s