Re: ANN: Django 1.1.2 and Django 1.2 released

2010-05-17 Thread rahul jain
Awesome job...but I discovered just one problem. Select all missing from admin panel. So now i cannot select all the objects if i want to from admin panel. It was fine on django 1.1. Its not fine on django 1.2 nor in the development versions. --RJ On Mon, May 17, 2010 at 7:11 PM, Joshua Partogi w

django filters

2010-05-19 Thread rahul jain
Hi, In my model, I have set up one filter which helps in filtering out the results on admin Panel. The way its works now that its displays the old objects first and then the most recent ones. Is it possible to make it other way around ?. Let me know. --RJ -- You received this message because y

is it possible ?

2010-05-20 Thread rahul jain
Hi Everyone, I would like to implement different views in admin panel based on the user. if the user is any other user apart from admin then for all those models, the user should just be able to see those objects,( no change, delete and add). Those users should also not see the select boxes or b

Re: is it possible ?

2010-05-20 Thread rahul jain
lf.root_query_set > else: > if isinstance(f,models.BooleanField) and (request.user.is_superuser == > False): > self.root_query_set = self.root_query_set.exclude(is_deleted = 'True') > else: > self.root_query_set = self.root_query_set > > On 5月21日, 下午12时01分, rahul

Re: is it possible ?

2010-05-23 Thread rahul jain
> admin/views/main.py ,and we use ModelAdmin so change_view function can > direct to be used. > > On 5月21日, 下午2时08分, rahul jain wrote: >> Hi Danfi, >> >> Thanks for your quick response. But can you explain a little more how >> can we connect ChangeList class wi

view permission on django admin

2010-05-24 Thread rahul jain
Hi Django, I know this has been discussed lot of times but not implemented on admin because django developers think that django admin will not be just used for viewing. Anyways, I need it for my model. I went through the path but was not able to solve this problem. http://code.djangoproject.com

Just one action on all the objects

2010-05-25 Thread rahul jain
Hi Django, Can i run an action without any need to select all. It should by default select everything, basically all the objects. No separate checkbox for every object, no select all. Also, possibly no choices, just a single button which say "action" which should perform that action on all the obj

disabling dashboard 'recent actions'

2010-05-25 Thread rahul jain
Hi Django, How to disable the dashboard ('recent actions') on django admin main page ? --RJ -- 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, sen

django-admin-tools

2010-05-29 Thread rahul jain
Hi Django, Anybody able to ran django-admin-tools successfully. I followed the instructions from this website http://packages.python.org/django-admin-tools/0.2.0/quickstart.html#quickstart I was expecting a new theme for dashboard and index page after hitting admin link but its still the same.

Re: django-admin-tools

2010-05-31 Thread rahul jain
7;, include('---.foo.urls')), # Uncomment the admin/doc line below and add 'django.contrib.admindocs' # to INSTALLED_APPS to enable admin documentation: # (r'^admin/doc/', include('django.contrib.admindocs.urls')), # Uncomment t

django problems

2010-05-31 Thread rahul jain
Hi Django, I have few questions and would like to seek your help. Q1) I have defined lot of admin actions and some of the actions require creating threads. So I split my long models.py into set of files. But whenever I try to import anything from models python complains ? ex: if i have defined

django python pi-charts/graphs

2010-06-01 Thread rahul jain
Hi Django, I would like to represent my db/model content in the form of pi-charts/graphs. Is there any django python module that already exists ? --RJ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-

admin modifications

2010-06-01 Thread rahul jain
Hi Django, I am not sure how this could be done, so on the admin display, on one of the columns I would like to provide select tab. If i select one of the options, it should update some other column on the display. Firstly, whats the clean way for adding select boxes on the admin display, it coul

Re: admin modifications

2010-06-04 Thread rahul jain
Hi Daniel, Yes I know about admin actions but I would like to provide a select option/modify button on every rows inside my admin display. Not just at one place. --RJ On Wed, Jun 2, 2010 at 1:05 AM, Daniel Roseman wrote: > On Jun 2, 7:56 am, rahul jain wrote: >> Hi Django, >> &

django and android application

2010-06-05 Thread rahul jain
Hi Django, I would like to create an android application which talks to Django. If I hit a url on my phone, it hits one of my views (urlconf), that view processes the request and give the result back to the android app. Anybody in the community have any knowledge how to proceed with it Firstlty,

new objects display first on admin filter display

2010-06-06 Thread rahul jain
Hi Django, How to display ordering on admin filter in reverse order. Its a char Field I would like to display new objects created first. --RJ -- 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...@go

Re: new objects display first on admin filter display

2010-06-07 Thread rahul jain
, Daniel Roseman wrote: > On Jun 7, 4:35 am, rahul jain wrote: >> Hi Django, >> >> How to display ordering on admin filter in reverse order. Its a char Field >> >> I would like to display new objects created first. >> > > Well, which? Do you want it reverse

no checkboxes for read only objects

2010-06-07 Thread rahul jain
Hi Django, Is this possible ? On change list page, I would like to provide check boxes only for the objects which could be effected by admin actions. But for some of the objects I would not like to provide admin actions since I don't wont them to be modified. check box if we can modify the objec

Re: ordering objects in the admin area

2010-06-08 Thread rahul jain
Could this be used to retrieve new objects first ?. On Tue, Jun 8, 2010 at 6:41 AM, Alessandro Pasotti wrote: > 2010/6/8 grimmus >> >> Hi, >> >> I have a staff app that lists staff photos and their names. The client >> would like to be able to re-order these in the admin area easily. >> Ideally

django's default id (auto primary key) sorting

2010-06-08 Thread rahul jain
Hi Django, I tried lots of different ways to get my ids listed in ascending order (1 - x). But it always displays id's (x -1). This is what I tried So, I am talking about auto increment id which is generated by default by Django. on models admin ordering = ('-id',) also i tried on class meta

removing "All" from django admin filters

2010-06-08 Thread rahul jain
Hi Django, I would like to remove "All" from filters. It becomes very confusing when i change back and forth between pages. Since it always gets back to "All" instead of keeping the state. Whats a clean way to do it ? --RJ -- You received this message because you are subscribed to the Google

how to fetch query string in the view

2010-06-08 Thread rahul jain
HI Django, So I am generating a url of the form http://test/?test1=test&test2=test In my views how to process the query string ?test1=test&test2=test. I mean how to access test1 and test2 values. --RJ -- You received this message because you are subscribed to the Google Groups "Django users

not able to recognize non-default python files in app + project directory

2010-06-10 Thread rahul jain
Hi Django, In my app directory, I splitted my models and views.py into multiple files since they start becoming very long but django is not able to recognize those files . It only recognizes models.py, views.py, tests.py (default ones). So In my other files If i do this from ..models import I

Re: not able to recognize non-default python files in app + project directory

2010-06-10 Thread rahul jain
> > Hopefully this makes sense, if not I can try to be more clear. > > Dan Harris > dih0...@gmail.com > > > On Jun 10, 4:46 pm, rahul jain wrote: >> anyone on this ?? >> >> --RJ >> >> >> >> On Thu, Jun 10, 2010 at 11:34 AM, rahul jain wrote

Re: not able to recognize non-default python files in app + project directory

2010-06-10 Thread rahul jain
anyone on this ?? --RJ On Thu, Jun 10, 2010 at 11:34 AM, rahul jain wrote: > Hi Django, > > In my app directory, I splitted my models and views.py into multiple > files since they start becoming very long but django is not able to > recognize those files . > It only re

Re: not able to recognize non-default python files in app + project directory

2010-06-11 Thread rahul jain
Yes they are in the same directory. How to use __initial__.py ? On Fri, Jun 11, 2010 at 3:38 AM, Scott Gould wrote: > Did you put Test1.py and Test2.py into a "models" directory where > models.py would normally be, and add an __initial__.py file to it? > > On Jun 10, 5:18

Re: not able to recognize non-default python files in app + project directory

2010-06-11 Thread rahul jain
functions do .objects. all and then run python manage.py runserver. I think it will break. Let me know what i am missing or will __initial__.py will solve this problem ?. On Fri, Jun 11, 2010 at 6:53 AM, rahul jain wrote: > Yes they are in the same directory. How to use __initial__.py ? >

Re: not able to recognize non-default python files in app + project directory

2010-06-11 Thread rahul jain
anage.py runserver. I think it will break. --RJ On Fri, Jun 11, 2010 at 7:04 AM, rahul jain wrote: > @bruno: yes functions. > > So in some other file I want to use models methods like > > .objects. all > > For that I have to import the . But I am not able to. > > Impo

Re: not able to recognize non-default python files in app + project directory

2010-06-11 Thread rahul jain
@also I meant .objects. all(). It will give import error that cannot be imported. On Fri, Jun 11, 2010 at 7:09 AM, rahul jain wrote: > Yes I have the __init__.py inside my app directory. Also, all my split > files are inside the same directory. If possible can you test > > Crea

Re: not able to recognize non-default python files in app + project directory

2010-06-11 Thread rahul jain
Hi Tim, Here is my structure app |-- __init__.py |-- models.py (all my models) |-- auth.py (python functions referencing models defined in models.py) |-- blogs.py (python functions referencing models defined in models.py) |-- views.py (python functions referencing models defined in models.py)

Re: not able to recognize non-default python files in app + project directory

2010-06-11 Thread rahul jain
It was rw-r--r-- . I also modified it to 777 by" chmod -R 777". But did not fix my problem. This is the error which I am getting ImportError: cannot import name --RJ On Fri, Jun 11, 2010 at 7:59 AM, Tom Evans wrote: > On Fri, Jun 11, 2010 at 3:47 PM, rahul jain wrote: >>

admin actions

2010-06-16 Thread rahul jain
Hi, I would like to display javascript alert boxes when something goes wrong during admin actions. Is it possible ? --RJ -- 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 uns

admin filters getting reset after admin action

2010-06-16 Thread rahul jain
Hi there, I have some filters set-up on admin page. As soon as I perform admin action. All filters are getting reset. Is this is a bug from framework ? --RJ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: admin filters getting reset after admin action

2010-06-19 Thread rahul jain
ek wrote: >> >> > On Jun 17, 5:44 am, rahul jain wrote: >> >> > > Hi there, >> >> > > I have some filters set-up on admin page. As soon as I perform admin >> > > action. All filters are getting reset. >> >> > > Is this

Re: list_editable and save changes to individual row/cell

2010-06-27 Thread rahul jain
Good question. Anyone on this ? On Fri, Jun 25, 2010 at 9:48 AM, Jason Wang wrote: > Hi all, > > Does anyone know if there is a way to save changes on a per row/cell > basis for forms with list_editable in django admin? I would like to > have a button for each row and each cell to do that. > > Th

Re: Just one action on all the objects

2010-06-27 Thread rahul jain
43 AM, tom wrote: > In the same manner - 'check all' only check the currently visible > results (100 by default) in the change list page. > I want that check all will actually check all the results, even the > tuples in the next pages... > > anyone? > > thanks! >

None field : Admin save setting it to empty value instead of NULL during save

2010-06-29 Thread rahul jain
Hi there ! One of my model fields attribute is set to null="true" to allow None values. But if I use admin to save those model objects and leave it blank, it saves blank value instead of None. How to fix this ? And Blank value is not None. Blank is "" (empty) but None is NULL in databases. -RJ

list display based on logged-in user

2010-07-07 Thread rahul jain
Hi there ! I would like to display model fields based on the logged-in user. If user is restricted user list_display = (field1, field2) else list_display = (field1, field2, field3, field4) How is it possible ? --RJ -- You received this message because you are subscribed to the Google Group

Re: list display based on logged-in user

2010-07-08 Thread rahul jain
 pm, rahul jain wrote: >> Hi there ! >> >> I would like to display model fields based on the logged-in user. >> >> If user is restricted user >> >> list_display = (field1, field2) >> >> else >> >> list_display = (field1, field

Re: list display based on logged-in user

2010-07-08 Thread rahul jain
anyone on this ? On Thu, Jul 8, 2010 at 11:56 AM, rahul jain wrote: > I am not sure what I am doing wrong but this should work > > class TestAdmin(admin.ModelAdmin): > >        list_display = (field1, field2, field3, fileld4, field5,field6) > > > class C

Re: list display based on logged-in user

2010-07-09 Thread rahul jain
       if condition: >                self.list_display = custom_list >       return super(CustomAdmin, self).changelist_view(...) > > On Jul 9, 6:16 am, rahul jain wrote: >> anyone on this ? > > -- > You received this message because you are subscribed to the Google Gr

Re: None field : Admin save setting it to empty value instead of NULL during save

2010-07-13 Thread rahul jain
*args, **kwargs): >        if self.naughty_field == '': >            self.naughty_field = None >        super(YourModel, self).save(*args, **kwargs) > > Euan > > On Jun 29, 4:15 pm, rahul jain wrote: >> Hi there ! >> >> One of my model fields attribute is set to null="t

Re: None field : Admin save setting it to empty value instead of NULL during save

2010-07-15 Thread rahul jain
anyone on this ? On Tue, Jul 13, 2010 at 2:44 PM, rahul jain wrote: > Could it be generic ?. I mean i don't want to specify self.naughty_field. > > How to do it for self.any_field ? > > RJ > > On Tue, Jun 29, 2010 at 9:29 AM, euan.godd...@googlemail.com >

Re: list display based on logged-in user

2010-07-15 Thread rahul jain
uot;. What could be missing now ? -Rahul On Fri, Jul 9, 2010 at 2:50 PM, rahul jain wrote: > yup that's 100% correct :) > > Rahul > > On Fri, Jul 9, 2010 at 10:27 AM, raj wrote: >> You are trying to override change_view instead of changelist_view. >> Otherwise you

python threading admin actions weird problem

2010-08-14 Thread rahul jain
Hi there ! Some weird problem happening with admin actions. My admin action create threads which access a shared variable. Those threads change the state of the variable for ex check = False (a boolean) One of the thread sets it to True At this time I am done with that entire request. Now if

Re: python threading admin actions weird problem

2010-08-14 Thread rahul jain
Sorry one more thing Sometimes it starts with check = False Its happening at random time. --RJ On Sat, Aug 14, 2010 at 7:36 PM, rahul jain wrote: > Hi there ! > > Some weird problem happening with admin actions. > > My admin action create threads which access a shared va

change ordering of objects/rows on change list view on admin

2010-09-19 Thread rahul jain
Hi there !, How to change ordering of objects/rows on change list view on admin ? --Rahul -- 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

Re: change ordering of objects/rows on change list view on admin

2010-09-19 Thread rahul jain
I mean graphically/directly on the UI itself. On Sun, Sep 19, 2010 at 2:29 PM, Sævar Öfjörð wrote: > > http://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.ordering > > On Sep 19, 10:56 pm, rahul jain wrote: > > Hi there !, > > >

list_editable asynchronous

2010-11-27 Thread rahul jain
How to make list _editable asynchronus ? I would not like to save by pressing save button. Instead, as soon as I modify the wizard it should save by itself. Thanks. Rahul -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Tracking model object changes

2010-11-27 Thread rahul jain
Found very similar projecst but not sure which one to use it. Would like to track the modified object , modified time and the user who modified it. - Django Audit for MongoDB - AuditTrail - AuditLog

celery workers not consuming messages

2012-07-17 Thread rahul jain
All, I have started celery on development server using this: python manage.py celeryd -E --loglevel=info I can see from rabbitmq management UI that its receiving messages under ready Queue. Screenshot attached. Rabbitmq logs though sometimes print it and sometimes not =INFO REPORT 17-Jul-

Re: ANN: django-socketio 0.1.0 released

2012-10-07 Thread rahul jain
Hi Stephen, I am having issues with the installation. Is this project still active? is there any goggle group? I just downloaded the latest file. Then i tried running the example chat application. I can see the messages from the client. However, events inside event.py are never getting fired. I t

Re: ANN: django-socketio 0.1.0 released

2012-10-09 Thread rahul jain
Can someone please let me know how to fix this? On Sun, Oct 7, 2012 at 5:35 PM, rahul jain wrote: > Hi Stephen, > > I am having issues with the installation. Is this project still > active? is there any goggle group? > > I just downloaded the latest file. Then i tried running

Re: runserver namespace problem?

2011-12-27 Thread rahul jain
Having the same problem "Received unregistered task of type blah" . Can someone help ? On Sun, Nov 13, 2011 at 5:26 PM, Ken wrote: > Does anybody have any idea? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group,

MySQL limit sub-query problem

2012-01-26 Thread rahul jain
All, I have a query. Its working fine on sqlite server but not working fine on mysql server. This is the error message on mysql server: "This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery" This is the query: inner_q = obj_unassigned.values_list('pk', flat=True)[:diff]

Re: MySQL limit sub-query problem

2012-01-26 Thread rahul jain
Works! Great! thanks!!! Lazy querysets! On Thu, Jan 26, 2012 at 12:32 PM, Alasdair Nicol wrote: > Hi RJ, > > > On 26/01/12 20:10, rahul jain wrote: >> >> All, >> >> I have a query. Its working fine on sqlite server but not working fine >> on mysql server

change the displayed name of the app in the Django admin?

2011-04-20 Thread rahul jain
Can you change the displayed name of the app in the Django admin? for ex: Select "app_name" to change Thanks. Rahul -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubsc

hidden rows common elements also visible on list filters

2011-05-04 Thread rahul jain
All, Hidden rows elements also visible on list filters ? ex: I have a list filter on one of the columns , list filter for that column displays all the distinct values, but the problem is that few rows i have disabled. But list filter still displays those rows as well. How to fix this ? Thanks

Hidden rows elements also visible on list filters

2011-05-04 Thread rahul jain
All, How to fix this ? Hidden rows elements also visible on list filters. ex: I have a list filter on one of the columns , list filter for that column displays all the distinct values, but the problem is that few rows i have disabled. But list filter still displays those rows as well. How to f

Re: Hidden rows elements also visible on list filters

2011-05-25 Thread rahul jain
Yes I am referring to django admin list filter, one on the side. class Admin(model.Admin): list_filter = (column1, column2) so for instance column1 has 6 values (a, b,b,b,c,e). Then list filter shows a,b, c,e. like this By column1 show all a b c e Now if i hide some rows based on the logge

python threads and django views

2011-05-30 Thread rahul jain
All, I would like to know how to do this? For example, in my views I have to visit 10,000 websites (make url connection). Each of those connections are independent connections. I would like to hit them as quickly as possible. Then return an http-response with some results. I have few questions

snippet

2011-07-25 Thread rahul jain
Tried this snippet but not working http://djangosnippets.org/snippets/2306/ Anyone else tried it, I would like to drag and drop rows on django admin. Thanks. RJ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send emai

drag and drop rows on django admin

2011-07-25 Thread rahul jain
Tried this snippet but not working http://djangosnippets.org/snippets/2306/ Anyone else tried it, I would like to drag and drop rows on django admin. Thanks. RJ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send emai

Re: drag and drop rows on django admin

2011-07-30 Thread rahul jain
On Tue, Jul 26, 2011 at 11:30 PM, Derek wrote: > On Jul 26, 11:03 am, Tom Evans wrote: > > On Tue, Jul 26, 2011 at 6:32 AM, rahul jain > wrote: > > > Tried this snippet but not working > > > > >http://djangosnippets.org/snippets/2306/ > > > >

Foreign key Real world use case Q

2010-12-26 Thread rahul jain
Foriegn Key Use case Class Item(): desc = models.StringFrield() Class Menu(): type = models.StringField(default = "Italian") ///cuisine type item_list = models.ForiegnKey(Item) So for each cuisine I have some list of items for ex: menu type 1 for ex have 5 items (it

how to view the uploaded files

2010-12-29 Thread rahul jain
How to view the uploaded files on admin ? Thanks. --RJ -- 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 django-users+unsubscr...@

how to raise an error on django admin

2011-01-03 Thread rahul jain
Hi, How to display an error in django admin (the error should be displayed in red just like in forms) Something of this form http://groups.google.com/group/django-users/browse_thread/thread/68d4ea1915654134/447ef8473cf86672 Thanks. Rahul -- You received this message because you are subscribe

Re: Using new messages framework within built-in admin ?

2011-01-03 Thread rahul jain
anyone on this ? How to display error messages ? On Thu, May 27, 2010 at 3:49 AM, Nicolas Steinmetz wrote: > Nobody on this issue ? > > On 21 mai, 15:46, Nicolas Steinmetz wrote: > > Hi, > > > > For some actions I made from the Django built-in admin, I would like > > to improve the user experie

how to map admin actions with shortcut keys

2011-01-09 Thread rahul jain
How to map admin actions with shortcut keys ? I have an action to perform on rows (objects) which changes the value of one of the columns(fields) to "x" and some to "y" and some to "z". I would like to save some time by not going through the normal route (after selecting the rows, selecting from t

how to remove add and change links on admin dashboard

2011-01-22 Thread rahul jain
Hi Guys, how to remove add and change links + icons on admin dashboard ? Thanks. Rahul -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send em

standalone server

2011-02-08 Thread rahul jain
Hi Guys, I would like to create a standalone server using django environment which accepts/receive inputs through socket connections. After that some processing and then updating the database. I created one python server and set the environment variable but I figured out that as soon as somethin

modify existing widget

2011-03-20 Thread rahul jain
All, How to edit existing foreign key/manytomany field widget. I would like to remove that + sign (link to add more enteries). [image: manytomany.png] Please let me know. Thanks. Rahul -- You received this message because you are subscribed to the Google Groups "Django users" group. To post

how to have different logo for django admin based on URL

2011-04-08 Thread rahul jain
Anyone ever tried to have different logos for admin based on the URL Like http://url/comp1 use comp1 logo for django admin always http://url/comp2 use comp2 logo for django admin always Thanks. Rahul -- You received this message because you are subscribed to the Google Groups "Django use

css issues

2011-04-09 Thread rahul jain
All, I copied the media directory from django project into my site project. This is what it looks like now mysite/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscr

Re: css issues

2011-04-09 Thread rahul jain
On Sat, Apr 9, 2011 at 7:34 PM, rahul jain wrote: > All, > > I copied the media directory from django project into my site project. > This is what it looks like now > > mysite/ > > > > > -- You received this message because you are subscribed to the Google Gro