Re: primary key auto increment with PostgreSQL and non Django standard column name

2011-05-28 Thread Malcolm Box
You need to tell django what the db column name for your pollkey field is. Look at the dbname field option in the docs. Sent from my iPhone, please excuse any typos On 28 May 2011, at 05:13, Naoko Reeves wrote: > I see if column is set to AutoField then Django won't send INSERT poll_key > as

Re: Installing Django on Ubuntu

2011-05-28 Thread Martin Tiršel
Hello, only short reply: 1.) Don't use distro packages for python packages 2.) Instal some libraries you will need (libmysqlclient-dev, python-dev, build-essential, python-setuptools, ...) 3.) Install virtualenv (either using distro package or easy_install/pip if you want/need newer one), cr

Odp: Re: Django Model Designer - UML

2011-05-28 Thread Mateusz Harasymczuk
This is a very good hint. Somehow I had to skipped the inspectdb command. There is humongous number of the DB designing tools. Thank you. -- 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@googleg

signals pre_save vs model's save()

2011-05-28 Thread Mateusz Harasymczuk
I am thinking about splitting my model's save() method over few signals. For example, stripping spaces and making string capitalized. I have even more sophisticated problems such as making an object field active set to False basing on various parameters from other fields, such as expiration dat

Re: Installing Django on Ubuntu

2011-05-28 Thread Nikhil Somaru
Hi, To add to what Martin said, I use a bash alias to activate my environments, which makes it easier than navigating to that directory every time I wanted to activate a specific environment. There's a great guide for this here: http://www.saltycrane.com/blog/2009/05/notes-

Re: signals pre_save vs model's save()

2011-05-28 Thread Marcos Moyano
You can set more than 1 [pre,post]_save signal per-model, no problem. I generally, and I'm not saying this is the django way, do it like this: app_name/ __init__.py modes.py views.py signals.py Inside my signals.py I have all my signal declarations and connections. And inside _

Odp: Re: signals pre_save vs model's save()

2011-05-28 Thread Mateusz Harasymczuk
So it should works. Great. my save() methods are much longer than models declaration, and I find it quite a bit confusing to maintain. and for sure, to tell how it works :} from PEP 20 -- The Zen of Python: " Simple is better than complex. ... If the implementation is hard to explain, it's a

Re: markup

2011-05-28 Thread Vladimir
Has anyone any experience in CKeditor or tinymce using with django ? On 26 май, 20:25, Oscar Carballal wrote: > 2011/5/26 Brett Parker : > > > On 26 May 08:27, Vladimir wrote: > >> Is there a tool to transform MS WORD file into HTML ? I know there is > >> markdown and textile, but I would prefer

Regarding Django Applicaiton

2011-05-28 Thread Amit Pal
Hello, I am Amit Pal , a undergrduate studentI need your help . I am new at Django and just run the first application on my workstation. I have to make a django applicaiton i.e. TO build a website which shows the IP location (geoip) on Google map I need your help very urgently .. Waitin

django register and login form

2011-05-28 Thread electrocoder
how do make django register and login form -- 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 django-users+unsubscr...@googlegroups.c

Re: Preselected Radio button

2011-05-28 Thread Ndungi Kyalo
thanks bruno. and thanks for the advice on tuples too. On 25 May 2011 17:30, "bruno desthuilliers" wrote: > On May 25, 4:12 pm, Ndungi Kyalo wrote: >> Am trying to pre-select a radio button created with the django.forms library : >> >> choices = forms.ChoiceField( >> widget = forms.Ra

Re: Regarding Django Applicaiton

2011-05-28 Thread Anoop Thomas Mathew
Hi Amit, Welcome to django. 1.By th way, this is not the proper way to behave in a mailing list. First learn that. 2. Run a basic app and try the tutorial at docs.djangoproject.com, only then your'll understand what to ask. 3. Be more specific while asking questions, maximum descriptive as possible

Re: Regarding Django Applicaiton

2011-05-28 Thread Amit Pal
Thanks for quick reply.. It's very important to me -- 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 django-users+unsubscr...@googl

ExtJS 4.0, Django and ExtDirect

2011-05-28 Thread Юлиян Попов
Do you know if I can use this Django Ext.Direct router with ExtJS 4.0? Do you have any examples where I can find how to do it? I'm new to JavaScript programming. Will it be easy to integrate server side form validation with ExtJS? What about file upload?

Re: primary key auto increment with PostgreSQL and non Django standard column name

2011-05-28 Thread Naoko Reeves
Malcolm, Thank you for your advice! I changed my model as follows: poll_key = models.AutoField(primary_key=True, db_column='poll_key') However, the result remain the same as shown below. If you could point me out to right direction again, I would appreciate. Thank you very much for your time.

Re: django register and login form

2011-05-28 Thread Amanjeev Sethi
Django has a nice user authentication system. Have you started reading the docs? I can point you to the auth page: https://docs.djangoproject.com/en/1.3/topics/auth/ This page gives you the basics of authentication system in Django. I have found this article to be helpful when I was learning auth

Re: @login_required & Redirect...best practice?

2011-05-28 Thread Mick
When I have a view that's @login_required -- and the user isn't logged > in -- what's the best way to deal with the URL they wanted in the > first place? Assuming they log in properly and I want to then > redirect them on to where they intended to go in the first > place...what's the best practice?

Embedded Inline Formsets

2011-05-28 Thread John Anderson
I have 3 Models: class Workflow(models.Model): name = models.CharField(max_length=255) company = models.ForeignKey(Company) class Meta: unique_together = ('name', 'company') class Milestone(models.Model): workflow = models.ForeignKey(Workflow) tasks = models.ManyToMan

choice_set.all()

2011-05-28 Thread bahare hoseini
hi there, i followed the structure in https://docs.djangoproject.com/en/dev/intro/tutorial01/ ,every thing was allright till i wrote the code: >>> "p.choice_set.all()" , then i got "AttributeError: 'function' object has no attribute choice_set" . :( can somone help?! -- You received this message