Re: Django on Mac OS X

2010-07-18 Thread Daniel França
thanks a lot, now it's working.. at least this part. =) On Sun, Jul 18, 2010 at 11:10 PM, Shawn Milochik wrote: > This is a known (and common) problem. Here's an easy fix that I've used > many times. > > http://shawnmilo.blogspot.com/2009/11/psycopg2-on-snow-leopard.html > >

Re: import model from other module

2010-07-18 Thread Subhranath Chunder
Obviously it can be done. Just make sure to add the app to your INSTALLED_APPS and use the proper path while importing. Things should go fine if properly done. Thanks, Subhranath Chunder. On Mon, Jul 19, 2010 at 1:28 AM, Andreas Pfrengle wrote: > Hello, > > is there a

Re: can foreign key fields be empty?

2010-07-18 Thread Subhranath Chunder
Ohh yes it's "null=True". Meant to say set field as None while using. Eg: class YourClass(models.Model): your_model_field = models.ForeignKey('RelatedModel', null=True) ... instance = YourClass.objects.create(your_model_field=None, ...) Thanks, Subhranath Chunder. On Mon, Jul 19, 2010

Re: Django on Mac OS X

2010-07-18 Thread Shawn Milochik
This is a known (and common) problem. Here's an easy fix that I've used many times. http://shawnmilo.blogspot.com/2009/11/psycopg2-on-snow-leopard.html Incidentally, you can replace "make install" with "make altinstall" to add Python 2.7 to your system without replacing the default Python.

Django on Mac OS X

2010-07-18 Thread Daniel França
Recently I migrated from Linux to Mac OS X 10.6, and I was thinking that would be easy to migrate my Django project to that. I was wrong, a lot wrong... First I tried to install Python2.7, the libs I need to my project, etc After that I get the error: *gresql_psycopg2/base.py", line 24, in * *

Re: Multiple URLs, Common View

2010-07-18 Thread Phil Edwards
On 18/07/2010 23:55, Phil Edwards wrote: -begin- def servePage(request): if request.path[1:] == '': thisPage = Page.objects.get(name = unicode('home')) else: thisPage = Page.objects.get(name = unicode(request.path[1:])) sidebar_list = Page.objects.filter(category = thisPage.category)

Re: Django IDE

2010-07-18 Thread Fabian Ezequiel Gallina
2010/7/18 Roald de Vries : > > Comparison of VIM and Emacs (what I've read): > - Emacs is monolithic (does everything, for example includes shell), VIM is > unix style (does one thing well, why reproduce the shell?) Wrong, all it's features are in separated Emacs' Lisp modules

Re: Is Django right for what I am trying to do

2010-07-18 Thread Martin Tiršel
On Fri, 09 Jul 2010 16:50:14 +0200, derek wrote: More complex or more detailed? (I would argue that The Django Book is about as high quality as you are ever going to get for a free tutorial) Try: http://www.hoboes.com/NetLife/pytown/django-beyond-sql/ or:

Re: Django IDE

2010-07-18 Thread Tran Cao Thai
eclipse + pydev is terrible when running on Linux IMO. Everytime starting the server, cpu runs like a horse without any reason. For me, gedit is the best. It is light, fast and have appearance support,powerful snippet plugin, and multi tab terminal integration. What else do you expect more to code

Multiple URLs, Common View

2010-07-18 Thread Phil Edwards
Hi All: I've written myself an ultra-simple CMS as a Django learning exercise. It consists of a couple of simple models and a single template to serve up articles which have previously been posted into the database from the admin interface. Everything seems to work okay, but I think my

How to get gallery thumbnails without multiple database queries

2010-07-18 Thread Martin Tiršel
Hello, I have: class Gallery(models.Model): ... class Image(models.Model): gallery = models.ForeignKey(Gallery) ... Now, on some page, I am listing all galleries and I want for every gallery first three (or three flagged, ...) images as thumbnails. I can go through

OneToOneField in "Dynamic Model" referencing another dynamic model.

2010-07-18 Thread Massimiliano della Rovere
greetings. I am using the admin interface to show data retrieved by a collector process and put in a different table for each source; each source is identified by "cliente", "num1" and "num2". At run time django scans the db for tables with proper names and builds classes modeled from an abstract

prepopulated_fields - slug and underscores

2010-07-18 Thread Martin Tiršel
Hello, if I use prepopulated_fields = {"page_slug": ("page_title",)} all spaces are replaced with hyphens. If I would like to use underscores instead, is there a way how to change it? Thanks, Martin -- You received this message because you are subscribed to the Google Groups "Django

Re: import model from other module

2010-07-18 Thread Martin Tiršel
On Sun, 18 Jul 2010 21:58:15 +0200, Andreas Pfrengle wrote: when I execute "manage.py syncdb" - however, the database table is not created. Why? What would I need to change to make it work (except copy- paste the code into my models.py)? Hello, do you have it in

Re: can foreign key fields be empty?

2010-07-18 Thread Ramiro Morales
On Sun, Jul 18, 2010 at 4:33 PM, rmschne wrote: > Thanks ... but where does "None=True" go? That should be null=True winn defining the ForeignKey field. See http://docs.djangoproject.com/en/1.2/topics/db/models/#field-options Please accept this humble suggestion: Reading

import model from other module

2010-07-18 Thread Andreas Pfrengle
Hello, is there a possibility to import a model into models.py from any other module? In my models.py I'm trying to do: #models.py: from _external_modules.django_timer import Tim #django_timer.py: from django.db import models print 'test' class Tim(models.Model): This should import a

Re: Django IDE

2010-07-18 Thread bedros
I use komodo edit openkomodo.com Komodo Edit is free, but Komodo IDE is commercial On Jul 18, 11:22 am, Subhranath Chunder wrote: > Obviously it's the user personal choice, always! :) > > Thanks, > Subhranath Chunder. > > On Sun, Jul 18, 2010 at 11:45 PM, Roald de Vries

Re: can foreign key fields be empty?

2010-07-18 Thread rmschne
Thanks ... but where does "None=True" go? On Jul 18, 7:08 pm, Subhranath Chunder wrote: > A simple "None=True" should work. > > Thanks, > Subhranath Chunder. > > > > On Sun, Jul 18, 2010 at 11:25 PM, rmschne wrote: > > I have two tables where one is a

Tutorial: Custom Feed Generation using Django Syndication Feed Framework

2010-07-18 Thread Subhranath Chunder
Hi, I was working with Django syndication feed framework sometime back, and found the existing documentation missing certain things if you are planning for customizing your feeds. So, I just wrote up a tutorial to help others get started with it. If you want, you can find it here:

Re: Django GeoIP

2010-07-18 Thread Justin Myers
I did a little bit of experimenting with pygeoip a few months ago, and it didn't seem to be _much_ slower. I wasn't doing a huge number of requests or anything, though. Depending on your application, it's definitely worth looking into. On Jul 17, 6:49 pm, haibin wrote: >

Custom dashboard view and authentication

2010-07-18 Thread scoop
Django version 1.1.1 I have a custom dashboard view set up to override the django admin default like: (r'^admin/$', 'dashboard.views.dashboard'), (r'^admin/', include(admin.site.urls)), dashboard view authenticates with the @staff_member_required decorator This has been working fine with all

Re: Django IDE

2010-07-18 Thread Subhranath Chunder
Obviously it's the user personal choice, always! :) Thanks, Subhranath Chunder. On Sun, Jul 18, 2010 at 11:45 PM, Roald de Vries wrote: > On Jul 18, 2010, at 7:19 PM, Biju Varghese wrote: > >> Eclipse is the best IDE for python and django. >> >> On Jul 17, 8:53 pm, Jitendra

Re: Django IDE

2010-07-18 Thread Roald de Vries
On Jul 18, 2010, at 7:19 PM, Biju Varghese wrote: Eclipse is the best IDE for python and django. On Jul 17, 8:53 pm, Jitendra Joshi wrote: What is the best open source Django IDE ? I would say VIM, too. Emacs should be very good too, but I've never used it.

Re: can foreign key fields be empty?

2010-07-18 Thread Subhranath Chunder
A simple "None=True" should work. Thanks, Subhranath Chunder. On Sun, Jul 18, 2010 at 11:25 PM, rmschne wrote: > I have two tables where one is a foreign key for the other. For some > of the "children" there is no "parent". Hence I want to leave the > linking field NULL

Re: Django IDE

2010-07-18 Thread Masklinn
On 2010-07-18, at 19:19 , Biju Varghese wrote: > Eclipse is the best IDE for python and django. No. -- 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

can foreign key fields be empty?

2010-07-18 Thread rmschne
I have two tables where one is a foreign key for the other. For some of the "children" there is no "parent". Hence I want to leave the linking field NULL (empty) in the child database table. I am having trouble making a queryset which finds all children without parents. I was thinking looking

Re: Django IDE

2010-07-18 Thread Biju Varghese
Eclipse is the best IDE for python and django. On Jul 17, 8:53 pm, Jitendra Joshi wrote: > What is the best open source Django IDE ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

primary key problem

2010-07-18 Thread franklin
Greetings, I created the models in a Django app using manage.py inspectdb on an existing postgres database. This seemed to work except that all the primary keys were described in the models as IntegerFields, which made them editable in the admin panel, and had to be hand-entered based on

Re: Django IDE

2010-07-18 Thread roberto
Cross platform, I like editra but I think it still needs some more maturity. It is coded with python. Ulipad is also developed using python. Pycharm is nice too but you have to pay for it as soon as testing period is over. Netbeans is great but big memory consumer and coded with java. It also has

Re: Django IDE

2010-07-18 Thread roberto
pycharm is not open-source On Jul 18, 6:32 am, Masklinn wrote: > PyCharm > > On 2010-07-18, at 11:06 , tayfur yilmaz wrote: > > > wing ide. > > > 2010/7/18 河边的汉子 > > >> pydev eric ulipad…… > > >> 2010/7/18 Juan Hernandez > >

Re: Django IDE

2010-07-18 Thread Gonzalo Delgado
El 18/07/10 06:09, Antoni Aloy escribió: > Actually the best productive "IDE" for me, and I'd like to remark the > for me, is Vim/gVim with lots of plugins. For me too, this link is useful: http://code.djangoproject.com/wiki/UsingVimWithDjango -- Gonzalo Delgado -- You

Re: How to unsubscribe from Django mailing list

2010-07-18 Thread David Ally
I'm trying to unsubscribe this email from this group, because I have another email address i'm using in group, i have unsubscribed several times but the emails are still coming in, Please help! David From: Masklinn To:

django mailing list app

2010-07-18 Thread James Hancock
I am looking for an app that can manage subscriptions to a mailing list for a web app I am making. For those who are curious I am creating a web app for managing free english classes in japan. The current site is goeigo.org. Features: allow users to subscribe and unsubscribe to the list. Allow

Re: Django IDE

2010-07-18 Thread Masklinn
PyCharm On 2010-07-18, at 11:06 , tayfur yilmaz wrote: > wing ide. > > 2010/7/18 河边的汉子 > >> pydev eric ulipad…… >> >> 2010/7/18 Juan Hernandez >> >> google: "django ide" >>> >>> :) >>> >>> >>> On Sun, Jul 18, 2010 at 12:39 AM, Tran Cao Thai <

Re: Django IDE

2010-07-18 Thread Antoni Aloy
Actually the best productive "IDE" for me, and I'd like to remark the for me, is Vim/gVim with lots of plugins. I mantein my .vimrc and plugins in http://code.google.com/p/trespams-vim/ if you wan't to see how it looks. Vim takes longer to master, in fact you can learn something new each day, but

Re: Django IDE

2010-07-18 Thread tayfur yilmaz
wing ide. 2010/7/18 河边的汉子 > pydev eric ulipad…… > > 2010/7/18 Juan Hernandez > > google: "django ide" >> >> :) >> >> >> On Sun, Jul 18, 2010 at 12:39 AM, Tran Cao Thai < >> jasonvoorhees...@gmail.com> wrote: >> >>> find them, use them and you will

Re: Django IDE

2010-07-18 Thread 河边的汉子
pydev eric ulipad…… 2010/7/18 Juan Hernandez > google: "django ide" > > :) > > > On Sun, Jul 18, 2010 at 12:39 AM, Tran Cao Thai < > jasonvoorhees...@gmail.com> wrote: > >> find them, use them and you will know the best >> >> >> On Sun, Jul 18, 2010 at 1:53 AM, Jitendra

Re: Django IDE

2010-07-18 Thread Kenneth Gonsalves
On Saturday 17 July 2010 21:23:03 Jitendra Joshi wrote: > What is the best open source Django IDE ? > geany -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this