Column width changeable in django admin screen

2015-09-16 Thread Pawanesh Gautam
How to make column width changeable in django admin screen. so that client can change width using drag n drop in django admin screen . -- 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

Re: No module named _mysql

2015-09-16 Thread Sandeep kaur
On Thu, Sep 17, 2015 at 3:19 AM, Cliff Peng wrote: > > http://stackoverflow.com/questions/26560973/python3-mysql-error-loading-mysqldb-module-no-module-named-mysqldb > > Can this help you? I have already implemented this solution, but still the error.log goes like this : [Thu Sep 17 05:27:38 201

Re: No module named _mysql

2015-09-16 Thread Cliff Peng
http://stackoverflow.com/questions/26560973/python3-mysql-error-loading-mysqldb-module-no-module-named-mysqldb Can this help you? 2015-09-16 20:04 GMT+08:00 Sandeep kaur : > Greetings, > I am using Python3.4 for the Django app on CentOs. The application is > working perfectly fine with runserver

Re: Prefetch() with through models

2015-09-16 Thread Mike Dewhirst
On 16/09/2015 9:53 AM, Erik Cederstrand wrote: Hi folks, I'm working on a school timetable app. I want to fetch hundreds of thousands of Lesson instances with prefetched m2m relations (e.g. subjects). My m2m relations use through models (I'm not sure this actually makes a difference here), and I

Re: Advanced Annotate

2015-09-16 Thread Paolo C.
Hi Carsten, my problem is slightly different, in your example you wanted to annotate for example the max_book price, I need to annotate not only the price but also which is the book that has that max value. Thanks -- You received this message because you are subscribed to the Google Groups

How to create a Django formset with three or more related items?

2015-09-16 Thread John Schmitt
I posted this question on SO, perhaps someone can answer it. http:// stackoverflow.com/questions/32615421/ This Django doc explains inline formsets, and uses this nice example: from django.db import models class Auth

Re: Integrating RabbitMQ with Django

2015-09-16 Thread Felipe Arenhardt Tomaz
I create and use this class to manipulate the queues https://gist.github.com/Arenhardt/8ac7e7667134c28eceed -- Felipe Arenhardt Tomaz Systems Developer Curitiba - Paraná www.felipetomaz.com On Wed, Sep 16, 2015 at 2:01 PM, Erol Merdanović wrote: > @Tom > > Yes, it was also thinking about using

Re: Prefetch() with through models

2015-09-16 Thread Simon Charette
Hi Erik, I think the prefetch api uses IN [id1, ..., idn] instead of IN (SELECT * ...) because the default isolation level Django runs with is READ COMITTED and using the latter could return different results for the second query. e.g. SELECT id FROM foo WHERE bar = true; -- An other transactio

Re: Integrating RabbitMQ with Django

2015-09-16 Thread Erol Merdanović
@Tom Yes, it was also thinking about using supervisord. But I'm interested if there is anything else that nicely integrates into Django. @Felipe Yes, I'm using pika. Afaik there are no decent tutorials how to implement consumers into Django. On Wednesday, 16 September 2015 16:05:26 UTC+2, Fel

Re: django-sendfile with apache2+mod_wsgi: got empty files

2015-09-16 Thread gerard
Le 16/09/2015 15:47, gerard a écrit : In apache2 conf: Options Indexes FollowSymLinks MultiViews XSendFile On AllowOverride All Order allow,deny allow from all ok, replacing the above with: XSendFile On XSendFilePath /home/devel/media/python3/media/Images/ does the

Re: Integrating RabbitMQ with Django

2015-09-16 Thread Felipe Arenhardt Tomaz
For manual manipulation recommend Pika[1] [1] https://pypi.python.org/pypi/pika -- Felipe Arenhardt Tomaz Systems Developer Curitiba - Paraná www.felipetomaz.com On Wed, Sep 16, 2015 at 10:53 AM, Erol Merdanović wrote: > @Vijay > > Yes, source of the messages is outside of the Django applicati

Re: Integrating RabbitMQ with Django

2015-09-16 Thread 'Tom Evans' via Django users
On Wed, Sep 16, 2015 at 2:34 PM, Erol Merdanović wrote: > Hello Vijay > > The differences are > 1. Celery message and our message has different format > 2. Celery uses custom queues > > Is this correct? > Yep. Celery is a distributed task system which can use AMQP as transport, but by default it

Re: Advanced Annotate

2015-09-16 Thread Carsten Fuchs
Hi Paolo, Am 15.09.2015 um 00:32 schrieb Paolo C.: How can obtain details from the last comment when listing ll posts? If I understood your question correctly -- I recently had the same question, see https://groups.google.com/d/msg/django-users/adRe2_BWMz0/G71BVUEI_7oJ for details. It seems

Re: Django deployment

2015-09-16 Thread 'Tom Evans' via Django users
On Wed, Sep 16, 2015 at 2:20 PM, bobhaugen wrote: > You gotta give PHP credit here. They did deployment better than anybody. > I'd disagree massively. Deploying code is not the same as ftping a bunch of files in to a directory and hoping for the best. Where is the repeatability, rollback etc? >

Re: Integrating RabbitMQ with Django

2015-09-16 Thread Erol Merdanović
@Vijay Yes, source of the messages is outside of the Django application. I could use some transformers, but again, it's extra moving part. @Sadaf Ok, thank you for the blog. I will check it out. But again, Celery is great but I'm not really sure it solves my problem. On Wednesday, 16 Septembe

django-sendfile with apache2+mod_wsgi: got empty files

2015-09-16 Thread gerard
Hello all, im using django-sendfile with django 1.8.4. Tested with development backend and runserver, everything is fine. But when going to Apache2 and xsendfile backend, the downloaded files are empties, i don't understand why. I have: MEDIA_ROOT = '/home/devel/media/python3/media' and Images

Re: Integrating RabbitMQ with Django

2015-09-16 Thread Vijay Khemlani
Is the origin of the messages something different than your Django application? Seems overkill to have a custom message format. On Wed, Sep 16, 2015 at 10:34 AM, Erol Merdanović wrote: > Hello Vijay > > The differences are > 1. Celery message and our message has different format > 2. Celery uses

Re: Integrating RabbitMQ with Django

2015-09-16 Thread Erol Merdanović
Hello Vijay The differences are 1. Celery message and our message has different format 2. Celery uses custom queues Is this correct? On Wednesday, 16 September 2015 15:28:33 UTC+2, Vijay Khemlani wrote: > > Celery would be the usual choice for this, why is it not an option? Seems > far easier a

Re: Integrating RabbitMQ with Django

2015-09-16 Thread Sadaf Noor
Instead you can try using celery. For demonstration purpose I have tried an image processing app using rabbitmq, celery with flask. It worked great. It can be found at my blog ( http://www.sadafnoor.com/blog/rabbitmq-celery-demonstration-using-image-processing-app-on-flask/ ). On 16-Sep-2015 6:53 P

Re: Integrating RabbitMQ with Django

2015-09-16 Thread Vijay Khemlani
Celery would be the usual choice for this, why is it not an option? Seems far easier and more stable than trying to use a webserver as a queue worker. On Wed, Sep 16, 2015 at 10:22 AM, Erol Merdanović wrote: > Hi all > > I'm using Django to develop a service. Service connects to RabbitMQ and > r

Re: Django deployment

2015-09-16 Thread Daniel Chimeno
El miércoles, 16 de septiembre de 2015, 15:20:32 (UTC+2), bobhaugen escribió: > > You gotta give PHP credit here. They did deployment better than anybody. > +1 > Django as a community could stand to put more concentrated work into > deployment. > That was my unique constraint in the last Dja

Integrating RabbitMQ with Django

2015-09-16 Thread Erol Merdanović
Hi all I'm using Django to develop a service. Service connects to RabbitMQ and receives events that are translated to creating/updating/deleting of the database records. What is the best way to run RabbitMQ consumer with Django? I'm using Pika library and I run consumer as a management comman

Re: Django deployment

2015-09-16 Thread bobhaugen
You gotta give PHP credit here. They did deployment better than anybody. Django as a community could stand to put more concentrated work into deployment. On Tuesday, September 15, 2015 at 3:27:49 PM UTC-5, Nikolas Stevenson-Molnar wrote: > > I second the nginx/gunicorn/django/supervisor stack.

Form Container for Django Formwizard only shows labels

2015-09-16 Thread Jur Remeijn
So in my Django project, I am using a formwizard for a multi-page form. On one of those pages, I want a form as well as a formset (sadly, this is absolutely necessary). The formwizard can do these things separately but not together, so I found this ticket

No module named _mysql

2015-09-16 Thread Sandeep kaur
Greetings, I am using Python3.4 for the Django app on CentOs. The application is working perfectly fine with runserver, but when it is configured with apache and wsgi.py, I get this Internal Server error and error long says : [Wed Sep 16 11:38:30 2015] [error] [client 101.56.225.177] File "/usr/

Prefetch() with through models

2015-09-16 Thread Erik Cederstrand
Hi folks, I'm working on a school timetable app. I want to fetch hundreds of thousands of Lesson instances with prefetched m2m relations (e.g. subjects). My m2m relations use through models (I'm not sure this actually makes a difference here), and I'm running into performance issues because the