Re: One2One vs. Foreign Key unique

2010-05-16 Thread Odagi
Thanks a lot! On May 16, 10:28 pm, Rolando Espinoza La Fuente wrote: > On Sun, May 16, 2010 at 6:41 PM, Odagi wrote: > > Hello users, I cannot realize the difference between the different > > ways of extending a model. Suppose we have Place and Restaurant Models > > (a Restaurant is an extensio

Re: Error: App with label forum could not be found. Are you sure your INSTALLED_APPS setting is correct?

2010-05-16 Thread Pankaj Singh
I am geetting thi error when using ./manage.py sqlall forum On Sun, May 16, 2010 at 11:16 PM, Felippe Bueno wrote: > when are you getting this error ? > > On Sun, May 16, 2010 at 5:38 PM, Pankaj Singh < > singh.pankaj.iitkg...@gmail.com> wrote: > >> Error: App with label forum could not be found

Re: One2One vs. Foreign Key unique

2010-05-16 Thread Rolando Espinoza La Fuente
On Sun, May 16, 2010 at 6:41 PM, Odagi wrote: > Hello users, I cannot realize the difference between the different > ways of extending a model. Suppose we have Place and Restaurant Models > (a Restaurant is an extension of a Place). I know 3 different ways of > define the data model: > > 1. Multi-

Re: Is the Django book written in ReST/Sphinx?

2010-05-16 Thread Russell Keith-Magee
On Mon, May 17, 2010 at 7:06 AM, cool-RR wrote: > I'm just working on a book for my own project, and I was wondering: Is > the Django book written in ReST/Sphinx? I am considering whether I > should write my book with that. This is slightly off topic for this list, but I would advise that this is

Re: Error: App with label forum could not be found. Are you sure your INSTALLED_APPS setting is correct?

2010-05-16 Thread Felippe Bueno
when are you getting this error ? On Sun, May 16, 2010 at 5:38 PM, Pankaj Singh < singh.pankaj.iitkg...@gmail.com> wrote: > Error: App with label forum could not be found. Are you sure your > INSTALLED_APPS setting is correct? > > how to get out of this ? > > > -- > -- > -- > Thanking You, > > Pa

Is the Django book written in ReST/Sphinx?

2010-05-16 Thread cool-RR
I'm just working on a book for my own project, and I was wondering: Is the Django book written in ReST/Sphinx? I am considering whether I should write my book with that. Thanks, Ram. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to th

Re: Restarting the server while working on dreamhost.

2010-05-16 Thread bax...@gretschpages.com
It's been a while since I messed around on Dreamhost (finding them utterly incapable of running a django site), but try touching the wsgi file. -- 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...@goo

override base translations in your project

2010-05-16 Thread lenz
The Django docs tell that it is possible to "override base translations in your project path" but i have no idea how this works. I tried to copy the some contents of an third party apps django.po to the django.po file of the project but i see no change after compiling. To me it seems obvious that

One2One vs. Foreign Key unique

2010-05-16 Thread Odagi
Hello users, I cannot realize the difference between the different ways of extending a model. Suppose we have Place and Restaurant Models (a Restaurant is an extension of a Place). I know 3 different ways of define the data model: 1. Multi-table inheritance: class Place(models.Model): ... class R

Re: Server on diffferent machine

2010-05-16 Thread bax...@gretschpages.com
Yup, it was a sql configuration thing. Once that was sorted out, Django worked exactly as expected, as usual. -- 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

Re: Python Database Framework

2010-05-16 Thread Ozgur Yılmaz
As I see there is no way to avoid this error. Django says that using django.conf.settings.configure more than one causes that error and as far as I understand it is a design issue. I looked at Elixir and found it very useful and nice, but somehow I wanted to stick to Django, I think it is because

Restarting the server while working on dreamhost.

2010-05-16 Thread Pietro Speroni
I am slowly learning django, so my question might sound really easy. Please let this not stop you from helping out. I installed django 1.1.1 on dreamhost following the informatins here: http://wiki.dreamhost.com/Django It should be using Passenger WSGI, whatever that is ( :) ) I then went to lear

Error: App with label forum could not be found. Are you sure your INSTALLED_APPS setting is correct?

2010-05-16 Thread Pankaj Singh
Error: App with label forum could not be found. Are you sure your INSTALLED_APPS setting is correct? how to get out of this ? -- -- -- Thanking You, Pankaj Kumar Singh, 2nd Year Undergraduate Student, Department of Agricultural and Food Engineering, Indian Institute of Technology, Kharagpur

Re: Server on diffferent machine

2010-05-16 Thread CLIFFORD ILKAY
On 05/16/2010 03:22 PM, bax...@gretschpages.com wrote: On May 16, 1:55 pm, Daniel Hilton wrote: Can you ping the db machine from the webserver? Can you access the db machine from the webserver using a mysql client such as Navicat or such like? I can go to the DB machine via phpmyadmin. How

Re: Server on diffferent machine

2010-05-16 Thread Daniel Hilton
On 16 May 2010 20:22, bax...@gretschpages.com wrote: > > > On May 16, 1:55 pm, Daniel Hilton wrote: > >> Can you ping the db machine from the webserver? >> Can you access the db machine from the webserver using a mysql client >> such as Navicat or such like? > > I can go to the DB machine via php

Re: Server on diffferent machine

2010-05-16 Thread bax...@gretschpages.com
On May 16, 1:55 pm, Daniel Hilton wrote: > Can you ping the db machine from the webserver? > Can you access the db machine from the webserver using a mysql client > such as Navicat or such like? I can go to the DB machine via phpmyadmin. However, when I try to ping the IP, it fails. Strange. >

Re: Server on diffferent machine

2010-05-16 Thread CLIFFORD ILKAY
On 05/16/2010 02:25 PM, bax...@gretschpages.com wrote: I know this is something stupid I'm missing, but I'm not getting it. I'm trying to run my Django from one cloud instance and the DB from another, to (hopefully) optimize each server for task and balance the load a bit. On the DB server, I h

conditional list_filter in django admin

2010-05-16 Thread bowlby
Is it possible to add a condition to a list_filter in the django admin? In the the example below I'd like to see only those organisations in the filter, that have a certain attribute checked (the boolean 'participates_in_program'). class UserAdmin(admin.ModelAdmin): list_display = ('username',

Re: Server on diffferent machine

2010-05-16 Thread Daniel Hilton
On 16 May 2010 19:25, bax...@gretschpages.com wrote: > I know this is something stupid I'm missing, but I'm not getting it. > > I'm trying to run my Django from one cloud instance and the DB from > another, to (hopefully) optimize each server for task and balance the > load a bit. > > On the DB se

Re: I need help

2010-05-16 Thread Baurzhan Ismagulov
On Fri, May 14, 2010 at 10:51:09AM +0200, Hussain Deikna wrote: > 2- user login and it will display special information to every to group of > users ... > I need help in part 2 which django application I have to use? I'm not aware of a ready-to-use solution; however, implementing one is not much

Re: Pluggable Q&A app?

2010-05-16 Thread bax...@gretschpages.com
Thanks. In the end I wrote my own. Wasn't that hard, actually. CNPROG had the same problem the other ones I looked at: more of a site than a pluggable app. That Django-Voices is definitely interesting, though. -- You received this message because you are subscribed to the Google Groups "Django u

Server on diffferent machine

2010-05-16 Thread bax...@gretschpages.com
I know this is something stupid I'm missing, but I'm not getting it. I'm trying to run my Django from one cloud instance and the DB from another, to (hopefully) optimize each server for task and balance the load a bit. On the DB server, I have mysql installed and have a working database running o

Re: Django model save() and foreign key

2010-05-16 Thread Karen Tracey
On Sun, May 16, 2010 at 11:12 AM, Lukáš wrote: > "Why are you specify db_column='language_id' for the label field? Why > not > just let this field be given its default column name in the table?" > > Isnt it the same thing? The only difference is, that django will add > "_id" to it now and in the

Re: Django model save() and foreign key

2010-05-16 Thread Lukáš
"Why are you specify db_column='language_id' for the label field? Why not just let this field be given its default column name in the table?" Isnt it the same thing? The only difference is, that django will add "_id" to it now and in the end result is the same, I still get the error. If my model

Re: Django model save() and foreign key

2010-05-16 Thread Karen Tracey
On Sun, May 16, 2010 at 10:35 AM, Lukáš wrote: > > I would like to save a modified model, but I get Programming error - > language_id field is specified twice. > > class ProductInfo(models.Model): >product_info_id = models.AutoField(primary_key=True) >language_id = models.IntegerField() >

Re: Using a variable for a field name in a filter?

2010-05-16 Thread nvie
Try this: kwargs = { var_field: "found" } Foo.objects.filter(**kwargs) On May 14, 3:19 pm, derek wrote: > Given a model Foo, with a field bar: > Foo.objects.filter(bar = "found") > works just fine. > > But, in my case, different fields are needed at different times, so I > would like to use: > F

Django model save() and foreign key

2010-05-16 Thread Lukáš
Hey, I would like to save a modified model, but I get Programming error - language_id field is specified twice. class ProductInfo(models.Model): product_info_id = models.AutoField(primary_key=True) language_id = models.IntegerField() product_id = models.IntegerField() description

Re: One to One chat like Facebook?

2010-05-16 Thread Allen Machary
you can try looking-up on pinax apps.. and put it on ur project.. check out (might give you some light ) http://groups.google.com/group/pinax-users/browse_thread/thread/6ea6b0d5f79a69ac/ee84295138dc3e58?lnk=gst&q=wsgi#ee84295138dc3e58 Allen M., On 5/16/10, Dexter wrote: > I don't know, but I gue

Change Default Permissions

2010-05-16 Thread Thomas Neumeier
Hi, i've got an app with one model. this model is filled with some data from a fixture. now i want to remove the add and delete permission for all present and future users for this specific model. the change perm should stay. how can i do this? Thanks PS: using django 1.1.1 -- You received thi

Re: ValueError with multi-table inheritance in Django Admin

2010-05-16 Thread Jori
Thanks a lot! It didn't cross my mind to check the "hidden" relations as this was the first time for me with multi-table inheritance. -Jori On May 16, 2:26 pm, Karen Tracey wrote: > On Sun, May 16, 2010 at 4:58 AM, Jori wrote: > > The problem seems to be that you have named a field in your Comm

MOD_PYTHON ERROR

2010-05-16 Thread asraful
my httpd.conf seetings as: SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE mysite.settings PythonOption django.root /mysite PythonDebug On PythonPath "['C:/Python25/Lib/site-packages/django','C:/Program Files/Apache2.2

Re: ValueError with multi-table inheritance in Django Admin

2010-05-16 Thread Karen Tracey
On Sun, May 16, 2010 at 4:58 AM, Jori wrote: > Hi, > > I have a problem when using MIT in my models. I created two new > classes which inherit model Entry: > >class Entry(models.Model): >LANGUAGE_CHOICES = settings.LANGUAGES > >language = models.CharField(max_length=2, > verbo

Re: One to One chat like Facebook?

2010-05-16 Thread Dexter
I don't know, but I guess you could easily make your own. Django and Comet would be a nice combination Grtz, Dexter On Sun, May 16, 2010 at 12:13 PM, Anand Agarwal wrote: > Hi All > > Is there any chat application in django similar to facebook chat? > > > Regards > Anand > Got an Idea? BootStr

One to One chat like Facebook?

2010-05-16 Thread Anand Agarwal
Hi All Is there any chat application in django similar to facebook chat? Regards Anand Got an Idea? BootStrap it Today!! -- 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

ValueError with multi-table inheritance in Django Admin

2010-05-16 Thread Jori
Hi, I have a problem when using MIT in my models. I created two new classes which inherit model Entry: class Entry(models.Model): LANGUAGE_CHOICES = settings.LANGUAGES language = models.CharField(max_length=2, verbose_name=_('Comment language'), choices=LANGUAGE_CHOICES)

Re: Using a variable for a field name in a filter?

2010-05-16 Thread nvie
Wouldn't this work? kwargs = { var_field: "found" } Foo.objects.filter(**kwargs) On May 14, 3:19 pm, derek wrote: > Given a model Foo, with a field bar: > Foo.objects.filter(bar = "found") > works just fine. > > But, in my case, different fields are needed at different times, so I > would like t