Re: Performance when retrieving data from related models

2013-03-17 Thread Peter of the Norse
You’re over thinking this by a large margin. getTendersForContractor should return a QuerySet. That way you can add things like .select_related as necessary in the view. Also, I’m a bit worried about the fact you have a function called getTendersForContractor. It really should be Tender.object

Changing User model

2013-03-17 Thread Lachlan Musicman
Hola, For a new project, I will be creating a separate Profile class for all information about my Users that isn't covered by User. One thing I did want though, was to change the login username to the email address. >From what I've read in the code and docs, am I right in presuming that I can s

Re: Auth System: clarification on usage

2013-03-17 Thread Russell Keith-Magee
On Mon, Mar 18, 2013 at 5:49 AM, fire_water wrote: > Hello, > > I am fairly new to Django but have started developing my first app. The > app will require the general public to create an account before being > allowed to post comments on the website. > > After reading through The Django > Book

Auth System: clarification on usage

2013-03-17 Thread fire_water
Hello, I am fairly new to Django but have started developing my first app. The app will require the general public to create an account before being allowed to post comments on the website. After reading through The Django Bookand The Docs

error at /accounts/register/ [Errno 101] Network is unreachable

2013-03-17 Thread Satinderpal Singh
I am using smtp for sending the mail from my system, i used the following settings for the mail, but got an error while anybody trying to register. DEFAULT_FROM_EMAIL = 'my_m...@gmail.com' EMAIL_HOST = 'smtp.gmail.com' EMAIL_HOST_USER = 'my_m...@gmail.com' EMAIL_HOST_PASSWORD = '*' EMAIL_USE_TL

Re: My Data dont be updated with my forms

2013-03-17 Thread Rafael E. Ferrero
Thanks Dan i'll try your advice !! El 16/03/2013 22:22, "Dan Gentry" escribió: > Rafael, > > This is a bit of a wild guess, but I'm wondering if your form isn't > validating. Since your template doesn't seem to be displaying any errors, > you wouldn't know it. > > Also, since the Url column is m

Problem with my logout template (and admin logout template)

2013-03-17 Thread VVilku
I have a problem with logout admin template and my logout template (from my application). Why 'admin-template' overrides my template("test_app/templates/registration/logged_out.html")? 'Login' template works fine, I have a problem only with 'logout'. Below is working example (in attachment).

Re: Settings object has no attribute 'ROOT_URLCONF' while deploying using apache and mod_wsgi

2013-03-17 Thread jirka . vejrazka
I'd look at how you reference your settings during imports. The error message spells "Settings" with uppercase "S" which feels incorrect. HTH Jirka -Original Message- From: Navid Shaikh Sender: django-users@googlegroups.com Date: Sun, 17 Mar 2013 02:20:29 To: Reply-To: django-

Settings object has no attribute 'ROOT_URLCONF' while deploying using apache and mod_wsgi

2013-03-17 Thread Navid Shaikh
Hi folks, (Before posting I searched in archive and the question is kind of similar to thread [1].) I am getting error: AttributeError: 'Settings' object has no attribute 'ROOT_URLCONF' I am using a) Django version 1.3.2. b) Apache c) mod_wsgi I followed standard Django docs [2] to implement

Re: Trouble creating super user on Django 1.5 in windows

2013-03-17 Thread Nonami Animashaun
Resolved: Apparently there was a bug in python 3.2 on windows that added an extra character to strings when the built-in input function is used. I switched my default python installation to python 3.3 and hope Django 1.5 is fully compatible with it On Friday, March 15, 2013 11:33:02 AM UTC+1

Re: Django on Jython - Newbie installation difficulties

2013-03-17 Thread Alexey Kinyov
You are welcome :) I'm just interesting what kind of task and environment do you have? I've never played with Jython and never needed to use it, so it's uncommon for me. Sure. If you need your Python code to interact "directly" (not through network API) with Java code, Jython seems reasonable sol