Avoiding code duplication with many similar models

2008-05-24 Thread Trevor Caira
I have a django application which has about a dozen models spread across 3 applications, and I want to have 8 slightly different versions of those models (each corresponding to a different user base which has slightly different requirements). This includes, in a couple cases, different foreign ke

Does anyone use Eric to edit templates

2008-05-24 Thread Gene Campbell
Is there a way to make it "smart" - show enclosing structure of html elements, command complete django template syntax, etc. I'm new to so many of these tools. If there's something better than Eric for templates, can you recommend? I've used jEdit, but only for java dev. I can't remember how

Re: admin and foreign key problem

2008-05-24 Thread Karen Tracey
On Sat, May 24, 2008 at 11:11 PM, M.Ganesh <[EMAIL PROTECTED]> wrote: > > Hi All, > > Having some problem with foreign key and admin interface : > > > #models--- > class tagword(models.Model): >name = models.Ch

admin and foreign key problem

2008-05-24 Thread M.Ganesh
Hi All, Having some problem with foreign key and admin interface : #models--- class tagword(models.Model): name = models.CharField(max_length=50) def __unicode__(self): return self.name clas

Re: Difference between using postgresql_psycopg2 vs postgresql

2008-05-24 Thread Richard Dahl
I am not sure about any specific differences, but psycopg2 is what I believe to be recommended by initd.org, although there seems to be a problem with their Trac so I could not confirm. I originally (2 years ago) setup up Django with psycopg1, but when I rebuilt my development environment

Re: Problems setting up test Django server

2008-05-24 Thread Jason
Well, actually things are not so bueno. Everything's still working fine w/my my main instance, but any changes I make to models on my test instance (port 8080, different VirtualHost) are not propagating reliably-- or at all-- to the test site admin screen. Have tried server restarts, syncdb, etc

hi

2008-05-24 Thread دلال
مدرسة الفوتوشوب http://www.antya7la.com/vb/t24285.html برنامــج لمراقـــبة الشبكة المحلية Lan http://www.antya7la.com/vb/t25573.html#post273260 490أيقونة روعة لسطح الكتب ثلاثية الابعاد http://www.antya7la.com/vb/t25576.html#post273267 برنامج لتحويل ملفات الباوربوينتPowerpoint الي فيديو

Difference between using postgresql_psycopg2 vs postgresql

2008-05-24 Thread wulfrano
Just want to figure out what are the pros & cons of both. Thanks for the reply. --~--~-~--~~~---~--~~ 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

Re: FileField ImageField upload questions

2008-05-24 Thread poschs
> 1. I cant edit the ImageField by hand - e.g. If it currently contains > 'images\fam1.jpg' I cannot manually type in images\fam2.jpg and have > it accept it. >> I don't follow what you're trying to do here. Does this "fam2.jpg" >> exist on your computer? My goal is to be able to simply choose f

Re: Help me build my site with answers to my questions from models to newsletters everybody view this at least once

2008-05-24 Thread sebastian stephenson
ok but I can you intergate it in to a site as it seems that it only can use its own html sign up page can you make your own that talks to mailman? On 23 May 2008, at 23:08, Jeff Anderson wrote: > sebey wrote: >> mailman seens to be aimed at something like google groups and I doing >> a newle

Re: Generic ManyToMany - any code?

2008-05-24 Thread Richard Dahl
Not sure if there is a better way (suggestions are appreciated), but I just use the GenericForeignKey i.e.: class Asset(models.Model): content_type = models.ForeignKey(AssetType) object_id = models.PositiveIntegerField() content_object = generic.GenericForeignKey('content_type',

ero magazines

2008-05-24 Thread yura
http://ero-mag.net --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to [EMAIL PROTECTE

Re: class diagram from models.py

2008-05-24 Thread Eloi Crespillo
If you are using PostgreSQL, then is still easier to generate diagrams ;) I'm a happy user of the the excellent command-line utility "PostgreSQL Autodoc": http://www.rbt.ca/autodoc/ >From PostgreSQL Autodoc web page: "This is a utility which will run through PostgreSQL system tables and returns

Re: creating objects

2008-05-24 Thread Karen Tracey
On Sat, May 24, 2008 at 9:26 AM, Bernd <[EMAIL PROTECTED]> wrote: > > Hello, > > there is the documentation for creating objects > http://www.djangoproject.com/documentation/db-api/#creating-objects > > So I create my test-class and create an object > --

a problem with djikiki

2008-05-24 Thread Qiang
anyone have used the djikiki,a django wiki engine? i want to write a wiki engine with django like the djikiki.i installed the Djikiki.but i encounter a problem. i execute manage.py runserver there is no error.then i check the http://127.0.0.1:8000/admin. the django give me a trackback like this be

Generic ManyToMany - any code?

2008-05-24 Thread Itai Tavor
Hi, There was some talk about creating generic M2M fields around the end of '07, but I can't find any useful code. Has anyone got this working? Thanks, Itai --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djang

creating objects

2008-05-24 Thread Bernd
Hello, there is the documentation for creating objects http://www.djangoproject.com/documentation/db-api/#creating-objects So I create my test-class and create an object --- class test(models.Model): first_name = models.CharField(max_length=30)

Re: KeyError from query.combine() when merging 2 QuerySets; bug or what?

2008-05-24 Thread omat
Not sure but this can be related to ticket #7277: http://code.djangoproject.com/ticket/7277 On May 23, 7:59 pm, omat <[EMAIL PROTECTED]> wrote: > I am trying to merge 2 QuerySet objects with the following function: > > qs_user = queryset.filter(user=user) > qs_favorites = Favorite.objects.get_b

Re: Looking for "django ready" web templates ....

2008-05-24 Thread Gene Campbell
That helps thanks. I'm new to python and django, coming from java and j2ee (gladly). I am about to dig into my very first html mockup template conversion soon, and I'm sure I understand how easy it is then. On Sat, May 24, 2008 at 2:00 PM, Jeff Anderson <[EMAIL PROTECTED]> wrote: > Gene Campbe