Re: Implementation and maintainability of an app deployed multiple times in the same website

2013-08-28 Thread J . C . Leitão
Hi Kirby. Interesting idea. I'm not familiar with subdomains, but I will definitely try this. Thanks for the help, Jorge On Tuesday, August 27, 2013 4:12:47 PM UTC+2, C. Kirby wrote: > > Can each of the different requirements websites be on a different > third-level or subdomain? (If your site

Debugging admin site

2013-08-28 Thread Bora Aymete
I'm using the admin site for editing a model. One of the fields in the model is readonly when editing. But when try to save the model while editing django gives the error "Please correct error below" and does not give a clue about where the error happens. I know the cause is the readonly field

Re: django 2 tables one query?

2013-08-28 Thread Sithembewena Lloyd Dube
Yes it is. On Tue, Aug 27, 2013 at 11:16 PM, piasek piasek wrote: > Hi > > I was wondering is it possible to get information about two tables in one > query? > I have two models > Team (id, name, active, country) and Player (id, first_name, second_name, > active, team) > where Player.team = For

Re: django 2 tables one query?

2013-08-28 Thread Sithembewena Lloyd Dube
http://stackoverflow.com/questions/16597709/randomize-a-django-queryset-once-then-iterate-through-it On Tue, Aug 27, 2013 at 11:16 PM, piasek piasek wrote: > Hi > > I was wondering is it possible to get information about two tables in one > query? > I have two models > Team (id, name, active, c

Re: how to model a reflexive many to many relationship?

2013-08-28 Thread Wissal Wbc
This is my progress so far : class Utilisateur(models.Model): user = models.OneToOneField(User) role = models.CharField(choices=ROLES,blank=False,max_length=50) managed_by = models.ManyToManyField('self', related_name='managers',

Re: how to model a reflexive many to many relationship?

2013-08-28 Thread slim
This is my progress so far : class Utilisateur(models.Model): user = models.OneToOneField(User) role = models.CharField(choices=ROLES,blank=False,max_length=50) managed_by = models.ManyToManyField('self', related_name='managers',

Re: Share connection between Django and SqlAlchemy

2013-08-28 Thread Tomasz G.
Hi, I am also going share Django ORM and SQLAlchemy connections. Do you know the solution? Thomas W dniu środa, 22 czerwca 2011 20:38:54 UTC+2 użytkownik Vladimir Mihailenco napisał: > > I am trying to share connection between Django and SqlAlchemy. I tried > following code: > > from django.db

Re: Script to move django 1.4.3 to 1.5.1

2013-08-28 Thread Tom Evans
On Tue, Aug 27, 2013 at 6:37 PM, Harjot Mann wrote: > I also want to shift my app from django version 1.4.5 to 1.5.1. You are > right there should be some script which automatically upgrades the version > without affecting the application. No, there shouldn't. You would spend more time writing

Re: help required on how to modify constraints/indexes of unique_together after data is loaded

2013-08-28 Thread Subramanyam
Hi Found the solution ran the following sql directly and it worked fine ALTER TABLE `table_name` DROP INDEX `field1` , ADD UNIQUE INDEX `field1` (`field1` ASC, `field2` ASC, `field3` ASC) ; Also checked a distinct on the three fields to ensure data integrity Thanks Subramanyam On T

django translation error

2013-08-28 Thread Gerd Koetje
Why do i get this error? (django-env)[root@python pythondating]# django-admin.py makemessages -l nl -i settings.py processing language nl CommandError: errors happened while running xgettext on .#models.py xgettext: fout bij openen van './profielen/.#models.py' voor lezen: Bestand of map bestaat

need a help in ListView 1) how to debug the rendered request and response

2013-08-28 Thread bab mis
Here is my code models.py === class member(models.Model): first_name = models.CharField(max_length=30) last_name = models.CharField(max_length=30) dob = models.DateField() def get_fields(self): return(self.__dict__.keys()[0:len(self.__dict__.keys())-2]) vie

Re: Javascript encoding and python decoding and vice versa

2013-08-28 Thread Samantha Atkins
We all know about SSL so stop the lectures please. Sometimes you simply want to reasonably encrypt on client and decrypt on server and for one reason or another SSL is not an option. On Thursday, October 11, 2012 7:37:43 AM UTC-7, Javier Guerra wrote: > > On Thu, Oct 11, 2012 at 3:39 AM, Laxm

Re: Javascript encoding and python decoding and vice versa

2013-08-28 Thread Samantha Atkins
So if I use sjcl.encrypt at browser then how do I do the equivalent of sjcl.decrypt in python at server side. That is what the original question was asking as I read it. On Tuesday, October 9, 2012 8:24:06 AM UTC-7, Javier Guerra wrote: > > On Tue, Oct 9, 2012 at 12:07 AM, Laxmikant Gurnalkar

django ListView improper output !!! urgent

2013-08-28 Thread bab mis
Hi , trying to display the member's list present in DB, the code works fine with sample scripts where as with django view-model-template output doesn't come properly. urls.py === url(r'^list',ListContactView.as_view(),name='member-list'), models.py === class member(models.Model): fi

Re: django translation error

2013-08-28 Thread Gerd Koetje
now i got passed that and i get this one (django-env)[root@python pythondating]# django-admin.py makemessages -l nl processing language nl DjangoUnicodeDecodeError: 'utf8' codec can't decode byte 0xb0 in position 37: invalid start byte. You passed in '\x00\x05\x16\x07\x00\x02\x00\x00Mac OS X

Re: django translation error

2013-08-28 Thread Gerd Koetje
i solved it. my mac created some weird ghost files that conflicted with it -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.

How to require selection of a M2M with intermediate table/model during admin record creation?

2013-08-28 Thread M Hill
I have been beating my head against the wall trying to figure this out. I came up with a simplified example to illustrate what I'm trying to do. Posit a hypothetical university application; say, a system where students, faculty and administration can all participate. There are different pri