Django admin - How to disable "Delete each record" option for all the models at once

2012-04-09 Thread girish shabadimath
Hi all, Is there a way to remove "Delete each record" option for all the models in admin? We have option to disable delete_selected action using - "admin.site.disable_action('delete_selected')". Looking for same feature to do on each record (other then altering ModelAdmin's has_delete_permission

django-html5boilerplate error

2012-01-19 Thread girish shabadimath
Hi all, I wanted to use html5 in my website so downloaded django-html5boilerplate ( https://github.com/HowlingEverett/django-html5boilerplate).Now, I am getting following error when I run "python manage.py runserver". Page loads without any error, but gives following 404 errors in terminal:

Re: Support for multiple django annotations?

2012-01-11 Thread girish shabadimath
Try django-cubes regards, gms On Thu, Jan 12, 2012 at 12:05 PM, pradyumna wrote: > I am trying to use Django aggregation for an existing application that > uses the following sql query: > > select sum(count) as sum_country_count, count(country_abbr) as >

Re: Happy new year

2011-12-31 Thread girish shabadimath
New year wishes to everyone,, regards, girish ms On Sun, Jan 1, 2012 at 10:24 AM, Nikhil Verma wrote: > Happy new year to all of you. > > > On Sun, Jan 1, 2012 at 10:22 AM, yati sagade wrote: > >> Happy new year all :) >> >> >> On Sun, Jan 1, 2012

Re: Which IDE should I use for Django?

2011-12-19 Thread girish shabadimath
wingware IDE. On Mon, Dec 19, 2011 at 6:59 PM, Ezequiel Bertti wrote: > pycharm +1 > > > 2011/12/19 Lexa Po > >> SublimeText2 >> +1 >> >> 19 декабря 2011 г. 15:47 пользователь nicolas HERSOG >> написал: >> >> I'm using Aptana >>> >>>

Re: django and eclipse

2010-12-29 Thread girish shabadimath
to change port: django-admin.py runsserver On Thu, Dec 30, 2010 at 6:24 AM, Emmanuel Mayssat wrote: > For the sqlite.db file issue, I changed the settings.py with: > > import os > PROJECT_DIR = os.path.dirname(__file__) > ... > DATABASE_ENGINE = 'sqlite3' > DATABASE_NAME =

newbie question: Error while using tddspry module

2010-12-13 Thread girish shabadimath
Hi all, Im working on djnago 1.2 i need to write tests for django models, what actually do i need to test in models? and also i found this link from google - http://playpauseandstop.github.com/tddspry/writing_tests.html#database-tests-with-databasetestcase

Re: Newbie question: many-to-many model creation

2010-12-10 Thread girish shabadimath
) ABCcheckers = models.ManyToManyField(Checkers, related_name = 'prevent45checkers') now how to create PrepCheckers obj ? On Fri, Dec 10, 2010 at 5:15 PM, Kenneth Gonsalves <law...@au-kbc.org>wrote: > On Fri, 2010-12-10 at 16:55 +0530, girish shabadimath wrote: > > im new to dj

Newbie question: many-to-many model creation

2010-12-10 Thread girish shabadimath
Hi all, im new to django im using django 1.2 i have a model that has one many-to-many relationship field How to create a object of this model ? what to pass for the field that has many-to-many relationship? -- Girish M S -- You received this message because you are subscribed to the Google

Re: Accessing multiple databases from a single django app?

2010-11-28 Thread girish shabadimath
database router is the solution, check this out http://docs.djangoproject.com/en/1.2/topics/db/multi-db/#database-routers On Sat, Nov 27, 2010 at 12:34 AM, Tom Evans wrote: > On Fri, Nov 26,

Re: testing django applications

2010-11-18 Thread girish shabadimath
I will try out that ,, On Thu, Nov 18, 2010 at 6:47 PM, xvga <vgri...@gmail.com> wrote: > I guess one way would be to put xyz.py in own app. Remember though to > have models.py(empty is fine too) in the app dir > > On Nov 18, 2:27 pm, girish shabadimath <girishmss.1.

Re: testing django applications

2010-11-18 Thread girish shabadimath
cation,,but my xyz.py is not present in any of the application. On Thu, Nov 18, 2010 at 4:42 PM, xvga <vgri...@gmail.com> wrote: > Hi Girish, > > why don't you put tests.py in the same dir where xyz.py is? > > > On Nov 18, 11:52 am, girish shabadimath <girishmss.1.

testing django applications

2010-11-18 Thread girish shabadimath
Hi all, im working on a django project XXX, the directory structure is as follows: - project XXX -abc models.py views.py tests.py urls.py +docs +libs +logs +thirdparty +corns - AAA xyz.py aaa.py

DatabaseError: (1146, "Table 'test_XXX.django_content_type' doesn't exist")

2010-10-28 Thread girish shabadimath
Hi all, im re-sending this mail, am i missing any thing here? im using django 1.2 there are two databases involved in my project (default and XYZ (used only for migration)) i use a consistant MySQL storage type for all apps, all models (including m2m). This is done by registering a post-syncdb

Database error: Table 'test_XXX.django_content_type' doesn't exist

2010-10-28 Thread girish shabadimath
Hi all, im using django 1.2 there are two databases involved in my project (default and XYZ (used only for migration)) i use a consistant MySQL storage type for all apps, all models (including m2m). This is done by registering a post-syncdb signal in management.py file which converts all tables

Re: How to display image in django template

2010-10-27 Thread girish shabadimath
Another way for static images: Its good to have all html related stuffs (html files, images, ..etc) in one directory (ex: html directory) In settings.py there is a field called TEMPLATE_DIR, add the absolute-path to the html directory to this filed ex: TEMPLATE_DIR = 'path-to-html-directory', in

Re: How WEB SERVICE works?

2010-10-26 Thread girish shabadimath
sorry friends, ignore this On Tue, Oct 26, 2010 at 4:31 PM, Tom Evans <tevans...@googlemail.com> wrote: > Bad netiquette. > > Please don't send unsolicited attachments to mailing lists. If it is > really that riveting, provide a link. > > On Tue, Oct 26, 2010 at 11:5

Re: Django and Flux

2010-10-18 Thread girish shabadimath
Thanks Tim, got some idea On Mon, Oct 18, 2010 at 6:01 PM, girish shabadimath < girishmss.1...@gmail.com> wrote: > Hi Venkatraman, > *Thanks for the correction -- 'Flex' and by "combine" in mean using django > and flex to create application.* > > i googled

Re: Django and Flux

2010-10-18 Thread girish shabadimath
t; > On Mon, Oct 18, 2010 at 5:37 PM, girish shabadimath < > girishmss.1...@gmail.com> wrote: > >> >> i am newbie to django and wanted to start with one django application. >> >> Is it possible to combine django and adobe flux builder? >> >> i

Django and Flux

2010-10-18 Thread girish shabadimath
Hi Django folks, i am newbie to django and wanted to start with one django application. Is it possible to combine django and adobe flux builder? i thought of using flux as front-end and django as back-end. what are the pros and cons of this approach? -- Girish M S -- You received this

Re: SUPPORTS_TRANSACTIONS Error while running tests

2010-10-08 Thread girish shabadimath
t 8, 2010 at 1:34 PM, girish shabadimath > <girishmss.1...@gmail.com> wrote: > > Hi all, > > i looked into the setup_databases() code, here it basically checks for > > MIRROR,,if db is a mirror ,then it simply points to it or else creates > test > > db,,,where

Re: SUPPORTS_TRANSACTIONS Error while running tests

2010-10-07 Thread girish shabadimath
there..?,, im a newbie to django,,so don't mind if it sounds simple ... On Thu, Oct 7, 2010 at 12:41 PM, girish shabadimath < girishmss.1...@gmail.com> wrote: > Hi Russ, > > Thanks for the reply > > > On Thu, Oct 7, 2010 at 11:09 AM, Russell Keith-Magee < >

SUPPORTS_TRANSACTIONS Error while running tests

2010-10-06 Thread girish shabadimath
Hi all, im using django 1.2 i dont want django to create test_db for testing, instead should use the main database i have override run_tests method to do unit tests,,, here is the run_tests code: class Custom_TestSuiteRunner(DjangoTestSuiteRunner): def run_tests(self, test_labels,

Re: Django in Depth

2010-10-06 Thread girish shabadimath
Hi Paul, http://djangocon.blip.tv/file/3322277/ On Thu, Oct 7, 2010 at 9:55 AM, Gath wrote: > Guys, > > Please someone out there help me with a download link of James Bennett > video on "Django in Depth" that was presented during pycon2010. > > All the links am getting

SUPPORTS_TRANSACTIONS Error while running tests

2010-10-06 Thread girish shabadimath
Hi all, im using django 1.2 i have override run_tests method to do unit tests,,, i dont want django to create test_db for testing, instead should use the main database here is the run_tests code: class Custom_TestSuiteRunner(DjangoTestSuiteRunner): def run_tests(self, test_labels,

Re: IDE for Python/django

2010-09-27 Thread girish shabadimath
Hi all, Thanks for the replies,,i got bunch of IDEs.. will figure out which is best for my work environment On Tue, Sep 28, 2010 at 7:51 AM, Brandon Taylor wrote: > Aptana Studio 2 & 3 Beta + PyDev on Linux makes a great dev > environment for Django. You can create

Re: IDE for Python/django

2010-09-27 Thread girish shabadimath
> On Mon, Sep 27, 2010 at 2:52 PM, Masklinn <maskl...@masklinn.net> wrote: > >> On 2010-09-27, at 14:51 , girish shabadimath wrote: >> > hi all, >> > >> > is there any IDE for Python/Django ? >> Yes. >> >> -- >> You rec

Re: IDE for Python/django

2010-09-27 Thread girish shabadimath
thanks a lot... On Mon, Sep 27, 2010 at 6:28 PM, bagheera <neost...@go2.pl> wrote: > Dnia 27-09-2010 o 14:51:15 girish shabadimath <girishmss.1...@gmail.com> > napisał(a): > > > hi all, >> >> is there any IDE for Python/Django ? >> >> &g

Re: IDE for Python/django

2010-09-27 Thread girish shabadimath
im using ubuntu machine so which IDE is best suited for this machine. On Mon, Sep 27, 2010 at 6:23 PM, girish shabadimath < girishmss.1...@gmail.com> wrote: > can u please tell me which is it.. > > > On Mon, Sep 27, 2010 at 6:22 PM, Masklinn <maskl...@masklinn.net> w

Re: IDE for Python/django

2010-09-27 Thread girish shabadimath
can u please tell me which is it.. On Mon, Sep 27, 2010 at 6:22 PM, Masklinn <maskl...@masklinn.net> wrote: > On 2010-09-27, at 14:51 , girish shabadimath wrote: > > hi all, > > > > is there any IDE for Python/Django ? > Yes. > > -- > You received

IDE for Python/django

2010-09-27 Thread girish shabadimath
hi all, is there any IDE for Python/Django ? -- Girish M S -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to

Re: Request object problem

2010-09-22 Thread girish shabadimath
ya correct, now i got complete picture of client.get() and RequestFactory, On Wed, Sep 22, 2010 at 5:28 PM, bruno desthuilliers < bruno.desthuilli...@gmail.com> wrote: > On 22 sep, 13:17, girish shabadimath <girishmss.1...@gmail.com> wrote: > > Thanks for the reply, actuall

Re: Request object problem

2010-09-22 Thread girish shabadimath
/ ) On Wed, Sep 22, 2010 at 4:24 PM, bruno desthuilliers < bruno.desthuilli...@gmail.com> wrote: > On 22 sep, 11:31, girish shabadimath <girishmss.1...@gmail.com> wrote: > > hi all, > > > > i used django snippethttp://djangosnippets.org/snippets/963/ > > >

Request object problem

2010-09-22 Thread girish shabadimath
hi all, i used django snippet http://djangosnippets.org/snippets/963/ and successfully created request object i checked the response.status_code its giving 200 i checked response.content it matches with the browser source code when i issue *response.template* it gives error and*

How to use the given snippet..?

2010-09-21 Thread girish shabadimath
hi all, how to make use of this snippets http://djangosnippets.org/snippets/963/ i have a view function def demand(request, id, template = 'hello.html'): i want to test dis using the above snippets,, i copied the snippet in my localmachine when i use django

Re: Unit testing in django without using test client

2010-09-16 Thread girish shabadimath
hi Paul, thanks for d reply,,,but im new to python n django,,,dint do ne python unit testing before,,can u plz give me some links or hints to start with... On Thu, Sep 16, 2010 at 8:09 PM, Paul Winkler <sli...@gmail.com> wrote: > On Sep 16, 10:11 am, girish shabadimath <girishmss.1.

Re: Unit testing in django without using test client

2010-09-16 Thread girish shabadimath
thanks for reply, actually i used unit test to test urls and other view functions,,,there is a module called Client() in django which acts as a browser to test urls,,, my problem is ,i want to test other methods in my project,,, how to do so, without making use of django's test client..?..

Unit testing in django without using test client

2010-09-16 Thread girish shabadimath
hi,,, i need to do unit testing in one of d django project, is there any other way to test functions ( or methods ) without using test client..? -- Girish M S -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Response object problem

2010-09-13 Thread girish shabadimath
hi all, im in the task of testing django app.. when i do the simple url tests and check for status_code it gives me 200 which is correct,, but when i use response.template it gives nothing though i use template in the view function...?,,,reason..? this may sound simple for many,,,but plz help

Response object problem

2010-09-13 Thread girish shabadimath
hi all, im in the task of testing django app.. when i do the simple url tests and check for status_code it gives me 200 which is correct,, but when i use response.template it gives nothing though i use template in the view function...?,,,reason..? this may sound simple for many,,,but plz help

Django --Unit testing view functions

2010-09-06 Thread girish shabadimath
hi,,, anybody help me with testing django views,,, * wat all things need to be tested for view functions..? * little bit confused about d usage of these two-- self.failUnlessEquals(XXX, XXX) and self.assertEquals(XXX, XXX) both seems to be same for me,, * any related books or links is

Re: django,how to read data from database when db has large volume of data

2010-09-02 Thread girish shabadimath
oh,,,thanks a lot for d reply,,, On Thu, Sep 2, 2010 at 4:33 PM, Daniel Roseman <dan...@roseman.org.uk>wrote: > On Sep 2, 9:49 am, girish shabadimath <girishmss.1...@gmail.com> > wrote: > > actually i wanted to access values from database and use those values

Re: django,how to read data from database when db has large volume of data

2010-09-02 Thread girish shabadimath
buddy did i convince u..?,,,reply soon...solution to my problem,, On Thu, Sep 2, 2010 at 2:19 PM, girish shabadimath <girishmss.1...@gmail.com > wrote: > actually i wanted to access values from database and use those values in > url unittesting,,, > > like: > response =

Re: django,how to read data from database when db has large volume of data

2010-09-02 Thread girish shabadimath
actually i wanted to access values from database and use those values in url unittesting,,, like: response = self.client.get('def/defect/', {'*ID*':*id*}) self.failUnlessEqual(response.status_code, 200) how to get id from database..?,,,and also i want this test to be done for each id in