Re: How to remove an app and its tables

2010-11-05 Thread Michael Sprayberry
Margie,     I believe this may cause issues if for some reason that there is a call to those tables and it still finds a reference to it. Remember to go and remove them from the admin register that should get rid of all references to them.     Michael I've stopped using a particular app  in my

Re: Making a m2m field required

2010-11-06 Thread Michael Sprayberry
Yo'av,   As far as I know there isn't a way to make a ManyToManyField a required field. blank = false cannot be used in ManyToMany or FileField's.  You will have to come up with some way to validate the field seperately.   Michael --- On Sat, 11/6/10, Yo'av Moshe wrote: From: Yo'av Moshe Sub

Re: Making a m2m field required

2010-11-06 Thread Michael Sprayberry
In case you don't know how the clean() method works. When ever a form class is executed the generic Clean data is executed first then in the form class if there are any methods with the clean_formfield naming convention it will execute those automatically. This is basically the only way to force

Re: Total in a django template

2010-11-06 Thread Michael Sprayberry
Hello,     I am not sure if this is what you are looking for but you can use a forloop.counter (index to 1) or a forloop.counter0 (index at 0) from within the template {% for loop %}     Michael Hi, In a django template I have a for loop that display (item, fine). I would like to compute the

Re: Multi-table Inheritance: How to add child to parent model?

2010-11-06 Thread Michael Sprayberry
Hello,   I was just going through this posting and I noticed that you are using concrete inheritance in your calling of   class Place(models.Model):    name = models.CharField(max_length=50)        address = models.CharField(max_length=80)   class Restaurant(Place):   

Re: Automatically assume "models." prefix in models.py

2010-11-14 Thread Michael Sprayberry
hello James,   I suppose you could use from django.db.models import WhatEver   This would definitly work but I don't know if it is the way you want to go. Sincerely, Michael --- On Sun, 11/14/10, James wrote: From: James Subject: Automatically assume "models." prefix in models.py To: django-u

Re: CMS for django

2010-11-14 Thread Michael Sprayberry
material.   Sincerely, Michael Sprayberry --- On Sun, 11/14/10, Robbington wrote: From: Robbington Subject: Re: CMS for django To: "Django users" Date: Sunday, November 14, 2010, 7:05 PM Depends what you want to do friend, The admin interface is pretty extensible on its own, fla

Re: loggin limits

2010-11-16 Thread Michael Sprayberry
While the state is stateless you can create a user list and then control the number of user allowed to be logged on a given time. Read through this.   http://www.djangobook.com/en/beta/chapter12/   Your best bet is to create a count that keeps track of total active session and only allows another

Re: INSTALLED_APPS doesn't check my projet dir

2010-11-17 Thread Michael Sprayberry
Also make sure that in you app folder and every folder for that matter has a __init__.py that way python will view it as a module. --- On Wed, 11/17/10, Shawn Milochik wrote: From: Shawn Milochik Subject: Re: INSTALLED_APPS doesn't check my projet dir To: django-users@googlegroups.com Date: W

Re: problems with model inheritance if base class is not abstract

2010-11-20 Thread Michael Sprayberry
--- On Sat, 11/20/10, marco.ferrag...@gmail.com wrote: From: marco.ferrag...@gmail.com Subject: problems with model inheritance if base class is not abstract To: "Django users" Date: Saturday, November 20, 2010, 5:59 AM Hi all! I'm new to django and I'm experimenting with models but I hav

Re: how to configure database?

2010-11-23 Thread Michael Sprayberry
have you done python manage.py syncdb? --- On Mon, 11/22/10, pa_ree wrote: From: pa_ree Subject: how to configure database? To: "Django users" Date: Monday, November 22, 2010, 3:32 PM hello, i'm new to django framework. i want to know how can i configure a single database to two applicatio

Re: tutorial part 4: ImportError

2010-11-23 Thread Michael Sprayberry
Steph,   those instructions are incorrect try from djanog.views.generic import list_view, list_detail   Michael --- On Tue, 11/23/10, steph wrote: From: steph Subject: tutorial part 4: ImportError To: "Django users" Date: Tuesday, November 23, 2010, 11:06 AM Hi group, I'm new - just work

Re: how to configure database?

2010-11-23 Thread Michael Sprayberry
share a little bit of your code so that we know what you are seeing. Just saying that you aren't getting things in your admin does not provide enough information. --- On Tue, 11/23/10, Reeti Pal wrote: From: Reeti Pal Subject: Re: how to configure database? To: django-users@googlegroups.com

Re: HELP NEEDED

2010-11-23 Thread Michael Sprayberry
take into acount a Link to get these emails sent to the freelancers and also the replys to the employers and assumming you don't want to be giving out personal information this requires some allisoning.   Good luck to you on this project and if you want help get back to me.   Michael Spray

Re: Django book

2010-11-28 Thread Michael Sprayberry
The Definite Guide to Django is good, but I liked Beginning Django E-Commerce that really nailed things down for me. --- On Sun, 11/28/10, Lorenzo Franceschini wrote: From: Lorenzo Franceschini Subject: Django book To: django-users@googlegroups.com Date: Sunday, November 28, 2010, 5:48 AM

Re: populating model values into form

2010-11-28 Thread Michael Sprayberry
You will need to make an admin.py and follow these directions class FormAdmin(admin.ModelAdmin): prepopulated_fields = {"slug": ("title",)} slug can be what ever field you want to populate and title is where you are populating from, as far as I know you can only populate from within the same a