Problem rendering media files in template during development

2015-07-20 Thread charito.romeo
Hi django folks, I ran into a hiccup when I was rendering media files in templates during development. I wanted to render the image and the video that was uploaded by the user BUT instead of the contents of the image and the video being rendered, the name of the file was rendered instead. I

Re: Problem rendering media files in template during development

2015-07-20 Thread Charito Romeo
Oh, I forgot to include the MEDIA_ROOT = os.path.join(BASE_DIR, 'media') in settings.py. On Mon, Jul 20, 2015 at 3:16 PM, charito.romeo wrote: > Hi django folks, > > I ran into a hiccup when I was rendering media files in templates during > development. I wanted to render the image and the video

Re: 1.7 to 1.8 upgrade: test suite failing

2015-07-20 Thread simon . shillaker
Hi Tim, Thanks again for the responses. Tom is now on holiday for a week but we'll pick up where he left off and try to replicate the issue in a minimal project. Cheers, Simon On Wednesday, July 15, 2015 at 3:03:31 PM UTC+1, Tim Graham wrote: > > A minimal project to reproduce the issue would

Label in Charfield

2015-07-20 Thread Info Test
Hello, What is the best way to add class css for a label in Charfield form? Thanks -- 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...@googl

Re: Migrate a many-to-many field to an explicit intermediate ("through") model?

2015-07-20 Thread Carsten Fuchs
Hi Gergely, Am 16.07.2015 um 20:44 schrieb Carsten Fuchs: 3) change the m2m field by adding the through option, and add this change to the migrations file. [...] And won't this last step trigger the same error as before? ("... you cannot alter to or from M2M fields, or add or remove through=

Re: Label in Charfield

2015-07-20 Thread Ayush Jha
Create a widget for the CharField FormField http://stackoverflow.com/questions/4707192/django-how-to-build-a-custom-form-widget -- 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, sen

Re: Label in Charfield

2015-07-20 Thread Carlos Andre
campo = forms.Charfield(max_lenght = 5, widget=(attr={'class':classe_css})) 2015-07-20 10:25 GMT-03:00 Ayush Jha : > Create a widget for the CharField FormField > > http://stackoverflow.com/questions/4707192/django-how-to-build-a-custom-form-widget > > -- > You received this message because you a

Easy to use graphical reporting tools for SQL

2015-07-20 Thread Kevin
In our office we have a Django application that uses a MySQL database. Often I am asked to produce various reports that can range from being basic dumps of query results or aggregate computations on query results. To do this I must connect to the Django shell to use the ORM or write the SQL dir

Re: Easy to use graphical reporting tools for SQL

2015-07-20 Thread
Maybe you can try navicat. http://www.navicat.com/ 2015-07-21 5:09 GMT+08:00 Kevin : > In our office we have a Django application that uses a MySQL database. > Often I am asked to produce various reports that can range from being basic > dumps of query results or aggregate computations on query r

django 1.8 + mysql + python 3.2

2015-07-20 Thread gerard
Hello all, I have this combination, on debian 7 (in openvz, not possible to upgrade). According https://docs.djangoproject.com/en/1.8/ref/databases/#mysql-db-api-drivers, i have to use mysqlclient or MySQL Connector/Python provided by Oracle. Unfortunately, mysqlclient failed to work: File "