Re: Django admin stops showing all apps

2009-11-04 Thread Diego Ucha
Hello Greg, What does Apache writes in his log when you try to access the admin when it is unreachable? []s, Diego Ucha http://www.scientificcircle.com/ On 1 nov, 20:52, Greg wrote: > Hi all, > > I have a very strange problem with one of my django sites - when I > start apache

Re: Admin Pages and ManyToMany Relationships

2008-10-01 Thread Diego Ucha
Will, You see the entire list, but which group is selected? []s Diego Ucha http://www.diegoucha.com/ On 1 out, 11:54, WillF <[EMAIL PROTECTED]> wrote: > I have a Profile model that has a manytomany relationship with a model called > Group. When I look at the admin pages for a spec

Re: Form controls for choosing from long lists

2008-09-26 Thread Diego Ucha
Donn, You could use the filter_(horizontal|vertical) solution available on Admin. For more details: http://docs.djangoproject.com/en/dev/ref/contrib/admin/#filter-horizontal []s, Diego Ucha http://www.diegoucha.com/ On 26 set, 18:28, bruno desthuilliers <[EMAIL PROTECTED]> wrote: >

Re: Having a instance of a model object instantiate another

2008-05-25 Thread Diego Ucha
tic of how many Checkboxes exist, for example, it will be much more easier. What do you think? []s Diego Ucha On Apr 25, 7:27 pm, jrmorrisnc <[EMAIL PROTECTED]> wrote: > So, I have it doing what I want now: > > > class Event(models.Model): > date = models.D

Re: design patterns

2008-05-23 Thread Diego Ucha
There is also this thread: http://groups.google.com/group/django-users/browse_thread/thread/a26d805427aa643f/249463a6f63958f7 []s Diego Ucha On 23 maio, 21:56, "Juanjo Conti" <[EMAIL PROTECTED]> wrote: > I do it with jquery (client side) getJSON funcio

Re: class diagram from models.py

2008-05-23 Thread Diego Ucha
generate an ER Diagram with your statements. []s Diego Ucha On 23 maio, 15:48, "Juanjo Conti" <[EMAIL PROTECTED]> wrote: > Thanks: > > http://code.google.com/p/django-command-extensions/http://django-command-extensions.googlecode.com/svn/trunk/extensions/.

Re: how to make two fields appear on a single line

2008-05-21 Thread Diego Ucha
blem. []s Diego Ucha On 21 maio, 08:17, Juanjo Conti <[EMAIL PROTECTED]> wrote: > amar escribió: > > > HI, > > I am developing a simple project on django and now i want to make two > > text boxes appear on a single row, please help me > > What are your doin

Re: Django Json server testing, new to Django

2008-05-20 Thread Diego Ucha
Puff, I recommend reading "The Development Server" section from Chapter 2 of Django Book (http://www.djangobook.com/en/1.0/chapter02/). "The development server can handle only a single request at a time reliably...". Looks like that is your case. []s Diego Ucha On 20 maio,

Re: Admin : Select category -> show subcategory

2008-05-20 Thread Diego Ucha
will have to write this function only once. What do you think? []s Diego Ucha Declare it somewhere else, and call him from the event On 20 maio, 05:59, martyn <[EMAIL PROTECTED]> wrote: > In fact, at the creation, you select a category, the the > subcategories > are

Re: Getting FK-Value without knowing the name of the field

2008-05-19 Thread Diego Ucha
If you just need to know the value of a FK field, and you know how to get this object (which filter to use), then i recommend that you read the section "Selecting Objects" from Chapter 5 of Django Book, the answer is there. Chapter 5 - http://www.djangobook.com/en/1.0/chapter05/ []s

Re: Admin : Select category -> show subcategory

2008-05-17 Thread Diego Ucha
You need to set a Subcategory as default when this field is loaded by the field Category? Sorry Martyn, i didn't get your doubt, could you elaborate more? On May 13, 2:23 am, martyn <[EMAIL PROTECTED]> wrote: > It's true, I don't know for what reason I changed this before posting, > but I've seen

Re: Django with Ajax

2008-05-10 Thread Diego Ucha
Monica, I recommend this thread: http://groups.google.com/group/django-users/browse_thread/thread/a26d805427aa643f/c856de7596c3e249?hl=en#c856de7596c3e249 I think it will solve your problem. []s Diego Ucha On May 9, 2:52 pm, "Monica Leko" <[EMAIL PROTECTED]> wrote: > On 5

Re: Admin : Select category -> show subcategory

2008-05-08 Thread Diego Ucha
tion value="">-</option>'; for (var i = 0; i < j.length; i++) { options += '<option value="' + j[i].id + '">' + j[i].nom + '</option>'; } $("select#id_sous_categorie").html(options);

Re: Admin : Select category -> show subcategory

2008-05-05 Thread Diego Ucha
template. At urls.py you need to add a pattern to reach the view: (r'^admin/bd1/country/getStates/$', 'project.app.admin_views.country_getStates'), This is the classic example of a country -> state interaction, the same for your category -> subcategory need. []s, Diego

Re: Admin : Select category -> show subcategory

2008-05-03 Thread Diego Ucha
ussion about those libs on the list). For filling this subcategory field, in terms of data transmission, i use JSon, because JQuery has a fine JSon parser, in few lines it's all done. []s, Diego Ucha On May 2, 6:05 am, martyn <[EMAIL PROTECTED]> wrote: > Hi, > > I've