Tango with Django tutorial, problem getting category function to pass a variable

2013-10-27 Thread Jimmy Pants
Hey yall Here is my current views.py: http://pastebin.mozilla.org/3361332 PROBLEM: I'm trying to add an "Add Page" form to the project, per the tutorial at this step: http://www.tangowithdjango.com/book/chapters/forms.html#creating-an-add-pages-view-template-and-url-mapping When I click on

Re: Tango with Django tutorial, problem getting category function to pass a variable

2013-10-27 Thread J. Paskaruk
Thank you! My thinking was all muddled, and that at least got me moved on to a new error at least - I never lose heart, as long as I'm generating new and revealing forms of errors, but I even my errors had stalled at that point. Anyways, I just got it done. Cheers :> On Sun, Oct 27, 2013 at 7:20

Re: Psycopg2 on Mac OS X (Snow Leopard)

2013-10-27 Thread Doug Snyder
I don't have a very specific answer for your question. I just started doing my django dev on OSX coming from Ubuntu My understanding is that Home Brew is a better solution than Mac Ports, I have heard some people being very critical of Mac Ports which I think was once the best solution for python

I have a question with "ModelForm"

2013-10-27 Thread Jonathan Espinal
I have a question with "ModelForm", I have a accounts model with a foreignkey on users model, when I try to save a record using "ModelForm", the SQL "debug_toolbar" show my 2 aditionals query: "SELECT "auth_user"."id", "auth_user"."password", "auth_user"."last_login",

Re: Bulk add foreign keys in admin interface

2013-10-27 Thread Kristofer Pettijohn
I found that previously, but it doesn't seem to be quite what I need. Let me try to rephrase. I want to add two multi-selection boxes within the admin view page for the Product model. One of the multi-selections will be for Colors, and one will be for Sizes. I then want a button that the

Re: Tango with Django tutorial, problem getting category function to pass a variable

2013-10-27 Thread Patti Chen
Hi Jimmy, Could you please check your urls.py? You need to pass category_name_url in url mapping. Read this section in the book and check

Django doesn't close connections to Oracle database.

2013-10-27 Thread Igor Dakić
Hi everyone, I'm hosting django (1.4) app via httpd (apache - 2.2.21) and mod_wsgi (3.3.1) on fedora 15 and having problem with Oracle, which blocks further connections after limit is reached. I know Django connects to a db for every query, which will be changed in 1.6 with persistent

Re: Django Tutorials

2013-10-27 Thread Mario Osorio
>From a noob: I did not have a chance to read a lot, but I must agree with Pepsodent Cola: typography IS TERRIBLE to say the least, then again that might be the reason I could not read a lot ... OTOH ... why not use a decent CMS to talk about django? How about starting your blog on django

Re: Django ManyToMany performance?

2013-10-27 Thread Daniel Roseman
On Sunday, 27 October 2013 00:46:17 UTC+1, Ruturaj Dhekane wrote: > Hi all, > > I have a particular datastructure where there are two objects > 1. A document - and a lot of its properties - like content, version, > timestamp etc. > 2. Contributors - basically people represented by unique IDs > >

Re: Django ManyToMany performance?

2013-10-27 Thread Robin St.Clair
First of all , any DBMS that is misused by design or in operation will give poor performance.. There is an excellent mature database available for Django developers, PostgreSQL. It works fine on the same machine as you are developing on. MongoDB is NOT a suitable DB for general purposes. It is

Re: Psycopg2 on Mac OS X (Snow Leopard)

2013-10-27 Thread Skip Montanaro
Thanks for the response. I only mentioned MacPorts to demonstrate that when psycopg2 was built, pip couldn't have found libssl 1.x there. I routinely build my own Python instances. The venv version of Python is a 2.7.5+ version built from hg. Skip -- You received this message because you are

Duplicating production data for specific TestCase

2013-10-27 Thread Burak Emre Kabakcı
I need an actual data created by users in my special TestCase class. Django automatically create another database and execute syndb command which loads data into multiple tables (contenttypes, auth_permissions etc.) and fixtures and when I try to import my dump in setUp() method, it conflicts

Multiple Signup forms

2013-10-27 Thread Franco Alarcon
Greetings everyone, I know that maybe this is not the best place to ask, but I already asked in the django-alluth forum without luck, so here I'm. I'm developing an application in which exists two kind of user and I have to show a different singup form for each one. The first thing that I

Re: Django Tutorials

2013-10-27 Thread Diogene Laerce
I find it nice. A table of contents with links to each articles would be great. ;) On 10/28/2013 01:50 AM, Mario Osorio wrote: From a noob: I did not have a chance to read a lot, but I must agree with Pepsodent Cola: typography IS TERRIBLE to say the least, then again that might be the