Re: PIL issue opening an image file

2010-11-26 Thread Sithembewena Lloyd Dube
3:16 pm, Sithembewena Lloyd Dube wrote: > > Bruno, the file being uploaded has nothing to do with the deployment > server. > > When you edit your Google profile to change your avatar, does the file > > upload dialogue browse a Google server? > > No. But that has nothing

Re: PIL issue opening an image file

2010-11-26 Thread Sithembewena Lloyd Dube
Thanks for breaking this down, Tom. I'll play around with it and see if I'm grasping this. Regards, Lloyd On Fri, Nov 26, 2010 at 5:55 PM, Tom Evans wrote: > On Fri, Nov 26, 2010 at 3:44 PM, Sithembewena Lloyd Dube > wrote: > > Thanks Daniel, makes sense. I gather that w

Re: PIL issue opening an image file

2010-11-26 Thread Sithembewena Lloyd Dube
n to be uncouth about it. You were also once devoid of comprehension, and you gradually attained it, in no small part thanks to others' patience and advice. Regards, Lloyd On Fri, Nov 26, 2010 at 5:58 PM, Sithembewena Lloyd Dube wrote: > Thanks for breaking this down, Tom. I'll pl

Re: PIL issue opening an image file

2010-11-26 Thread Sithembewena Lloyd Dube
Kate, that was... On Fri, Nov 26, 2010 at 9:07 PM, Sithembewena Lloyd Dube wrote: > So, I am making headway. Thanks to the gentlemen who nudged me onto the > right path. > > Quick word to Bruno Desthuilliers: while I appreciate that you have greater > experience and might find oth

Re: PIL issue opening an image file

2010-11-26 Thread Sithembewena Lloyd Dube
Steve Holden wrote: > On 11/26/2010 9:58 AM, Sithembewena Lloyd Dube wrote: > > Thanks for breaking this down, Tom. I'll play around with it and see if > > I'm grasping this. > > For the record, while it might have seemed to you that Bruno was being > "snooty

Django admin photo upload

2010-11-29 Thread Sithembewena Lloyd Dube
hould be asking is, which attribute or method of the ImageField property allows me to access the selected file as a PIL File object? Please help? -- Regards, Sithembewena Lloyd Dube http://www.lloyddube.com -- You received this message because you are subscribed to the Google Groups "Django users

Re: Django admin photo upload

2010-11-29 Thread Sithembewena Lloyd Dube
ps.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Regards, Sithembewena Lloyd Dube http://www.lloyddube.com -- You received th

Re: Django admin photo upload

2010-11-29 Thread Sithembewena Lloyd Dube
@Kenneth, thanks again. easy_thumbnail cuts it just fine. Regards, Lloyd On Mon, Nov 29, 2010 at 1:01 PM, Sithembewena Lloyd Dube wrote: > @ Venkatraman, and @kenneth - thanks gentlemen. I am trying out > easy_thumbnail as it looks light enough for my needs. django-photologue > looks

Re: Django in production on Windows

2010-12-01 Thread Sithembewena Lloyd Dube
ost to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Regards, Sithem

Re: Django in production on Windows

2010-12-01 Thread Sithembewena Lloyd Dube
glegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Regards, Sithembewena Lloyd Dube -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Re: Django in production on Windows

2010-12-01 Thread Sithembewena Lloyd Dube
il to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Regards, Sithembewena Lloyd Dube -- You received this

Records detected by admin site, but not displayed?

2010-12-02 Thread Sithembewena Lloyd Dube
Lloyd Dube -- 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 group, send email to django-users+unsubscr...@googlegroups.com. For more options,

Re: Django in production on Windows

2010-12-02 Thread Sithembewena Lloyd Dube
gt; > > > > > The only undiscovered issue to us is whether we can launch a heavy > > > > > loaded website in Django under Windows (IIS) + MSSQL. Would > appreciate > > > > > any comment please. > > > > > > > Anthony > > -- > Yo

Re: Django in production on Windows

2010-12-02 Thread Sithembewena Lloyd Dube
Hi Anthony, if you could share, what would the nature of your requirements be? Do you just want to deploy Django web apps? I am trying to think of ways you could do this - although I honestly think it sounds like you need to go Linux. Regards, Lloyd -- You received this message because you are

Re: Fwd: Django in production on Windows

2010-12-02 Thread Sithembewena Lloyd Dube
ngo users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en.

Re: Fwd: Django in production on Windows

2010-12-02 Thread Sithembewena Lloyd Dube
from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Regards, Sithembewena Lloyd Dube -- You received this message because you are subscribed to the Go

Re: Records detected by admin site, but not displayed?

2010-12-03 Thread Sithembewena Lloyd Dube
s where the field is. Unfortunately, this seems to break the admin. Is there a way I can get the extension model in code from the default, or extended, model? Thanks, Lloyd On Thu, Dec 2, 2010 at 6:46 PM, wayne wrote: > On Dec 2, 8:15 am, Sithembewena Lloyd Dube wrote: > > Hi all,

Suppressing validation

2010-12-07 Thread Sithembewena Lloyd Dube
that this is what's causing my form not to save. -- Regards, Sithembewena Lloyd Dube -- 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

Re: Suppressing validation

2010-12-07 Thread Sithembewena Lloyd Dube
Neat Tom, thanks! Lloyd On Tue, Dec 7, 2010 at 4:35 PM, Tom Evans wrote: > On Tue, Dec 7, 2010 at 2:32 PM, Sithembewena Lloyd Dube > wrote: > > Hi all, > > > > How would I suppress validation on a django.forms control instance? Eg, I > > have: > &g

Form attachment (FileField) upload not saving.

2010-12-08 Thread Sithembewena Lloyd Dube
--END CODE--- Any ideas why saving a record from the contact form posts twice, and why the file attachment is not uploaded? Thanks! -- Regards, Sithembewen

Re: Form attachment (FileField) upload not saving.

2010-12-08 Thread Sithembewena Lloyd Dube
s posting twice. ideas please? Thanks. On Wed, Dec 8, 2010 at 12:02 PM, Sithembewena Lloyd Dube wrote: > Hi all, > > I have a contact form that is supposed to save a message as well as a file > upload. When I use the admin site, I can save a contact record with a file > upload of any

Re: Form attachment (FileField) upload not saving.

2010-12-08 Thread Sithembewena Lloyd Dube
100% fixed. I was calling save() on the form twice, once in form_capture and once in form_errors. :( On Wed, Dec 8, 2010 at 12:34 PM, Sithembewena Lloyd Dube wrote: > 50% solved - I passed request.FILES into the form's constructor as > indicated below: > > http://docs.djangop

File upload fail on live server

2010-12-09 Thread Sithembewena Lloyd Dube
would anybody have an idea what is going on? -- Regards, Sithembewena Lloyd Dube -- 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 group, sen

Re: File upload fail on live server

2010-12-09 Thread Sithembewena Lloyd Dube
, Sithembewena Lloyd Dube wrote: > Hi guys, > > I have a form where I use a FileField to upload a file to the server and > this works fine on my local machine. > > However, my live application fails to upload the file (ie the FileField is > empty in the database after uploading

Re: File upload fail on live server

2010-12-09 Thread Sithembewena Lloyd Dube
, Kenneth Gonsalves wrote: > On Thu, 2010-12-09 at 15:11 +0530, Kenneth Gonsalves wrote: > > On Thu, 2010-12-09 at 10:20 +0200, Sithembewena Lloyd Dube wrote: > > > However, my live application fails to upload the file (ie the > > > FileField is > > > empty in the da

Re: File upload fail on live server

2010-12-09 Thread Sithembewena Lloyd Dube
t 12:01 PM, Sithembewena Lloyd Dube wrote: > Hi Kenneth, > > The FileField is optional indeed. Surely it should be populated where a > file is provided though? > > Update: turns out I have not installed the PIL on my staging server. Am > doing so now and retesting. this m

Re: File upload fail on live server

2010-12-09 Thread Sithembewena Lloyd Dube
Thanks Kenneth, am trying to figure out how to set the MEDIA_ROOT to the folder outside the project. On Thu, Dec 9, 2010 at 12:58 PM, Kenneth Gonsalves wrote: > On Thu, 2010-12-09 at 12:47 +0200, Sithembewena Lloyd Dube wrote: > > Is it proper/ feasible to save media to and serve i

Re: File upload fail on live server

2010-12-09 Thread Sithembewena Lloyd Dube
tions, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Regards, Sithembewena Lloyd Dube -- 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. T

Re: File upload fail on live server

2010-12-10 Thread Sithembewena Lloyd Dube
Good idea, Kenneth. I will do so. Thanks. On Fri, Dec 10, 2010 at 8:00 AM, Kenneth Gonsalves wrote: > On Thu, 2010-12-09 at 14:57 +0200, Sithembewena Lloyd Dube wrote: > > Thanks Kenneth. I tried your recommendation, the file is not uploaded > > at > > all. I'm stumped

Re: moderation of djangosearch.com

2010-02-10 Thread Sithembewena Lloyd Dube
t; To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Regar

Re: Passenger 57 - a Django query problem

2010-02-17 Thread Sithembewena Lloyd Dube
re subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > h

Re: Passenger 57 - a Django query problem

2010-02-17 Thread Sithembewena Lloyd Dube
ould be interesting to > > hear from the OP what his thoughts are. > > Indeed. > > -- > 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 un

Re: Passenger 57 - a Django query problem

2010-02-17 Thread Sithembewena Lloyd Dube
ail to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Regards, Sithembewena Lloyd Dube

Re: Passenger 57 - a Django query problem

2010-02-17 Thread Sithembewena Lloyd Dube
"Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?h

Re: Passenger 57 - a Django query problem

2010-02-17 Thread Sithembewena Lloyd Dube
ail to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Regards, Sithembewena Lloyd Dube

Re: Passenger 57 - a Django query problem

2010-02-17 Thread Sithembewena Lloyd Dube
send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Regards, Sithembewena Lloyd Dube

Re: Passenger 57 - a Django query problem

2010-02-17 Thread Sithembewena Lloyd Dube
ail to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Regards, Sithembewena Lloyd Dube

Re: Passenger 57 - a Django query problem

2010-02-18 Thread Sithembewena Lloyd Dube
Apologies for my handling of this matter earlier. It was not the Python way :) Bruno, feel welcome here. On Thu, Feb 18, 2010 at 11:25 AM, Atamert Ölçgen wrote: > Hi Sithembewena, > > > On Thursday 18 February 2010 00:27:10 Sithembewena Lloyd Dube wrote: > > Emily

Re: Passenger 57 - a Django query problem

2010-02-19 Thread Sithembewena Lloyd Dube
> > On Thursday 18 February 2010 00:27:10 Sithembewena Lloyd Dube wrote:> > Emily provided an answer according to what she understood from the OP. No > > > harm in doing that, at least not worse than no attempt at giving a > > > solution.. > > > > > I th

Re: Passenger 57 - a Django query problem

2010-02-20 Thread Sithembewena Lloyd Dube
> To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Regards, Sithembewena Lloyd Dube http://www.lloyddube.com -- You receive

Re: Passenger 57 - a Django query problem

2010-02-20 Thread Sithembewena Lloyd Dube
wise Atamert? On Thu, Feb 18, 2010 at 11:25 AM, Atamert Ölçgen wrote: > Hi Sithembewena, > > > On Thursday 18 February 2010 00:27:10 Sithembewena Lloyd Dube wrote: > > Emily provided an answer according to what she understood from the OP. No > > harm in doing that, at least

Re: Passenger 57 - a Django query problem

2010-02-20 Thread Sithembewena Lloyd Dube
> > > On Thursday 18 February 2010 00:27:10 Sithembewena Lloyd Dube wrote: > > Emily provided an answer according to what she understood from the OP. No > > harm in doing that, at least not worse than no attempt at giving a > > solution.. > > > > I think that people

Re: Passenger 57 - a Django query problem

2010-02-21 Thread Sithembewena Lloyd Dube
l Keith-Magee > wrote: > > On Sun, Feb 21, 2010 at 4:11 AM, Sithembewena Lloyd Dube >> wrote: >> >>> I wonder what Atamert the peacemaker has to say now, since the person to >>> whose defense he came admitted he was wrong. Amazing to note that Atamert

Django application performance estimates?

2012-03-15 Thread Sithembewena Lloyd Dube
n terms of scalability that us non-technical people can be more comfortable with...", such as: - concurrent active users - emails per day - lessons uploaded on the system - etc. How do I address this sort of query? -- Regards, Sithembewena Lloyd Dube -- You received this message

Re: Django application performance estimates?

2012-03-15 Thread Sithembewena Lloyd Dube
e: > On Thu, 2012-03-15 at 09:46 +0200, Sithembewena Lloyd Dube wrote: > > - concurrent active users > >- emails per day > >- lessons uploaded on the system > >- etc. > > > > > > How do I address this sort of query? > > actually thi

Re: Django application performance estimates?

2012-03-15 Thread Sithembewena Lloyd Dube
Xavier, thanks for the link. I'm watching it and I reckon it could help address the query. On Thu, Mar 15, 2012 at 10:21 AM, Xavier Ordoquy wrote: > > Le 15 mars 2012 à 09:04, kenneth gonsalves a écrit : > > > On Thu, 2012-03-15 at 09:46 +0200, Sithembewena Lloyd Dube wrot

Re: Django application performance estimates?

2012-03-15 Thread Sithembewena Lloyd Dube
On Thu, 2012-03-15 at 10:22 +0200, Sithembewena Lloyd Dube wrote: > > Thanks for the response. The project will be hosted at WebFaction > > (which I > > recommended, having used their services with great results in the > > past). It > > will start off on shared hosting and could e

Re: Django application performance estimates?

2012-03-17 Thread Sithembewena Lloyd Dube
expensive to re-write an entire web application in a scalable >> manner if it's not done so in the beginning. I don't think you'd have this >> problem with Django unless you're doing something very custom and >> server-dependent. In my opinion, paying $1,00

Re: Permission denied when saving a record with an ImageField in the model

2012-03-17 Thread Sithembewena Lloyd Dube
make sure your server has write permissions on the > home/projects directory. > > Sent from my iPhone > > On Mar 17, 2012, at 9:02 AM, Sithembewena Lloyd Dube > wrote: > > Hi all, > > I have a model with an ImageField and when I try to save a record in the > admin

Re: Permission denied when saving a record with an ImageField in the model

2012-03-17 Thread Sithembewena Lloyd Dube
3641/django-media-upload-errno-13-permission-denied > > On Sat, Mar 17, 2012 at 10:33 AM, Sithembewena Lloyd Dube < > zebr...@gmail.com> wrote: > >> Hi Jonathan, >> >> Thanks for the response. How do I do that? I ran *sudo chmod -R a+rwX >> Projects/* and I

Re: Trouble setting up website with mysql as backend

2012-03-17 Thread Sithembewena Lloyd Dube
on > strict. The error from the traceback looks to be from the > file > "/usr/local/lib/python2.7/site-packages/django/contrib/auth/management/__init__.py" > which is django contrib application. What should i do to fix this issue. Am > using django version 1.3.1. Please help.

Re: Trouble setting up website with mysql as backend

2012-03-17 Thread Sithembewena Lloyd Dube
/www.memset.com/ > > Memset Ltd., registration number 4504980. 25 Frederick Sanger Road, > Guildford, Surrey, GU2 7YD, UK. > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send emai

Re: Trouble setting up website with mysql as backend

2012-03-18 Thread Sithembewena Lloyd Dube
; On Sun, Mar 18, 2012 at 6:27 AM, Sithembewena Lloyd Dube < > zebr...@gmail.com> wrote: > >> ^^ What Alasdair said. If you still cannot solve this after shortening >> your models' names, can we see your models? >> >> >> On Sat, Mar 17, 2012 at 11:54 P

Having all objects defined in Models.py editable in one admin page

2012-03-21 Thread Sithembewena Lloyd Dube
. application. Is there a sensible way to address this problem? -- Regards, Sithembewena Lloyd Dube -- 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

Re: Having all objects defined in Models.py editable in one admin page

2012-03-21 Thread Sithembewena Lloyd Dube
logic. On Wed, Mar 21, 2012 at 8:12 PM, Andre Terra wrote: > Try writing your own views rather than expanding the Admin. It's well > worth it in the long run! > > > Cheers, > AT > > On Wed, Mar 21, 2012 at 1:50 PM, Sithembewena Lloyd Dube < > zebr...@gmail.com>

Re: find django template developers

2012-03-21 Thread Sithembewena Lloyd Dube
ps.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Regards, Sithembewena Lloyd Dube -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Filtering a second admin dropdown's contents based on the first dropdown's selection

2012-03-23 Thread Sithembewena Lloyd Dube
**kwargs) Any ideas? -- Regards, Sithembewena Lloyd Dube -- 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+u

Django 1.4 - how to display a success message on form save

2012-06-26 Thread Sithembewena Lloyd Dube
anks in advance. -- Regards, Sithembewena Lloyd Dube -- 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+uns

Re: Django 1.4 - how to display a success message on form save

2012-06-26 Thread Sithembewena Lloyd Dube
s 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 at > http://groups.google.com/group/django-users?hl=en. > > -- Regards, Sithembewena Lloyd Dube

Re: Django 1.4 - how to display a success message on form save

2012-06-26 Thread Sithembewena Lloyd Dube
I did do: #if form.save(): success = form.errors['success'] On Tue, Jun 26, 2012 at 2:35 PM, Sithembewena Lloyd Dube wrote: > @newkedison, thank you for the suggestion. I wish to stay on the page > without doing any redirects. > > @Jirka - thanks. I saw somethi

Generating random alphanumeric codes

2012-06-26 Thread Sithembewena Lloyd Dube
Hi, Would anyone have tips on how to generate random 4-digit alphanumeric codes in python? Also, how does one calculate the number of possible combinations? Thanks in advance. -- Regards, Sithembewena Lloyd Dube -- You received this message because you are subscribed to the Google Groups

Excluding items from a queryset

2012-07-16 Thread Sithembewena Lloyd Dube
=cat.pk) How can I remove those categories (please note, I do not intend to delete them)? Thanks. -- Regards, Sithembewena Lloyd Dube -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: Excluding items from a queryset

2012-07-17 Thread Sithembewena Lloyd Dube
Thanks, everyone. I sort of realised I'd need an annotation but wasn't too clued up on its use. This is just what I needed. Best wishes. On Tue, Jul 17, 2012 at 2:05 AM, akaariai wrote: > On 16 heinä, 14:38, Sithembewena Lloyd Dube wrote: > > Hi everyone, > >

Prepopulating a contact form

2012-07-18 Thread Sithembewena Lloyd Dube
= reg_user.name my_form.email_address = reg_user.email_address # and so on ... Any ideas? Thanks ... -- Regards, Sithembewena Lloyd Dube -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: Prepopulating a contact form

2012-07-18 Thread Sithembewena Lloyd Dube
(initial=initial) > > > On Wed, Jul 18, 2012 at 11:23 AM, Sithembewena Lloyd Dube < > zebr...@gmail.com> wrote: > > Hi everyone, > > > > I have a contact form in my app and would like to prepopulate it with > user > > details where a user is logge

Re: SuspiciousOperation exception on ImageField upload

2012-07-18 Thread Sithembewena Lloyd Dube
To view this discussion on the web visit > https://groups.google.com/d/msg/django-users/-/5DiLmGCf_E0J. > 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, vi

Boolean always returns False?

2012-07-20 Thread Sithembewena Lloyd Dube
: newsletter = models.BooleanField(verbose_name=u'Sign up to the newsletter', default=False) .. and in the view: print registered_user.newsletter The print outputs False even though this same user's 'newsletter' field appears checked in the admin. What am I missing? Thanks. -- Re

Re: Boolean always returns False?

2012-07-20 Thread Sithembewena Lloyd Dube
own User model? Are you sure you're logging in > the right user and loading the right user instance? > > On Fri, Jul 20, 2012 at 12:37 PM, Sithembewena Lloyd Dube > wrote: > > Hi everyone, > > > > I have a user model in which i have a newsletter boolean field. When th

Re: Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-07-22 Thread Sithembewena Lloyd Dube
.google.com/group/django-users?hl=en. > > > > > > -- > Sent from my mobile device > > -- > 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

Checking if a dynamicallygenerated dropdown has a selected item

2012-07-23 Thread Sithembewena Lloyd Dube
basically need to ensure that users answer at least 3 out of 5 questions? Thanks ... -- Regards, Sithembewena Lloyd Dube -- 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@googlegrou

Re: Can't access members in a template

2012-07-23 Thread Sithembewena Lloyd Dube
p/django-users?hl=en. > > -- > 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

Re: Can't access members in a template

2012-07-23 Thread Sithembewena Lloyd Dube
pardon, the closing 'for' tag would be {% endfor %} On Mon, Jul 23, 2012 at 6:53 PM, Sithembewena Lloyd Dube wrote: > ^^ as above ... > > try ... > > > {% for user in u %} > User ID{{user.id <http://u.id>}} > User Name{{user.name <http://u.name>}}

Re: Checking if a dynamicallygenerated dropdown has a selected item

2012-07-23 Thread Sithembewena Lloyd Dube
to check if the user has answered 3 questions, check from the keys in >> request.GET or request.POST as the case may be. >> >> On 7/23/12, Sithembewena Lloyd Dube wrote: >> > Hi all, >> > >> > I have a dynamically generated dropdown in this

Re: Checking if a dynamicallygenerated dropdown has a selected item

2012-07-23 Thread Sithembewena Lloyd Dube
to check if the user has answered 3 questions, check from the keys in >> request.GET or request.POST as the case may be. >> >> On 7/23/12, Sithembewena Lloyd Dube wrote: >> > Hi all, >> > >> > I have a dynamically generated dropdown in this

Re: Checking if a dynamicallygenerated dropdown has a selected item

2012-07-23 Thread Sithembewena Lloyd Dube
e.com/d/msg/django-users/-/1Y1zt0RYaLMJ. > > 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 at > http://groups.google.com/group/django-

Overriding save to create and save related entity

2012-07-25 Thread Sithembewena Lloyd Dube
save a points instance. How can I do so? -- Regards, Sithembewena Lloyd Dube -- 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, sen

Re: Overriding save to create and save related entity

2012-07-26 Thread Sithembewena Lloyd Dube
I prefer overriding save() for changes to the model > itself or its related models (as in this case), and signals less > related features (for example sending an email). > > On Wed, Jul 25, 2012 at 4:34 PM, Sithembewena Lloyd Dube > wrote: > > Hi all, > >

Automated updating of data across staging and production environments?

2012-07-26 Thread Sithembewena Lloyd Dube
Lloyd Dube -- 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,

Re: Automated updating of data across staging and production environments?

2012-07-28 Thread Sithembewena Lloyd Dube
ta must not be affected. >>> >>> Is it possible to achieve this, and if so, are there any tools oout >>> there to consider? Any feedback would be appreciated. >>> >>> Thanks. >>> >>> -- >>> Regards, >>> Sithembewena Llo

form.save() fails - due to missing field?

2012-07-28 Thread Sithembewena Lloyd Dube
7;s section is in another - but they should both be the same. The exception is: Exception Value: (1048, "Column 'section_id' cannot be null") ... it is raised here ... referral = form.save() Any ideas on overcoming this behaviour? Thanks! -- Regards, Sithembewena Llo

Re: form.save() fails - due to missing field?

2012-07-30 Thread Sithembewena Lloyd Dube
s own. imported the user section as another name and just used it instead. On Sat, Jul 28, 2012 at 4:44 PM, Karen Tracey wrote: > On Sat, Jul 28, 2012 at 9:31 AM, Sithembewena Lloyd Dube < > zebr...@gmail.com> wrote: > >> Hi all, >> >> I have a view where if re

Re: Plotting a line graph

2012-07-31 Thread Sithembewena Lloyd Dube
Hi Kevin, Does what I need, thanks :) On Mon, Jul 30, 2012 at 5:05 PM, Kevin Anthony wrote: > I would look into the Google graph API > https://developers.google.com/chart/ > > On Mon, Jul 30, 2012 at 10:47 AM, Sithembewena Lloyd Dube < > zebr...@gmail.com> wrote: > &g

oauth2 issue with Django + Google Analytics API integration

2012-08-03 Thread Sithembewena Lloyd Dube
but I thought to ask if anyone here has ever had to do the same and encountered this? Thanks. -- Regards, Sithembewena Lloyd Dube -- 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@googl

Re: Distinct Values in ModelChoiceField

2012-08-19 Thread Sithembewena Lloyd Dube
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 at &

Re: Distinct Values in ModelChoiceField

2012-08-21 Thread Sithembewena Lloyd Dube
oglegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Regards, Sithembewena Lloyd Dube -- You received this mess

Re: Distinct Values in ModelChoiceField

2012-08-22 Thread Sithembewena Lloyd Dube
@Melvyn, thanks - that makes sense. On Wed, Aug 22, 2012 at 3:18 AM, Melvyn Sopacua wrote: > On 22-8-2012 3:04, Sithembewena Lloyd Dube wrote: > > > I found your response to the OP interesting, yet I cannot quite follow > it. > > Even if he sets a unique attribute (presuma

Routing TCPIP requests/ responses to and from a Django app

2012-09-21 Thread Sithembewena Lloyd Dube
. -- Regards, Sithembewena Lloyd Dube -- 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

Re: Templates not found

2012-12-18 Thread Sithembewena Lloyd Dube
the admin: >> url(r'^admin/', include(admin.site.urls)), >> ) >> >> I even considered indentation problems, but I have checked that and it is >> fine. >> >> >> On Tue, Dec 11, 2012 at 5:53 PM, Sergiy Khohlov wrote: >> >>>

Re: Django community, is it active?

2012-12-20 Thread Sithembewena Lloyd Dube
"Working with a framework is like any relationship... you make sacrifices.. *the love you get back depends on what you put in*.." - hehe ... moving on swiftly ... Vis. the bears, I can only recommend bear spray, or a dictionary - dependent on one's particular circumstances. To address the queries

Re: Django community, is it active?

2012-12-20 Thread Sithembewena Lloyd Dube
"Working with a framework is like any relationship... you make sacrifices.. *the love you get back depends on what you put in*.." - hehe ... moving on swiftly ... Vis. the bears, I can only recommend bear spray - and a good one, at that. To address the queries at hand - coming from several langua

Re: What's your opinion about nested apps?

2013-01-12 Thread Sithembewena Lloyd Dube
Why does this sort of nesting even occur? Why not use the generic Django project/ app structure, where you have a project and apps under a project, instead of apps under other apps? Why would it ever be necessary to 'nest' apps in other apps? On Sat, Jan 12, 2013 at 11:02 PM, Sam Solomon wrote:

Re: What's your opinion about nested apps?

2013-01-12 Thread Sithembewena Lloyd Dube
I also suspect that this sort of nesting will affect plugability of apps - what is wrong with a simple approach? On Sat, Jan 12, 2013 at 11:02 PM, Sam Solomon wrote: > We've not had any trouble and we have a very nested structure: > > project/main_app/sub_apps/ > > project has manage.py, main_ap

{% url %} template tag not resolving app url in template

2013-04-09 Thread Sithembewena Lloyd Dube
Hi everyone, I have a project based on the latest Django version (1.5.1.) where I created a contact_us application. The project has a urls.py file with some url patterns. The contact_us app implements its own urls.py file (decoupling). In the project's urls.py file (just above the admin site's url

Re: {% url %} template tag not resolving app url in template

2013-04-09 Thread Sithembewena Lloyd Dube
ed-in" app? (base url + app-view url?). On Tue, Apr 9, 2013 at 3:40 PM, Andrey Kostakov wrote: > Try this without quotes: > Contact Us > > On Tue, Apr 9, 2013 at 5:31 PM, Sithembewena Lloyd Dube > wrote: > > Hi everyone, > > > > I have a project based on

Re: {% url %} template tag not resolving app url in template

2013-04-09 Thread Sithembewena Lloyd Dube
22 PM, Tom Evans wrote: > On Tue, Apr 9, 2013 at 2:31 PM, Sithembewena Lloyd Dube > wrote: > > Hi everyone, > > > > I have a project based on the latest Django version (1.5.1.) where I > created > > a contact_us application. The project has a urls.py file wit

Re: {% url %} template tag not resolving app url in template

2013-04-09 Thread Sithembewena Lloyd Dube
/ The current URL, contact_us/contact_us/, didn't match any of these. On Tue, Apr 9, 2013 at 4:43 PM, Sithembewena Lloyd Dube wrote: > Thanks, Tom. > > I am not sure how you mean? In the contact_us app, I am not explicitly > calling reverse. I only have the following: > >

Re: {% url %} template tag not resolving app url in template

2013-04-09 Thread Sithembewena Lloyd Dube
nt URL, contact_us/contact_us/, didn't match any of these. On Tue, Apr 9, 2013 at 4:43 PM, Sithembewena Lloyd Dube wrote: > Thanks, Tom. > > I am not sure how you mean? In the contact_us app, I am not explicitly > calling reverse. I only have the following: > > from django

Re: {% url %} template tag not resolving app url in template

2013-04-09 Thread Sithembewena Lloyd Dube
Tom, The latter. I did not call reverse explicitly (not yet). I have implemented namespacing as recommended. Contact Us On Tue, Apr 9, 2013 at 4:59 PM, Tom Evans wrote: > On Tue, Apr 9, 2013 at 3:56 PM, Sithembewena Lloyd Dube > wrote: > > Hi Tom, > > > > I se

Re: {% url %} template tag not resolving app url in template

2013-04-09 Thread Sithembewena Lloyd Dube
Hi all, I have the correct url, but the dev server seems to be caching my old template, even though I updated it to include namespacing. I have restarted the server and cleared my browser cache. contacts On Tue, Apr 9, 2013 at 5:11 PM, Sithembewena Lloyd Dube wrote: > Tom, > > The

Re: {% url %} template tag not resolving app url in template

2013-04-09 Thread Sithembewena Lloyd Dube
On Tue, Apr 9, 2013 at 5:34 PM, Sithembewena Lloyd Dube wrote: > Hi all, > > I have the correct url, but the dev server seems to be caching my old > template, even though I updated it to include namespacing. I have restarted > the server and cleared my browser cache. > > contacts

<    1   2   3   4   >