Jobbet symfony like tutorial?

2009-11-13 Thread Xan
for printing and consulting. Is there any tutorial like that? Thanks a lot, Xan. -- 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 this group, send email

Models problem: put references of change in all fields

2009-10-11 Thread Xan
contains the field and the reference? Thanks in advance, Xan. --~--~-~--~~~---~--~~ 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 unsubs

Are Dynamic fields possible?

2009-01-03 Thread Xan
of the field). Is it possible? Thanks a lot, Xan. PS: Happy new year. --~--~-~--~~~---~--~~ 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@google

Visualization of databases

2008-07-12 Thread Xan
, ) Thanks a lot, Xan. PS: I want to apply in activities done for my organization (typically I have a database of one class Action with the following fields: Title, Description, Type, DateofStart, DateofEnd, Location, ) and I want to classify and "draw" the actions by different type

Re: Autoupdate field?

2008-07-12 Thread Xan
Yes, but if mary is a Person and Smith is a Family, and mary belongs to Smith Family (that is mary.family = Smith), how to change mary.hometelephone if Smith.hometelephone change? Thanks a lot, Xan. On Jul 6, 10:02 pm, Juanjo Conti <[EMAIL PROTECTED]> wrote: > I you want

Autoupdate field?

2008-07-06 Thread Xan
Person.telephone-home and automatically updates Family.telephone-home? Thanks a lot, Xan. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: Multiple fields without manytomanyfield?

2008-07-06 Thread Xan
Thanks a lot, Xan. On Jun 25, 5:49 pm, Joel Bernstein <[EMAIL PROTECTED]> wrote: > I don't suppose a CommaSeparatedIntegerField would work, would it? > > You'd lose some querying options that you'd have with a foreign key > relationship, but that may not be important to you. &g

Re: Multiple fields without manytomanyfield?

2008-06-25 Thread Xan
sorry models.list(integer, max=unlimited) On Jun 25, 5:37 pm, Xan <[EMAIL PROTECTED]> wrote: > Yes, I'm looking for that but without defining the ManyToManyField. > Could I wrote something like: > > > class A(models.Model): > >     integers = models.list(Integer

Re: Multiple fields without manytomanyfield?

2008-06-25 Thread Xan
confused, are you looking for this: > > class IntegerRelation(models.Model): >     content = models.IntegerField() > > class A(models.Model): >     integers = models.ManyToManyField(IntegerRelation) > > -richard > > On 6/22/08, Xan <[EMAIL PROTECTED]> wrote:

Multiple fields without manytomanyfield?

2008-06-22 Thread Xan
Hi, Suposing you want a model A with several and indetermined number of integer fields. Is there any possibility of defining A without creating a Integer class and then add ManyToManyField(Integer) in class A? Thanks a lot! Xan. --~--~-~--~~~---~--~~ You

Re: __str__(self) for ManyToManyField

2007-11-11 Thread Xan
On Nov 11, 1:16 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sat, 2007-11-10 at 11:26 -0800, Xan wrote: > > > On Nov 10, 6:01 am, Malcolm Tredinnick <[EMAIL PROTECTED]> > > wrote: > > > On Fri, 2007-11-09 at 08:19 -0800, Xan wrote: > >

Re: __str__(self) for ManyToManyField

2007-11-10 Thread Xan
On Nov 10, 6:01 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Fri, 2007-11-09 at 08:19 -0800, Xan wrote: > > > On Nov 9, 2:36 am, Malcolm Tredinnick <[EMAIL PROTECTED]> > > wrote: > > > On Thu, 2007-11-08 at 09:11 -0800, Xan wrote: &g

Re: __str__(self) for ManyToManyField

2007-11-09 Thread Xan
On Nov 9, 2:36 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Thu, 2007-11-08 at 09:11 -0800, Xan wrote: > > Hi, > > > I have these models: > > > class A(models.Model): > > > [...] > >def __str__(self): > >return &quo

__str__(self) for ManyToManyField

2007-11-08 Thread Xan
How can I modify it? I use 0.96 Thanks in advance, Xan. --~--~-~--~~~---~--~~ 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 unsubsc

Re: deseb installation in ubuntu

2007-10-12 Thread Xan
Okay. Say something If you need some files, I will be charmed to give Regards, Xan. On Oct 11, 9:53 pm, Derek Anderson <[EMAIL PROTECTED]> wrote: > your previous bug was a standard import issue unrelated to deseb. > however this looks like it may be a real one.

Re: deseb installation in ubuntu

2007-10-11 Thread Xan
On Oct 11, 5:13 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Thu, 2007-10-11 at 07:21 -0700, Xan wrote: > > [...] > > > Perhaps I have to read python doc, but my intention is only follow > > deseb/django documentation. If normal user have to read pyth

Re: deseb installation in ubuntu

2007-10-11 Thread Xan
On Oct 9, 8:41 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 10/9/07, Xan <[EMAIL PROTECTED]> wrote: > > > Where is the error? > > In all seriousness, judging from your last several emails, it's time > for you to sit down and read the offici

Re: deseb installation in ubuntu

2007-10-11 Thread Xan
Why now I have to change manage.py? What change I have to put in DJANGO_SETTINGS_MODULE? Thanks in advance, Xan. > > derek > > > > Xan wrote: > > Hi, > > > * I have installed django 0.96 in ubuntu 7.04 [http:// > > packages.ubuntu.com/gutsy/python/python-

Re: deseb installation in ubuntu

2007-10-10 Thread Xan
s) My settings.py is: # Django settings for analitzador project. # Us de deseb import deseb # S'acaba l'us de deseb DEBUG = True TEMPLATE_DEBUG = DEBUG [...] So, what fails? I don't know! Thanks, Xan. > > or, when you say "import setting.py", you're not literally typing >

deseb installation in ubuntu

2007-10-09 Thread Xan
f the file settings.py does indeed exist, it's causing an ImportError somehow.) * I think that the problem is that I don't know where is "/site-packages". I created the directory "site- packages" in /usr/share/python/ and I put "deseb" as a subdirectory Whe

Re: python script

2007-10-09 Thread Xan
On Oct 9, 6:50 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2007-10-09 at 09:35 -0700, Xan wrote: > > How? > > > I have my django app in: > > /home/xan/anadoc/analitzador/ > > > and my script in: > > > /home/xan/anado

Re: python script

2007-10-09 Thread Xan
How? I have my django app in: /home/xan/anadoc/analitzador/ and my script in: /home/xan/anadoc/transformacions/script.py My script code is: import os, sys sys.path.append('/home/xan/anadoc/analitzador/') os.environ['DJANGO_SETTINGS_MODULE'] = 'analitzador.settings' from django.conf import

Re: python script

2007-10-03 Thread Xan
In http://code.djangoproject.com/ticket/5534 there is a howto for doing that. But it's only when the script is in the root project directory. What happens if we want the script in other location? What line we have to add? Thanks a lot, Xan. On Sep 18, 8:27 pm, Horst Gutmann <[EMAIL PROTEC

Re: Add field in models django 0.96

2007-09-29 Thread Xan
Hi, It worked but I HAVE A PROBLEM: After done it, the database have strange caracters: it displays "Convocatòria" instead of "Convocatòria" I presume that it's an encoding problem. How can I solve that? Please, anwer me Xan. On Sep 26, 11:33 pm, DJango Fett <[EMAIL PR

Re: Add field in models django 0.96

2007-09-28 Thread Xan
Sorry so, I will try it. Thank you very much for your support, Xan. On Sep 28, 2:48 pm, DJango Fett <[EMAIL PROTECTED]> wrote: > I am using 0.96 version too. I tested the steps I provided before I > posted. Check out the 0.96 documentation yourself about the loaddata &

Re: Add field in models django 0.96

2007-09-27 Thread Xan
hon manage.py syncdb > > python manage.py loaddata polls.json > > Hope this helps. Okay, but I have 0.96 version (I have no loaddata option) But, thanks very much, Xan. > > On Sep 25, 2:41 pm, Xan <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I use django 0.96.

Re: Add field in models django 0.96

2007-09-26 Thread Xan
Thanks, what the equivalent in mysql? Meanwhile, I think I will try patch to 0.96 found in http://code.djangoproject.com/wiki/SchemaEvolutionDocumentation Thanks another time, Xan. On Sep 26, 12:27 am, Joe <[EMAIL PROTECTED]> wrote: > The easiest way to to this is look at the create

Add field in models django 0.96

2007-09-25 Thread Xan
the solution to upgrade to django-cvs, how can I pass all my data from django 0.96 models to svn django models? Thanks in advance, Xan. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Re: python script

2007-09-19 Thread Xan
Yes, I refering to that. Many thanks, Xan. PS: There is a ticket for that, that "officially" say that you say. ;-) http://code.djangoproject.com/ticket/5534 On Sep 18, 8:27 pm, Horst Gutmann <[EMAIL PROTECTED]> wrote: > You mean an error telling you t

python script

2007-09-18 Thread Xan
t;4: a = str(i) print a Poll.create(question=a, data=datetime.date.today()) i = i+1 but when I run python a.py in bash, there are problems with imports. What lines of imports we need for running a standalone python script? Thanks in advance, Xan. PS: There is no doc in offic

Re: Setting "blank" to one Field?

2007-09-16 Thread Xan
blank=True for null=True Thanks a lot, Xan. On Sep 16, 12:33 am, Collin Grady <[EMAIL PROTECTED]> wrote: > There is no such thing as blank, especially on a ForeignKey. > > blank=True has absolutely nothing to do with the database, as the > documentation for it clearly states :) &

Setting "blank" to one Field?

2007-09-14 Thread Xan
e.save() # "UPDATE blog_entry SET blog_id = NULL ...;" I want to know what is equivalent to Blank? That is, how to set e.blog to blank if blank=True? Thanks, Xan. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Deleting the relations and not the objects?

2007-09-13 Thread Xan
() c1, c2, c3 I want that p.ce.all() will be empty set, but c1, c2 and c3 exits as intances of class C Thanks in advance, Xan. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Re: Performance for django for years

2007-09-10 Thread Xan
Thanks. Now, I will use PositiveSmallIntegerField I don't need a whole PositiveIntegerField (1900-->2100) and I want to compare years Thanks a lot, Xan. PS: Greg, yes there are lot of documentation, but it's more technical. Web site of django offers a good tutorial, good for "anybody

Performance for django for years

2007-09-09 Thread Xan
year = models.PossitiveIntegerField() [...] what it's the best for database performance (I use mysql) Thanks in advance, Xan. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. T