Re: Read write config from a file. How?

2011-04-02 Thread hollando
Hi! is your file in 'ini' format or simply in 'py'? > > > Regards, > > Eugeny > > > 02.04.11, 10:34, "hollando" : > > >> Hi, some of my config store in a file not in settings.py. Are there > >>  any build in library doing that? Thanks &

Read write config from a file. How?

2011-04-01 Thread hollando
Hi, some of my config store in a file not in settings.py. Are there any build in library doing that? Thanks -- 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 t

How to group rows with same foreign key in change list table

2011-03-03 Thread hollando
I'm trying to group rows with same foreign key in admin site change list table maybe with same color or something like a sub table which ever is easier for implementation. Also I'm trying to do a button like "more info" and while hit the button, the table will be expand and show the foreign key ite

Database setting from a configuration file.

2011-02-17 Thread hollando
Hi, I tried to put database setting in a ConfigParser format file and parse that file from command line. I modified manage.py a little bit after loading setting, reinitial DATABASES['default'] with my configure parameter. However, when it comes to execute_manager, it gets data from settings.py agai

Form fields intial from http GET/POST.

2011-01-27 Thread hollando
I want to make things simple and following django style. So here's my question In the view, I have one form for search input and one pagination table list results. The form has quite some fields mostly CharField. When submit http POST/GET, I want to update table list, but don't want to clean up my

Re: Custom ModelAdmin form for distinct logged users

2011-01-27 Thread hollando
You can use proxy models. Refer to http://stackoverflow.com/questions/2223375/multiplue-modeladmins-views-for-same-model-in-django-admin On 1月27日, 下午4时22分, Mario8k wrote: > Hello, > > How can I customize a form by the user who is logged in? > For example, if the user is_superuser(), i need to dis

Advanced search view in admin site.

2011-01-25 Thread hollando
I known that in admin.py I can put in search_fields with parameters I want for search. This works fine. But I want another View just like advanced search in google. There are boxes for me to specific each field. Like I can choose a date etc. And I can give a range for my numeral fields. Or even do

How to add a top menu to admin site.

2011-01-20 Thread hollando
I'm building my application with the admin site. As a start point, it make things so easy. However, I want to add a top menu that links to my apps and some of the dynamic pages. My top menu is kinda simple. Unlike treemenu, it's just flat menu with a few items. One solution I can think of is by mod

Staticstic app, ask for idea.

2010-08-30 Thread hollando
I want to make a statistic app. There is a float field in my model(table).I want to use a chart to show what's the percentage in each range. Any suggestion to make such and app that can fit into django model. Thanks. -- You received this message because you are subscribed to the Google Groups "D