Re: muliple pagination on same page

2014-08-27 Thread hardik sottany
Sir I will mail my appointment modal please give me a sample solution On Aug 27, 2014 8:36 PM, "Camilo Torres" wrote: > This is basically a DB query issue. Follow these general directions: > > 1. In your page add a form with a select with the filtering options. > 2. In your view, instead of getti

response to ajax (jquery) with variables

2014-08-27 Thread Antonio Russoniello
Hello, i hope you can help me with this, I'm trying to send to an ajax (jquery from my html template) a response but i would like to send also a new variable. in my html template I have: $("#init_date").click(function(){ var some_date = {'init_date': init_date, 'end_date': end_da

Django URLs em arquivos CSS

2014-08-27 Thread Edson Pereira da Silva
#art-main { background: #63AFDE url('images/page.png') top center scroll; } Como resolver o problema da TAG URL para receber a caminho da imagem? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop recei

HttpResponse methods difference

2014-08-27 Thread Yarick Antonov
What the difference between HttpResponse.Write() , HttpResponse.flush() and HttpResponse.tell()

Re: MultiValueDictKeyError in Django 1.6

2014-08-27 Thread Mike Dewhirst
On 28/08/2014 10:26 AM, Collin Anderson wrote: are you using a custom template or a custom form? That was it. Thank you very much Collin Cheers Mike -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop r

Re: MultiValueDictKeyError in Django 1.6

2014-08-27 Thread Collin Anderson
are you using a custom template or a custom form? -- 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 grou

MultiValueDictKeyError in Django 1.6

2014-08-27 Thread Mike Dewhirst
On updating from Django 1.5 to 1.6 I'm seeing MultiValueDictKeyError (see below) on saving a fairly complex set of linked models in the Admin whether anything actually changed or not. Postgres 9.1 Python 2.7 and 3.4 Apache on Ubuntu 12.04 and manage.py runserver on Windows 8.1 Downgrading to 1

Re: How quickly do Django unit tests run?...

2014-08-27 Thread Benjamin Scherrey
Postgres. best of luck. On Thu, Aug 28, 2014 at 4:16 AM, Fred Stluka wrote: > Ben, > > Thanks! That's exactly the kind of ballpark figure I wanted. > > Sounds like I should be expecting roughly 5-10 tests/sec, plus > maybe 10-20 secs DB setup/migration. I'm currently seeing 1 > test per 7-9

Re: How quickly do Django unit tests run?...

2014-08-27 Thread Fred Stluka
Ben, Thanks! That's exactly the kind of ballpark figure I wanted. Sounds like I should be expecting roughly 5-10 tests/sec, plus maybe 10-20 secs DB setup/migration. I'm currently seeing 1 test per 7-9 secs, plus 50-60 secs DB setup time (syncdb, not South, since I'm setting SOUTH_TESTS_MIGRAT

Re: How quickly do Django unit tests run?...

2014-08-27 Thread Benjamin Scherrey
Clearly that depends on what your tests do. One of our projects runs ~400 tests in about a minute. If your tests do much database access or have complex setUp/tearDown then that's not going to be as fast of course. The Django 1.7 project I'm working on at the moment takes a total of 12.7 seconds to

Re: How quickly do Django unit tests run?...

2014-08-27 Thread Fred Stluka
Benjamin, OK, Thanks! So roughly how fast would you expect? Hundreds of trivial tests per minute? Thousands per minute? Thanks! --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software,

Re: problem importing blank date using https://github.com/edcrewe/django-csvimport

2014-08-27 Thread Benjamin Scherrey
Unfortunately python's csv capabilities have a fundamental problem - they can't express null/None content. Any empty content will always show up as an empty string ''. So what's being pass to your date constructor is an empty string which is not a valid date format. Best work around is to generally

Re: How quickly do Django unit tests run?...

2014-08-27 Thread Benjamin Scherrey
Something's definitely wrong. Except for the initial setup for the test run (in 1.7 migrations run each time for example), the individual tests should execute as fast as any normal python unit test. On Wed, Aug 27, 2014 at 9:06 PM, Fred Stluka wrote: > How quickly do Django unit tests run? > >

problem importing blank date using https://github.com/edcrewe/django-csvimport

2014-08-27 Thread Joel Goldstick
I'm using an application to import some csv files to my models. This package bombs with the error Exception Value: [u"'' value has an invalid date format. It must be in -MM-DD format."] when the csv has empty data. I've googled, and it looks like there is some discussion on the github page m

Re: multiples database

2014-08-27 Thread n lubkov
but "If you attempt to access a database that you haven’t defined in your DATABASES setting, Django will raise adjango.db.utils.ConnectionDoesNotExist exception." i need a way to access a database without defined it in

multiples database

2014-08-27 Thread n lubkov
Hello, I need to figure if this is possible using django. I have a main database (admin) and a database (clients) for each client. The main database is just a list of clients and the name of the database of each client. The client’s database records all the data of the clients business.

Re: multiples database

2014-08-27 Thread Larry Martell
On Wed, Aug 27, 2014 at 12:31 PM, n lubkov wrote: > Hello, I need to figure if this is possible using django. > > I have a main database (admin) and a database (clients) for each client. > > The main database is just a list of clients and the name of the database of > each client. > > The client’s

Re: muliple pagination on same page

2014-08-27 Thread Camilo Torres
This is basically a DB query issue. Follow these general directions: 1. In your page add a form with a select with the filtering options. 2. In your view, instead of getting all the instance of your model, filter by the selected option. -- You received this message because you are subscribed to

Error importing dbapi2...

2014-08-27 Thread Camilo Torres
If you are running inside a virtualenv, assure you have the sqlite3 module installed inside the v-env, or run toggleglobalsitepackages inside the v-env. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop rec

TypeError: "Source code string cannot contain null bytes"

2014-08-27 Thread Camilo Torres
As it says: you have a null character in your source code script. That is an invalid character for a python script; this does not seems to be related with Django. Open your source code script with a powerfull text editor capable of showing hidden/special characters, then look for a 'null' char

Re: django manage.py commands not displaying

2014-08-27 Thread Collin Anderson
wow. that's an ancient manage.py. now-a-days it looks like this: https://github.com/django/django/blob/master/django/conf/project_template/manage.py -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receivi

Re: Can not add a group to a custom auth user

2014-08-27 Thread Collin Anderson
i assume "groups" is an editable field in the admin. after the admin calls merchant.save(), it then clears out and re-assigns the value of groups based on the data in the input field. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscr

How quickly do Django unit tests run?...

2014-08-27 Thread Fred Stluka
How quickly do Django unit tests run? Mine are taking 7-9 seconds each, even for trivial tests like: self.assertEqual(1 + 1, 2) that are all in the same test class of the same app. Is this typical? Or do I have something misconfigured. Thanks! --Fred -- You received this message becau

Re: django manage.py commands not displaying

2014-08-27 Thread RSS
it`s standart: #!/usr/bin/env python import os import sys import imp try: imp.find_module('settings') # Assumed to be in the same directory. except ImportError: import sys sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've cust

Re: django manage.py commands not displaying

2014-08-27 Thread RSS
> > Can you please post the content of your manage.py? > Cheers > it`s standart: #!/usr/bin/env python import os import sys import imp try: imp.find_module('settings') # Assumed to be in the same directory. except ImportError: import sys sys.stderr.write("Error: Can't find the file '

Re: django manage.py commands not displaying

2014-08-27 Thread marc
Can you please post the content of your manage.py? Cheers Am Dienstag, 26. August 2014 15:28:43 UTC+2 schrieb RSS: > > sorry my bad English > > i`m working on hosting > > project structure: > --myenv > --rsskg.ru > public_html > --virtaulenv-1.9 > > $ cd projects.ru/public_html > $ source ~/m

Re: hosting django app

2014-08-27 Thread ngangsia akumbo
thanks On Tuesday, August 26, 2014 2:28:03 PM UTC+1, wuo...@gmail.com wrote: > > https://www.digitalocean.com/?refcode=2bcdb0958160 > > I paying 5$ in month. Very good support. > > вторник, 26 августа 2014 г., 13:46:12 UTC+4 пользователь ngangsia akumbo > написал: >> >> thanks guys >> >>> >>> >>

Re: Comments in real time

2014-08-27 Thread Aaron Reabow
thank you for the responses, I will have a go at each. I wonder if the angular and websockets approaches could compliment each other... On Friday, 22 August 2014 20:52:26 UTC+2, Julo Waks wrote: > > If you need to save the comments, take a look to django-angular. > Its an integration of angularJ