Re: django-admin.py not working on Vista

2009-01-09 Thread Karen Tracey
On Sat, Jan 10, 2009 at 1:25 AM, Rex wrote: > > On Jan 9, 11:51 pm, "Karen Tracey" wrote: > > On Fri, Jan 9, 2009 at 10:55 PM, Rex wrote: > > > ... > > > I Googled around, and the only thing I found was this comment: > > >

Re: django-admin.py not working on Vista

2009-01-09 Thread Rex
On Jan 9, 11:51 pm, "Karen Tracey" wrote: > On Fri, Jan 9, 2009 at 10:55 PM, Rex wrote: > ... > > I Googled around, and the only thing I found was this comment: > > > "you have to change the file association from (cant remember) to "%1″ > > %* and

Re: pdb debugging problem

2009-01-09 Thread Mat
Here it is: Traceback: File "/home/mat/projects/gae-django/dev/polls/views.py" in index 7. return HttpResponse(Hello!) File "/home/mat/projects/gae-django/dev/polls/views.py" in index 7. return HttpResponse(Hello!) File "/usr/lib/python2.5/bdb.py" in trace_dispatch 48.

Re: django-admin.py not working on Vista

2009-01-09 Thread Karen Tracey
On Fri, Jan 9, 2009 at 10:55 PM, Rex wrote: > > I installed Django on my Vista box. Using the Windows command shell, I > go to the site-packages/django/bin directory and here's what I get > when I type various commands: > > > django-admin.py help > Type 'django-admin.py

Re: setting the checkboxes (MultipleChoiceField problem)

2009-01-09 Thread Tolu
Holy sh#*T, it worked!! Thanks man 2 WHOLE DAYS stuck on this. So shocked to actually see the box checked! -- From: "Malcolm Tredinnick" Sent: Friday, January 09, 2009 9:32 PM To: Subject:

django-admin.py not working on Vista

2009-01-09 Thread Rex
I installed Django on my Vista box. Using the Windows command shell, I go to the site-packages/django/bin directory and here's what I get when I type various commands: > django-admin.py help Type 'django-admin.py help' for usage. > python django-admin.py help [This gives me the proper help

Re: setting the checkboxes (MultipleChoiceField problem)

2009-01-09 Thread Tolu
lol I had originally tried that too. Nothing seems to work! I am thinking my logic might be wrong from the start. What I am doing is taking the request.POST.getlist('lookingfor') array[] and storing it as a comma delimited string in the database (Textfield), then returning the selected by

Re: pdb debugging problem

2009-01-09 Thread Malcolm Tredinnick
On Fri, 2009-01-09 at 15:50 -0800, Mat wrote: > I have 2 different behaviors using pdb > > In this view: > > from django.http import HttpResponse > import pdb; pdb.set_trace() > > def index(request): > import pdb; pdb.set_trace() > return HttpResponse("Hello!") > > > The first debug

Re: setting the checkboxes (MultipleChoiceField problem)

2009-01-09 Thread Malcolm Tredinnick
On Fri, 2009-01-09 at 20:29 -0600, Tolu wrote: > I tried this. The checkboxes displayed but none of them were checked: > > LOOKING_FOR = ( > ('Friendship', 'Friendship'), > ('Dating', 'Dating'), > ('A Relationship', 'A Relationship'), > ('Networking',

Re: Django-like PHP framework?

2009-01-09 Thread Hernan Olivera
+1, if you really need PHP... Used at University level for PHP development 2009/1/6 Dave Dash > > I did a lot of symfony stuff on the side about a year ago, and now > it's the framework that I we use for our frontend servers at > Delicious.com. It was through symfony that I

Re: setting the checkboxes (MultipleChoiceField problem)

2009-01-09 Thread Tolu
I tried this. The checkboxes displayed but none of them were checked: LOOKING_FOR = ( ('Friendship', 'Friendship'), ('Dating', 'Dating'), ('A Relationship', 'A Relationship'), ('Networking', 'Networking'), ) class ProfileForm(forms.ModelForm): lookingfor =

pdb debugging problem

2009-01-09 Thread Mat
I have 2 different behaviors using pdb In this view: from django.http import HttpResponse import pdb; pdb.set_trace() def index(request): import pdb; pdb.set_trace() return HttpResponse("Hello!") The first debug will work and be raised in the shell but the second one (inside the

Re: What's the best configuration for Apache + mod_wsgi + nginx

2009-01-09 Thread Graham Dumpleton
On Jan 10, 11:05 am, lenin wrote: > The server MPM is prefork. > > I had mod_wsgi in daemon mode I think, with this lines: > > WSGIDaemonProcess user_name user=user_name group=user_name > WSGIProcessGroup user_name > WSGIScriptAlias / /path/to/django.wsgi Which is one

Re: setting the checkboxes (MultipleChoiceField problem)

2009-01-09 Thread Malcolm Tredinnick
On Fri, 2009-01-09 at 08:51 -0800, over.nine.k wrote: > To simplyfy my question: > > How would you set the initial value of a form.MultipleChoiceField > being populated by a dictionary? > > > Django form doc says: > > >>> class CommentForm(forms.Form): > ... name =

Re: deploying a project

2009-01-09 Thread Malcolm Tredinnick
On Fri, 2009-01-09 at 14:03 +, Alan wrote: [...] > --- > > DocumentRoot /home/blabla/myproj_1 > ServerName myproj1.acme.com > > Alias > ... > > ... > > WSGIScriptAlias / "/home/blabla/myproj_1/myproj_1.wsgi" >

Re: OneToOneField relation and bidirectional StackedInline behavior in contrib.admin context

2009-01-09 Thread Malcolm Tredinnick
On Fri, 2009-01-09 at 05:33 -0800, klein.steph...@gmail.com wrote: [...] > This error is understandable because actually ClassA haven't > ForeignKey but the relation > between ClassA and ClassB is OneToOneField then ClassA know how to > access to his classb object. > > This behavior is one

Re: Django/Apache on Ubuntu - admin page looks weird

2009-01-09 Thread djangofett
Thanks a lot guys, that was it, should have looked at the official documentation more closely. On Jan 8, 9:27 pm, elithrar wrote: > Just in case you miss it - and this is the method I'd suggest, as it > makes updating easy: > > > Create a symbolic link to the admin media

Re: What's the best configuration for Apache + mod_wsgi + nginx

2009-01-09 Thread lenin
The server MPM is prefork. I had mod_wsgi in daemon mode I think, with this lines: WSGIDaemonProcess user_name user=user_name group=user_name WSGIProcessGroup user_name WSGIScriptAlias / /path/to/django.wsgi That was at the moment of the first message, but now I have commented out the

Re: template language + accessing specific index in a list

2009-01-09 Thread rabbi
sorry, please ignore. I found it now... murphey's law, as soon as you ask a question you find the answer yourself result_list.0 instead of result_list[0] On Jan 10, 12:56 am, rabbi wrote: > Using django's template language, is there a way of accessing a > specific

template language + accessing specific index in a list

2009-01-09 Thread rabbi
Using django's template language, is there a way of accessing a specific index in a list without having to iterate over all of it? Something like this: {{ result_list[0] }} comes before {{ result_list[1] }} The example above throws a TemplateSyntaxError with "Could not parse the remainder:

Re: Shouldn't get_profile() create the profile object?

2009-01-09 Thread Alvaro Mouriño
On Thu, Jan 8, 2009 at 12:26 AM, Malcolm Tredinnick wrote: > > On Wed, 2009-01-07 at 22:50 -0200, Alvaro Mouriño wrote: >> I find myself checking for the existence of the profile object for the >> user everytime I call the get_profile function or making sure that it >>

Re: What's the best configuration for Apache + mod_wsgi + nginx

2009-01-09 Thread Graham Dumpleton
On Jan 10, 4:21 am, lenin wrote: > Hello, > > I would like to know if you could help me solve an issue with my > server setup. I have a Django application running with mod_wsgi on > apache with nginx as frontend, and it got very popular so the server > gets more than 1

Re: What's the best configuration for Apache + mod_wsgi + nginx

2009-01-09 Thread chiggsy
On Jan 9, 2:40 pm, "Stefan Tunsch" wrote: > What's the point of using Apache AND nginx? Nginx is far better and faster and leaner at serving static files than apache. --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Related articles based on keywords.

2009-01-09 Thread Ariel Mauricio Nunez Gomez
> > In the view for a single article, I would like to be able to pull up >> related articles based on shared keywords. Just pulling up all the >> articles that share at least one keyword would be to imprecise. What >> I'd like to do is use some sort of weighting algorithm, so that if >> there are

Re: django design methods

2009-01-09 Thread chiggsy
On Jan 8, 5:55 pm, bruno desthuilliers wrote: > On 8 jan, 19:33,chiggsy wrote: > > > A meta question about django:  how do people design dango apps? > > Like any other. Domain analysis to get the models (database schema, > mostly), functional

Re: Related articles based on keywords.

2009-01-09 Thread Ariel Mauricio Nunez Gomez
If I were you I would start by writing down the description, pros and cons of the approaches you've thought about. Then you'll be closer to solving your problem and it'll be more likely that someone steps up and helps you. Ariel. On Fri, Jan 9, 2009 at 3:09 PM, Rodrigo Culagovski

Related articles based on keywords.

2009-01-09 Thread Rodrigo Culagovski
I am developing a site for an academic publication that contains a few thousand articles. Each Article has a ManyToMany relationship with one or more Keywords from a controlled vocabulary. In the view for a single article, I would like to be able to pull up related articles based on shared

Re: What's the best configuration for Apache + mod_wsgi + nginx

2009-01-09 Thread Stefan Tunsch
What's the point of using Apache AND nginx? The same server is also handling the database? What db server are you using? What about caching? Have you something up and running in that sense? And regarding video conversion, this can obviously be the root of your problems. Can you be more

What's the best configuration for Apache + mod_wsgi + nginx

2009-01-09 Thread lenin
Hello, I would like to know if you could help me solve an issue with my server setup. I have a Django application running with mod_wsgi on apache with nginx as frontend, and it got very popular so the server gets more than 1 requests a day. The app does some video conversion with ffmpeg and

Re: Session variables

2009-01-09 Thread bradders
No this is Linux (SUSE10), runing behind Apache and not filesystem. John On Jan 9, 1:27 am, Malcolm Tredinnick wrote: > On Thu, 2009-01-08 at 05:12 -0800, bradders wrote: > > I will try to put something together. I have a fairly detailed trace > > that I have put

Re: How does django.contrib.auth.views.login work?

2009-01-09 Thread Brian Neal
On Jan 9, 11:06 am, scelerat wrote: > Hi, I'm new to Django and am trying to figure out how to make > authentication work in any view. > > First off, I have a base template which has a conditional like this: > > {% if user.is_authenticated %} > Yay! > {% else %} > Boo. > {%

How does django.contrib.auth.views.login work?

2009-01-09 Thread scelerat
Hi, I'm new to Django and am trying to figure out how to make authentication work in any view. First off, I have a base template which has a conditional like this: {% if user.is_authenticated %} Yay! {% else %} Boo. {% endif %] In an accounts/urls.py, I add a line like this: urlpatterns =

Re: setting the checkboxes (MultipleChoiceField problem)

2009-01-09 Thread over.nine.k
To simplyfy my question: How would you set the initial value of a form.MultipleChoiceField being populated by a dictionary? Django form doc says: >>> class CommentForm(forms.Form): ... name = forms.CharField(initial='class') ... url = forms.URLField() ...

Re: Want to test a file-upload with django.test.client

2009-01-09 Thread thomasbecht...@googlemail.com
I forgot the output for request.FILES. it's: CRITICAL request.FILES: On 9 Jan., 17:21, "thomasbecht...@googlemail.com" wrote: > Hi all, > > i have to replace a php-script with a django-view. The django-view > just get some Post-Data and a file. The view works

Re: Get Request Url

2009-01-09 Thread bruno desthuilliers
On 9 jan, 17:06, "burcu hamamcıoğlu" wrote: > Hi everybody, > > do you know how can i get request url in views.py. > > My url pattern is like (r'^wp/rmain2\.aspx','DisplayPacketApplications2'), > But my link is like :http://wap2.cepoyun.com/wp/rmain2.aspx?pid=194=280jhjh >

Want to test a file-upload with django.test.client

2009-01-09 Thread thomasbecht...@googlemail.com
Hi all, i have to replace a php-script with a django-view. The django-view just get some Post-Data and a file. The view works fine. Now, i want to write a test for the upload. My Script looks like this: from django.test.client import Client from django.test import client c = Client() file =

Get Request Url

2009-01-09 Thread burcu hamamcıoğlu
Hi everybody, do you know how can i get request url in views.py. My url pattern is like (r'^wp/rmain2\.aspx','DisplayPacketApplications2'), But my link is like : http://wap2.cepoyun.com/wp/rmain2.aspx?pid=194=280jhjh when i use 'PATH_INFO' i olnly get 'wp/rmain2\.aspx' of the link. How can i

Re: first newbie question

2009-01-09 Thread Umapathy S
I usually do def __unicode__(self): return "%d" % self.question_number On Fri, Jan 9, 2009 at 2:42 PM, Eric Abrahamsen wrote: > > > On Jan 9, 2009, at 10:19 PM, _Sebastian_ wrote: > > > > > Hi all, > > > > I've been following the tutorial >

setting the checkboxes (MultipleChoiceField problem)

2009-01-09 Thread over.nine.k
I have a problem setting the check boxes that are "checked" when my form returns (Please let me know if my logic is wrong from go) My logic: -- After options are selected in my form, i save() the field[] in a textfield (concat string with commas) -- when textfield is returned, i split() the

Re: Pluggable application template customization

2009-01-09 Thread Olivier Guilyardi
Olivier Guilyardi wrote: > Malcolm Tredinnick wrote: >> On Fri, 2009-01-09 at 14:00 +0100, Olivier Guilyardi wrote: >>> >>> How can I add support for this optional templates/telemeta directory, >>> automatically, whenever one has installed telemeta ? >> The telemeta source would need to support

Re: first newbie question

2009-01-09 Thread Eric Abrahamsen
On Jan 9, 2009, at 10:19 PM, _Sebastian_ wrote: > > Hi all, > > I've been following the tutorial > http://docs.djangoproject.com/en/dev/intro/tutorial01/#playing-with-the-api > and working on a own test-project as well. > > so I tried to adapt from > > class Poll(models.Model): >question =

Re: Urgent opening for Python Web Development/ programmers with Django/mumbai

2009-01-09 Thread Tim Chase
MapleSolutions.hr wrote: > We are having an Urgent opening for a leading MNC. > We are looking for Python Web Development/ Programmers with Django > experience. > LOCATION: Mumbai/ Andheri (E) In addition to Malcolm's (post on DjangoGigs) and Ronaldo's (are you considering remote workers)

Re: Pluggable application template customization

2009-01-09 Thread Olivier Guilyardi
Malcolm Tredinnick wrote: > On Fri, 2009-01-09 at 14:00 +0100, Olivier Guilyardi wrote: >> Hi, >> >> We have developed Telemeta, a "pluggable" Django application (to be added to >> INSTALLED_APPS). It works great. We now need to support per-project templates >> customization as one can do for the

first newbie question

2009-01-09 Thread _Sebastian_
Hi all, I've been following the tutorial http://docs.djangoproject.com/en/dev/intro/tutorial01/#playing-with-the-api and working on a own test-project as well. so I tried to adapt from class Poll(models.Model): question = models.CharField('question',max_length=200) def

Re: deploying a project

2009-01-09 Thread Alan
Thanks Malcolm. So just to have it clear, besides the particular files and folders that I have to add to my project (apache, wsgi etc.), in our httpd.conf, I would add another entry and end up with something like this: --- DocumentRoot

OneToOneField relation and bidirectional StackedInline behavior in contrib.admin context

2009-01-09 Thread klein.steph...@gmail.com
Hi, First, I begin with one example : I've this in test1/models.py from django.db import models class ClassA(models.Model): foo = models.CharField("Foo", max_length = 100) class ClassB(models.Model): bar = models.CharField("bar", max_length = 100) rel_a =

Re: Pluggable application template customization

2009-01-09 Thread Malcolm Tredinnick
On Fri, 2009-01-09 at 14:00 +0100, Olivier Guilyardi wrote: > Hi, > > We have developed Telemeta, a "pluggable" Django application (to be added to > INSTALLED_APPS). It works great. We now need to support per-project templates > customization as one can do for the admin. > > Telemeta provides a

Pluggable application template customization

2009-01-09 Thread Olivier Guilyardi
Hi, We have developed Telemeta, a "pluggable" Django application (to be added to INSTALLED_APPS). It works great. We now need to support per-project templates customization as one can do for the admin. Telemeta provides a bunch of default templates. Once one has created a new django project,

Re: Urgent opening for Python Web Development/ programmers with Django/mumbai

2009-01-09 Thread Ronaldo Zacarias Afonso
Hi, Are you considering remote workers? []s Ronaldo. On Fri, Jan 9, 2009 at 9:59 AM, MapleSolutions.hr wrote: > > We are having an Urgent opening for a leading MNC. > We are looking for Python Web Development/ Programmers with Django > experience. > LOCATION:

Re: ModelForm: exclude fields missing in request

2009-01-09 Thread Flo Ledermann
Malcolm, thanks for taking the time to clarify the concept for me. I can see now that Django's approach is valid if one takes a form as a specification of what "has to be there" (hence the exclude mechanism in ModelForms) and not, as I did, of what "could be submitted". I still have a vague

Re: How can I apply constraints on model relationships?

2009-01-09 Thread Malcolm Tredinnick
On Fri, 2009-01-09 at 04:06 -0800, rabbi wrote: > Hi Malcolm, > Filtering out all the Animals that satisfy that constraint is easy... > even for a noob like me :) > > What I want is for that constraint to be enforced as/before the data > is inserted as I have a few complex (by my standards)

Re: How can I apply constraints on model relationships?

2009-01-09 Thread rabbi
Hi Malcolm, Filtering out all the Animals that satisfy that constraint is easy... even for a noob like me :) What I want is for that constraint to be enforced as/before the data is inserted as I have a few complex (by my standards) relationships that would benefit from that sort of

Re: Urgent opening for Python Web Development/ programmers with Django/mumbai

2009-01-09 Thread Malcolm Tredinnick
Hi Rupali, On Fri, 2009-01-09 at 03:59 -0800, MapleSolutions.hr wrote: > We are having an Urgent opening for a leading MNC. > We are looking for Python Web Development/ Programmers with Django > experience. > LOCATION: Mumbai/ Andheri (E) You'll probably reach a good audience if you post this

Re: How can I apply constraints on model relationships?

2009-01-09 Thread Malcolm Tredinnick
On Fri, 2009-01-09 at 03:33 -0800, rabbi wrote: > Is there a way to specify a constraint on a model ManyToMany > relationship? > > For example, if I wanted to define an Animal model that has a field > which specifies which other animals it eats and I wanted to limited > these animals_I_eat

Deleting previous file referenced by an ImageField

2009-01-09 Thread André Cruz
Hello. I have a model with an ImageField attribute. When that model is deleted the file is deleted as well but if the user uploads a another file, the original will never be deleted. This is like http://code.djangoproject.com/ticket/6157 In the comments someone mentioned that this would be

Urgent opening for Python Web Development/ programmers with Django/mumbai

2009-01-09 Thread MapleSolutions.hr
We are having an Urgent opening for a leading MNC. We are looking for Python Web Development/ Programmers with Django experience. LOCATION: Mumbai/ Andheri (E) Looking for a quick response! Talk to us on 9820160656 and send your CV's on maplesolutions...@gmail.com Kindly refer this mail to

Re: Newbie - Foreign Key Error

2009-01-09 Thread Malcolm Tredinnick
Hi Tony, On Fri, 2009-01-09 at 03:29 -0800, Tony wrote: > This is the reference: (not sure if I interpreted it right - sorry, > newb :) > > "If you use a multiple-table UPDATE statement involving InnoDB tables > for which there are foreign key constraints, the MySQL optimizer might > process

Custom widgets in the admin for inline forms

2009-01-09 Thread AndyB
Hi, Has anyone got any pointers? I'm not even sure where to begin. For non- inlines I'm doing: def formfield_for_dbfield(self, db_field, **kwargs): if db_field.name == 'photo': kwargs['widget'] = AdminImageWidget() return db_field.formfield(**kwargs)

How can I apply constraints on model relationships?

2009-01-09 Thread rabbi
Is there a way to specify a constraint on a model ManyToMany relationship? For example, if I wanted to define an Animal model that has a field which specifies which other animals it eats and I wanted to limited these animals_I_eat relationships to animals who's specie_name starts with "x", how

Re: Newbie - Foreign Key Error

2009-01-09 Thread Tony
This is the reference: (not sure if I interpreted it right - sorry, newb :) "If you use a multiple-table UPDATE statement involving InnoDB tables for which there are foreign key constraints, the MySQL optimizer might process tables in an order that differs from that of their parent/ child

Re: Newbie - Foreign Key Error

2009-01-09 Thread Tony
I read somewhere that InnoDB cant determine the order to apply DB operations to rows when the request spans multiple tables??? (i.e. constraint violation???) Is anyone using MySQL + InnoDB and having similar issues? or is is it the norm to process models in Django on a per model basis instead of

Re: ManyToMany problem

2009-01-09 Thread knight
Thanks, Meir. On Jan 7, 11:24 am, mksoft wrote: > Hi Alex, > > On Jan 4, 12:27 pm, knight wrote: > > > > > Hi, > > > I have the following problem: > > I have models.py with the following class: > > > class Section(Feed): > >     parent =

Re: ModelForm: exclude fields missing in request

2009-01-09 Thread Malcolm Tredinnick
On Fri, 2009-01-09 at 00:59 -0800, Flo Ledermann wrote: > Malcolm, > > As a relatively new Django user but experienced web developer I just > found it counter-intuitive that the Form would set fields that are > nowhere specified or even mentioned in the request. To follow your > line of thought,

Re: ModelForm: exclude fields missing in request

2009-01-09 Thread Matías Costa
On Fri, Jan 9, 2009 at 9:59 AM, Flo Ledermann wrote: >> No. Don't ask the form class to read your mind. Create a form that knows >> which fields it expects so that errors can be raised correctly and >> validation will occur normally. > > I am not asking the form class

Re: orm: delete performance and queries optimization

2009-01-09 Thread Malcolm Tredinnick
On Fri, 2009-01-09 at 00:33 -0800, drakkan wrote: [...] > consider that other orm such sqlalchemy (with the right configuration) > can manage the mass delete without problems (tested on postgres), the > trick is to allow control on the database cascade behaivour, I > understand you are not

Re: Change the url

2009-01-09 Thread Briel
Hi Praveen It's not always an easy task being a developer. However, I don't see the point in using Django, if you're not also using all of the tools that available because you need a designer that only know strict HTML, and don't know anything about the process. With all the vars and tags you're

Re: Iterate over model database fields

2009-01-09 Thread bruno desthuilliers
On 8 jan, 23:56, Matias Surdi wrote: > Great!! > > I think that the _meta attribute will be enough. I think that if I > define a method on the base model of all my models something like > get_fields() it could then return a list of the fields by accessing >

Re: get_profile not working (get_model returns None)

2009-01-09 Thread Hans Fangohr
Dear Karen, On 9 Jan 2009, at 04:34, Karen Tracey wrote: > On Thu, Jan 8, 2009 at 11:19 PM, Hans Fangohr > wrote: > > You are right: using 'People.profile' works. To be clear (for > others): the application name should (in contrast to the > documentation) NOT be

Re: Django-like PHP framework?

2009-01-09 Thread thi.l...@gmail.com
Thanks for your recommendations/opinions/experiences. I had a look at some of these frameworks. To get started, I will dig deeper in the Symfony framework. I would say that what bothers me most is that they are written in PHP (you know, this case-insensitive language with no namespace and

Re: Change the url

2009-01-09 Thread Praveen
Hi Briel again my senior gave me other idea and they gave me a nice reason why they want me to use get_absolute_url() Given our new understanding of what the best practice is, the workflow for a template designer, who shouldn’t need to know or understand programming, is: 1. Ignore the

Re: "submit" and urls.py fail after moving site from runserver to Apache

2009-01-09 Thread rabbi
Hi Malcolm, I definitely am "starting out", I'm a complete web dev noob... but I was under the impression that I was using GET & POST correctly. I thought GET should be used when the action results in no state change on the server side (e.g. retrievals, queries, etc) and POST was used to alter

Re: ModelForm: exclude fields missing in request

2009-01-09 Thread Flo Ledermann
Malcolm, As a relatively new Django user but experienced web developer I just found it counter-intuitive that the Form would set fields that are nowhere specified or even mentioned in the request. To follow your line of thought, a validation error should be raised if a required field is not

Re: ModelForm: exclude fields missing in request

2009-01-09 Thread Flo Ledermann
Karen, On Jan 9, 12:40 am, "Karen Tracey" wrote: > Is there some reason you are not simply using exclude in Meta for the form > to avoid having these fields present in the form at all: this would require me to create ModelForm classes for all subsets of the form I want to

Re: orm: delete performance and queries optimization

2009-01-09 Thread drakkan
Thanks for the answer, I already solved the problem using raw sql and reconfiguring postgres with on delete cascade on relevant foreign key (obviously this doesn't work with mysql and myisam), my database can seems slow but consider I have about 20.000.000 records on some tables and I tested a

Re: How to customize admin interface to edit foreignkey objects on the same page?

2009-01-09 Thread itsnotvalid
Just to add: would is be better to create a ParentProfile and link it to the default profile of user and then Subclass every other custom profiles to this ParentProfile and make some manager/model methods to all the system to find the user's profiles? Also would it be possible to access the

Re: Is Django best for modular extensible projects?

2009-01-09 Thread itsnotvalid
>From what I tried I think that Django doesn't support "pluggable" plug- in kind of things. I guess it works more like helper ready than simple "pluggable" plug-ins that doesn't require any programming from the users of those apps. But as people using Django is assumed to be able to handle