Re: ANN: eGenix mxODBC Connect - Python Database Interface 2.0.1

2012-09-27 Thread Russell Keith-Magee
On Thu, Sep 27, 2012 at 3:10 PM, M.-A. Lemburg wrote: > Russell Keith-Magee wrote: >> On Wed, Sep 26, 2012 at 8:11 PM, winniehell wrote: >>> We had a little private discussion about this. Is this list meant to be >>> for product announcements? I personally don't like to get product >>> announceme

IntegrityError at /add/ PRIMARY KEY must be unique

2012-09-27 Thread enemybass
http://wklej.org/id/837631/ - models, traceback, urls, views, database structure After adding data to database I have error (data is added correctly but displays an error): Exception Type: IntegrityError at /add/Exception Value: PRIMARY KEY must be unique def add(request): if req

Unable to Store Decimal values to DecimalField

2012-09-27 Thread Laxmikant Gurnalkar
Hi , While storing decimal values to database I have following error. Exception in storeFormatMetadataTraceback (most recent call last): File "/var/opt/igp_acfs/acfs/bookproducts_manager.py", line 118, in storePricing book.save() File "/var/opt/igp_acfs/acfs/models.py", line 529, in s

Re: Unable to Store Decimal values to DecimalField

2012-09-27 Thread Sergey Fursov
As I see from the stack, error produced by book.save() in File "/var/opt/igp_acfs/acfs/bookproducts_manager.py", line 118 but in you code I can't this line of code. Do you really show the code, that related to error 2012/9/27 Laxmikant Gurnalkar > Hi , > >While storing decimal values to da

Re: Upgraded to Django 1.4.1 and now I have one database connection

2012-09-27 Thread Tom Evans
On Wed, Sep 26, 2012 at 12:34 PM, Ricardo Grizonic wrote: > Hey everyone, > > I recently upgraded from Django 1.3 to 1.4.1 and now it seems that for every > new thread, a new database connection to postgresql is created. I'm using: > > from django.db import connection > > which, according to the d

Re: New Project 403 Forbidden Error

2012-09-27 Thread Amyth Arora
What View are you getting the error on ? can you post the code to the View and the template ? Thanks & Regards Amyth [Admin - Techstricks] Email - aroras.offic...@gmail.com, ad...@techstricks.com Twitter - @mytharora http://techstricks.com/ -- You received this mess

Re: syncdb in GeoDjango tutorial

2012-09-27 Thread Amyth Arora
post the code to WorldBorder Model. Thanks -- 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

A BBS based on Django

2012-09-27 Thread 月忧茗
Hi, This is a Simple project for learning Django. It's a bbs for chinese users. So, there are some Chinese Words in JS file. It hosted at bitbucket originally, Now, I move it to github:https://github.com/yueyoum/python-gears -- You received this message because you are subscribed to th

Re: ANN: eGenix mxODBC Connect - Python Database Interface 2.0.1

2012-09-27 Thread M.-A. Lemburg
Russell Keith-Magee wrote: > On Wed, Sep 26, 2012 at 8:11 PM, winniehell wrote: >> We had a little private discussion about this. Is this list meant to be >> for product announcements? I personally don't like to get product >> announcements on mailing lists because I'm in most cases not interested

发生了什么,

2012-09-27 Thread Huahui Zhou
[?] -- 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.com. For more options, visit this group

Re: ANN: eGenix mxODBC Connect - Python Database Interface 2.0.1

2012-09-27 Thread M.-A. Lemburg
Russell Keith-Magee wrote: > On Thu, Sep 27, 2012 at 3:10 PM, M.-A. Lemburg wrote: >> Russell Keith-Magee wrote: >>> On Wed, Sep 26, 2012 at 8:11 PM, winniehell wrote: We had a little private discussion about this. Is this list meant to be for product announcements? I personally don't l

Re: IntegrityError at /add/ PRIMARY KEY must be unique

2012-09-27 Thread Amyth Arora
Not quite sure, but it seems like the save() method is being called twice so it is trying to create insert an entry with a primary key that already exists. On Thu, Sep 27, 2012 at 2:23 PM, enemybass wrote: > http://wklej.org/id/837631/ - models, traceback, urls, views, database > structure > >

Re: Unable to Store Decimal values to DecimalField

2012-09-27 Thread Amyth Arora
What other integer fields are there in your model ? On Thu, Sep 27, 2012 at 2:35 PM, Sergey Fursov wrote: > As I see from the stack, error produced by book.save() in File > "/var/opt/igp_acfs/acfs/bookproducts_manager.py", line 118 but in you > code I can't this line of code. Do you really sh

Re: 发生了什么,

2012-09-27 Thread Alexis Roda
Al 27/09/12 10:10, En/na Huahui Zhou ha escrit: http://stackoverflow.com/questions/6778638/manage-py-runserver-error-errno-10013 -- 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.c

Regarding Template rendering

2012-09-27 Thread raju akula
I am new to django, iam facing some issue with template , i am having tabs,on click of each tab i need to load the template with the help of ajax. this is working fine if i use this script code in same html file, As per my requirement i have to use the external javascript file to maintain

Re: Regarding Template rendering

2012-09-27 Thread Joel Goldstick
On Thu, Sep 27, 2012 at 9:53 AM, raju akula wrote: > > > I am new to django, iam facing some issue with template , > > > i am having tabs,on click of each tab i need to load the template with the > help of ajax. this is working fine if i use this script code in same html > file, > As per my requi

Re: I am in trouble

2012-09-27 Thread Tom Evans
On Wed, Sep 26, 2012 at 1:48 PM, hetwen wrote: > hello every, >When I configure apache,mod_pyton and mod_pywebsocket on > windows7,some errors occurred,this is a part of my httpd.conf, If you are still stuck with this, consider asking on a relevant mailing list. This list is for Django, w

Re: Django Tutorial Equivalent to Ruby on Rails Tutorial by Michael Hartl

2012-09-27 Thread Fred Stluka
How current is this book? Intro says it may not be. It seems to be very well-written, but I don't want to be reading stuff that is too old. I find more recent reference info, as well as good overviews, guides, etc. at: https://docs.djangoproject.com/ --Fred -

Pinterest like UI implementation

2012-09-27 Thread Nirmal Sharma
Hi, I am creating a website in django where in i am trying to display all the comments and pictures like Pinterest. Can somebody help me on how to implement the same easily in django. Is there any easy way to implement the Pinterest like UI in django? Regards ~Nirmal -- You received this mess

Virtualenvs and editing contrib stuff manually

2012-09-27 Thread Chris Pagnutti
Hi. First-time poster here. Feel free to point out any rules I'm not following. I've been looking around for how to make the django.contrib.auth User classe's "email" field to be unique and required. There are bunches of ways to do it, but it's just s darn easy to go into the source and

Re: Virtualenvs and editing contrib stuff manually

2012-09-27 Thread Babatunde Akinyanmi
No you won't be smitten. As for isolating your edited django, you can do that but then you would have to be responsible for improving the code base by yourself. Also, your edit might inadvertently break django or introduce bugs that you might find difficult to trace and solve or that might change

Invitation to use Google Talk

2012-09-27 Thread Google Talk
--- You've been invited by Robert Kvaal to use Google Talk. If you already have a Google account, login to Gmail and accept this chat invitation: http://mail.google.com/mail/b-90f4d8d70d-e60ea03784-aKi-Kg_vzoaDZXyru790CzdHuAY To

Re: Geodjango Tutorial: SRID problem when loading data from shapefile to PostGIS table

2012-09-27 Thread David Gomez
I'm having the same issue. I see that you say that you change the postgress manually. Can you tell me where can I find that file. I'm new with django. Thanks On Monday, October 17, 2011 5:06:39 PM UTC-4, Pauline Emery wrote: > > Dear all, > > I'm having a problem doing the section "LayerMapping"

Re: Invitation to use Google Talk

2012-09-27 Thread Rivsen
What's this? 2012/9/28 Google Talk > --- > > You've been invited by Robert Kvaal to use Google Talk. > > If you already have a Google account, login to Gmail and accept this chat > invitation: > > http://mail.google.com/mail/b-9

conditional model validation

2012-09-27 Thread Lachlan Musicman
Hola, I'm searching without much luck and can't see the answer in the docs. Am wanting to override the is_valid() method on a model (I think that's what I want). Basically, I have a choices field, and if one of those choices is selected, then I want a description field to be not blank/not the em

Re: IntegrityError at /add/ PRIMARY KEY must be unique

2012-09-27 Thread akaariai
.create() creates the object into DB, then .save(force_insert=True) tries to insert the same object with the same ID again -> integrity error. Seems like you don't need the second save at all. - Anssi On 27 syys, 15:39, Amyth Arora wrote: > Not quite sure, but it seems like the save() method is

Re: Invitation to use Google Talk

2012-09-27 Thread Gerald Klein
I have no idea On Thu, Sep 27, 2012 at 6:22 PM, Rivsen wrote: > What's this? > > 2012/9/28 Google Talk > >> --- >> >> You've been invited by Robert Kvaal to use Google Talk. >> >> If you already have a Google account, login to

Re: Virtualenvs and editing contrib stuff manually

2012-09-27 Thread Russell Keith-Magee
On Fri, Sep 28, 2012 at 2:02 AM, Chris Pagnutti wrote: > Hi. First-time poster here. Feel free to point out any rules I'm not > following. > > I've been looking around for how to make the django.contrib.auth User > classe's "email" field to be unique and required. There are bunches of ways > to

Google Talk 使用邀请

2012-09-27 Thread Google Talk
--- Rivsen邀请您使用 Google Talk。 如果您已经拥有 Google 帐户,请登录 Gmail 并接受此聊天邀请: http://mail.google.com/mail/b-83386e39b8-0ec258bcf0-y0Clo0X-tRU1nzWTVIlkF9WhyM4 要注册 Google 帐户并开始使用 Google Talk,您可以访问: http://mail.google.com/mail/a-83386e39b8-0e

Re: Invitation to use Google Talk

2012-09-27 Thread Russell Keith-Magee
On Fri, Sep 28, 2012 at 9:55 AM, Dennis Lee Bieber wrote: > On Fri, 28 Sep 2012 07:22:56 +0800, Rivsen > declaimed the following in gmane.comp.python.django.user: > >> What's this? >> >> 2012/9/28 Google Talk >> > > Probably Google's next attempt to corrupt the "Groups" system... More l

django list display fields from two models

2012-09-27 Thread keeran
What am doing wrong in below admin & model.py; I expect the list display will display values of all three column values from list_display, but it doesnt; Particularly, the values of item_status & solution note not getting shown in my admin view; Admin.py: class ItemAdmin(admin.ModelAdmin):

'DatabaseOperations' object has no attribute 'geo_db_type' error when doing a syncdb

2012-09-27 Thread Gady Pitaru
When I deploy a GeoDjango app to Heroku I'm getting the following error: *AttributeError: 'DatabaseOperations' object has no attribute 'geo_db_type'* I've tried quite a few things to fix it and lots of research, but still can't get rid of it. Instead of duplicating my StackOverflow question, yo

Sessionid in plain text Django 1.2 error emails

2012-09-27 Thread Bjorn Tipling
Hi, Is there any simple way of taking the sessionid out of the django error emails that get sent in plain text when there's a 500? We're using django 1.2. Thanks, Bjorn -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussio

last changed by User

2012-09-27 Thread Lachlan Musicman
Hola, I wanted to display the user that last changed a model instance. It's hard to search for because the username/email-as-login makes up the majority of the search results. Despite this, I've found a couple of pages, with this being the most like what I want: https://code.djangoproject.com/w

Re: last changed by User

2012-09-27 Thread Lachlan Musicman
On Friday, September 28, 2012, Lachlan Musicman wrote: > > I wanted to display the user that last changed a model instance. > > Despite this, I've found a couple of pages, with this being the most like > what I want: > > https://code.djangoproject.com/wiki/CookBookNewformsAdminAndUser > > I like t

i am getting ConfigParser.NoSectionError: No section: 'database' plz help

2012-09-27 Thread Navnath Gadakh
ConfigParser.NoSectionError: No section: 'database' -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/0uRjwXdd_jIJ. To post to this group, send email to djang

Re: i am getting ConfigParser.NoSectionError: No section: 'database' plz help

2012-09-27 Thread Lachlan Musicman
On Fri, Sep 28, 2012 at 4:05 PM, Navnath Gadakh wrote: > ConfigParser.NoSectionError: No section: 'database' Off the top of my head, I would suggest you have nothing in the section DATABASES in your settings.py Does your settings.py have something that looks like: DATABASES = { 'default': {

Re: last changed by User

2012-09-27 Thread Greg Donald
On Thu, Sep 27, 2012 at 10:28 PM, Lachlan Musicman wrote: > I wanted to display the user that last changed a model instance. I use django-reversion for this: https://github.com/etianen/django-reversion -- Greg Donald -- You received this message because you are subscribed to the Google Grou

Re: i am getting ConfigParser.NoSectionError: No section: 'database' plz help

2012-09-27 Thread Navnath Gadakh
my setting.py is and a have also created a new setting.conf .may be there is problem of path,plz help. thnks in adv # Django settings for kasakooproj project. import os import ast from ConfigParser import RawConfigParser config = RawConfigParser() PROJECT_PATH = os.path.realpath(os.path.dirna

Re: i am getting ConfigParser.NoSectionError: No section: 'database' plz help

2012-09-27 Thread Lachlan Musicman
On Fri, Sep 28, 2012 at 4:15 PM, Lachlan Musicman wrote: > On Fri, Sep 28, 2012 at 4:05 PM, Navnath Gadakh > wrote: >> ConfigParser.NoSectionError: No section: 'database' Although a quick google of the phrase is showing up lots of mysql-python hits - is python-mysqldb (for ubuntu, YMMV) install

Re: i am getting ConfigParser.NoSectionError: No section: 'database' plz help

2012-09-27 Thread Navnath Gadakh
yes mysql db is installed on my ubuntu -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/jGY4wqQA14sJ. To post to this group, send email to django-users@googl

filter() and lists with DateTime field not implemented?

2012-09-27 Thread Robert Steckroth
Hello Gang, I have the function below which returns this error -> "FieldError at /by_date/ Join on field 'first_day_start_time' not permitted. Did you misspell 'month' for the lookup type?" The function will work in other objects (even with model relationships), but not when the __month filter is

Re: last changed by User

2012-09-27 Thread Laxmikant Gurnalkar
Hello. You can Hack the *Default models* & add new fields in User Table created_datetime, modified_datetime & created by, modified by etc. Cheers On Fri, Sep 28, 2012 at 9:03 AM, Lachlan Musicman wrote: > On Friday, September 28, 2012, Lachlan Musicman wrote: > >> >> I wanted to display

Re: last changed by User

2012-09-27 Thread Mike Dewhirst
On 28/09/2012 2:16pm, Greg Donald wrote: On Thu, Sep 27, 2012 at 10:28 PM, Lachlan Musicman wrote: I wanted to display the user that last changed a model instance. I use django-reversion for this: https://github.com/etianen/django-reversion See also Pro Django by Marty Allchin and https

Re: Django Tutorial Equivalent to Ruby on Rails Tutorial by Michael Hartl

2012-09-27 Thread hrishy
Hi No there is no exact equivalent of Micheal Hartl's RoR for python. However this may get you STARTED http://www.youtube.com/watch?v=hp5ymCrD9yw http://www.youtube.com/watch?v=lj01NigwU7Q From: Fred Stluka To: django-users@googlegroups.com Sent: Thursday, 2

Re: Django Tutorial Equivalent to Ruby on Rails Tutorial by Michael Hartl

2012-09-27 Thread hrishy
And some advanced http://www.youtube.com/watch?v=t_ziKY1ayCo&feature=related From: hrishy To: "django-users@googlegroups.com" Sent: Friday, 28 September 2012, 10:36 Subject: Re: Django Tutorial Equivalent to Ruby on Rails Tutorial by Michael Hartl Hi No

Re: last changed by User

2012-09-27 Thread Mike Dewhirst
On 28/09/2012 3:01pm, Mike Dewhirst wrote: On 28/09/2012 2:16pm, Greg Donald wrote: On Thu, Sep 27, 2012 at 10:28 PM, Lachlan Musicman wrote: I wanted to display the user that last changed a model instance. I use django-reversion for this: https://github.com/etianen/django-reversion See

Re: conditional model validation

2012-09-27 Thread Babatunde Akinyanmi
Let me try to assist. A forms is_valid method causes 3 types of cleaning methods to be run. Based on that, I'm sure you really don't need to override it. I really don't understand what you mean by "I want the description field to be not blank/not the empty string" so maybe I could have been of mor