Re: Expected performance of the django development server?

2015-01-04 Thread Jani Tiainen
On Sun, 4 Jan 2015 20:41:58 -0800 (PST) Richard Brockie wrote: > Hello again, > > I'm to the point in my django development that I am beginning to use > realistic amounts of test data. I'm using postgresql as the database > server, with PyCharm as my IDE, everything

Re: Expected performance of the django development server?

2015-01-04 Thread Andrew Farrell
Another tool that is less robust but easier than django-debug-toolbar to simply drop into your code is import django.db.connection as conn followed by putting print(conn.queries) or print(len(conn.queries)) before and after where you suspect large numbers of repeated queries are being executed.

Filter_horizontal, applying filter on the right box - chosen items

2015-01-04 Thread Aeh. ABID
I'm wondering if there is a standard way to add a javascript-based filter on the right box like the one in the left when having manytomany relation with filter_horizontal. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: Expected performance of the django development server?

2015-01-04 Thread Andrew Farrell
To clarify: I'm not a django core dev and by "neglect" I don't mean that anyone is being neglectful, just focusing efforts elsewhere. On Sunday, January 4, 2015, Andrew Farrell wrote: > The django development server is slow by intentional neglect; It isn't > supposed to

Re: Expected performance of the django development server?

2015-01-04 Thread Andrew Farrell
The django development server is slow by intentional neglect; It isn't supposed to be used in production because the django team does not want to divide its focus by supporting a full-fledged web server that is performance-optimized and security-audited. They want to include a development server

Expected performance of the django development server?

2015-01-04 Thread Richard Brockie
Hello again, I'm to the point in my django development that I am beginning to use realistic amounts of test data. I'm using postgresql as the database server, with PyCharm as my IDE, everything in a virtualenv on an SSD on an Ivy Bridge Core i7 processor with 16 GB of RAM running Windows 7

Re: modelformset question - interspersing extra forms among existing forms

2015-01-04 Thread Richard Brockie
Hi Collin, Yes, you've answered my main question which was how to go about the implementation. I'll need to go through the details anyway, but you have given me a good start. Thanks again, R. On Sunday, January 4, 2015 11:41:36 AM UTC-8, Collin Anderson wrote: > > Hi, > > If the field on the

Re: How to deplou 2 different django website in nginx?

2015-01-04 Thread Vijay Khemlani
as far as i know about nginx, server names are not separated by commas, just spaces. On Sun, Jan 4, 2015 at 3:51 PM, Fellipe Henrique wrote: > Hi there! > > I`m trying to make my nginx server work with 2 domains, with 2 different > django websites. > > So, I have a big, big

Re: Apache and Djagno

2015-01-04 Thread Collin Anderson
Hi, What happens when you try? "sudo a2ensite " expects a file here: /etc/apache2/sites-available/.conf You then need to "sudo service apache2 reload" Collin On Saturday, January 3, 2015 11:45:00 AM UTC-5, SungHo Park wrote: > > Hi > I have tried to use Django in Apache, but it doesn't work.

DjangoCon Europe 2015 registration is open

2015-01-04 Thread Daniele Procida
Hi everyone. Registration for tickets and the call for proposals are now open, with a special one-month window exclusive to members of under-represented groups. So, "minority-only registration" (we couldn't think of a better term) is available now. Everyone else will have to wait until

Re: Change keys in values dictionary.

2015-01-04 Thread Collin Anderson
Hi, Why not query it directly from Message? Message.objects.filter(recipient__user__system_id=user_id).values('id', 'subject') Collin On Friday, January 2, 2015 8:35:42 PM UTC-5, Lee Hinde wrote: > > If I do a query: > > messages = >

Re: modelformset question - interspersing extra forms among existing forms

2015-01-04 Thread Collin Anderson
Hi, If the field on the model is already blank=True, then you don't need that. Also, I realized my (completely untested :) code doesn't exactly match the behavior you want, but I hope it's a good enough start. You may need to store a reference to the original race_number to decide if you need

Re: Problem migration to server with gunicorn and nginx

2015-01-04 Thread Collin Anderson
Hi, Does doing a full start/stop of gunicorn fix it? This could be an issue with PYTHONPATH (aka sys.path) and imports. What's the output of sys.path? What's your rough file tree? Why the double waitlist directories? Which directories have __init__.py files? How are you referencing

Re: create unmanaged model to oracle view/synonym

2015-01-04 Thread Collin Anderson
Hi, What happens when you try Shai's suggestion? class MyUnManagedModel(models.Model): # ... # fields # ... class Meta: managed = False db_table = 'view_name' Collin On Friday, January 2, 2015 9:05:24 AM UTC-5, Fabio Caritas Barrionuevo da Luz wrote: > > Hello,

Re: Can't save input to database

2015-01-04 Thread Collin Anderson
Hi, You shouldn't have to use the {% url %} syntax. What does it end up generating if you view the source of the page? Is it /home/? What was the error? Collin On Friday, January 2, 2015 9:04:22 AM UTC-5, Ronis wrote: > > Sorry I didn't the snippets are only available for 24 hours or little

Re: Advice about composing several templates

2015-01-04 Thread Andreas Kuhne
Hi Martin, You are doing it correctly if you use the {% include "foo/bar.html" %} method. I usually try to make my include templates as small as possible and use one or more on a page to try to be as DRY as possible. It tends to make better, smaller code and also it's easier when something

How to deplou 2 different django website in nginx?

2015-01-04 Thread Fellipe Henrique
Hi there! I`m trying to make my nginx server work with 2 domains, with 2 different django websites. So, I have a big, big problem here, because, when I type my domain2, appears my domain1... here is my 2 conf files I make to try to make 2 domains works. Can anyone tell me, what I'm doing wrong

Advice about composing several templates

2015-01-04 Thread Martin Torre Castro
Hello, I'm developing a web application with Django and we have met a dilemma about the design. We were making one template for every screen, but right now we have detected that some parts of of the screen with the information are repeated all over the different screens. For example, when

Re: Django **not responding** when DEBUG = FALSE - No error raised / Apache HTTPError issue (?)

2015-01-04 Thread Paul Antropius
Okay, it was just an old and obsolete custom security with my wikitools module, that prevents the code to access an external website under debug mode... It thus returned a 404 code, and the wikitools api was forcing the connection with this 5 seconds step pattern... Let's rock ! :-) BTW : I

Re: dashboard for user profile

2015-01-04 Thread Fabio Caritas Barrionuevo da Luz
Em sexta-feira, 13 de julho de 2012 09h14min21s UTC-3, psychok7 escreveu: > > yes i understand that, but i am asking if there is a pluggable app that > does that for us with some jquery and stuff. > > as i said theres is django-profiles, but i think its poorly documented and > i am not able

is there a Django library for AJAX support

2015-01-04 Thread Krishnakant Mane
Hello all, I am realy impressed with the Django forms and some additional enhancements with CrispyForms Specially that additional library does a great job with css management making it possible to make the forms look good and

Re: Django **not responding** when DEBUG = FALSE - No error raised / Apache HTTPError issue (?)

2015-01-04 Thread Paul Antropius
Le dimanche 4 janvier 2015 00:16:33 UTC+1, Mike Dewhirst a écrit : > > On 3/01/2015 10:19 PM, Paul Antropius wrote: > > Good morning, > > > > The production server sends absolutely **no response** when DEBUG is set > > to FALSE. > > Browser still waits for a response : no error (neither

Re: dashboard for user profile

2015-01-04 Thread Derek
Yes, I found some guidance on how to construct a dashboard page; but mine is for creating summary of some of the key data, not so much for user-related info (although I may still need to do this in future). On 3 January 2015 at 14:00, Aaron Reabow wrote: > Did you ever find