Re: list(form) makes my form not safe anymore

2013-09-01 Thread Lloyd Dube
Hi Gerd, I have been following your question quite closely and I wish to find a way to assist. Are you creating multiple forms? If so, are you using Formsets? I need to understand what exactly you want to accomplish before I can render any assistance. Sithu On Saturday, August 31, 2013 4:13:2

Error - module 'django.db.models' has no attribute 'FieldDoesNotExist' when adding FK relationship object

2021-08-06 Thread Lloyd Dube
Hi, I have two models, ReleaseImageGallery and ReleaseImage as follows: class ReleaseImageGallery(BaseImageGallery): release = models.ForeignKey(Release, on_delete=models.CASCADE) class Meta: verbose_name = "release image gallery" verbose_name_plural = "release image galleries" and class Relea

Re: Error - module 'django.db.models' has no attribute 'FieldDoesNotExist' when adding FK relationship object

2021-08-06 Thread Lloyd Dube
quot;release" verbose_name_plural = "releases" def __str__(self): return self.title I suspect that something is going on with migrations. All migrations have been run and a user is already capturing data on a staging server, so I do not want to recreate the database. Regard

Django Discord

2021-08-10 Thread Lloyd Dube
Hi everyone, Where can I find Django on Discord? TIA. Regards, ~ Lloyd -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.

Re: django and android application

2010-06-05 Thread Sithembewena Lloyd Dube
o 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, Sithembewena Llo

Django 1.2.1. admin issue - You don't have permission to edit anything.

2010-06-07 Thread Sithembewena Lloyd Dube
thing." My environment is Python 2.6 on Windows 7, Django 1.2.1. with SQLite. Any suggestions? -- Regards, Sithembewena Lloyd Dube http://www.lloyddube.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Re: Django 1.2.1. admin issue - You don't have permission to edit anything.

2010-06-07 Thread Sithembewena Lloyd Dube
Problem solved. I had not enabled the admin.autodiscover() code in my urls.py file. Thanks. On Mon, Jun 7, 2010 at 9:19 AM, Sithembewena Lloyd Dube wrote: > Hi all, > > I am using the latest Django release (1.2.1.) and I am having a problem > with activating the admin site. >

Django Tutorial: global name '[projectname]' is not defined when redirecting to results view.

2010-06-14 Thread Sithembewena Lloyd Dube
ull name of the view including the prefix as an argument to the reverse() function. What could be wrong? Thanks -- Regards, Sithembewena Lloyd Dube http://www.lloyddube.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: Django Tutorial: global name '[projectname]' is not defined when redirecting to results view.

2010-06-14 Thread Sithembewena Lloyd Dube
Thanks Daniel, that is absolutely right. On Mon, Jun 14, 2010 at 10:07 AM, Daniel Roseman wrote: > On Jun 14, 8:55 am, Sithembewena Lloyd Dube wrote: > > Hi all, > > > > I am using Django 1.2 to write the Django tutorial poll app. At the end > of > > my *vote* view

Django tutorial: no error displayed when a choice for a poll is not selected.

2010-06-14 Thread Sithembewena Lloyd Dube
turn HttpResponseRedirect(reverse('myproject.polls.views.results', args=(p.id,))) *DETAIL TEMPLATE* {{ poll.question }} *{% if error_message %}{{ error_messsage }}{% endif %} * {% csrf_token %} {% for choice in poll.choice_set.all %} {{ choice.choice }} {% endfor %}

Re: Django tutorial: no error displayed when a choice for a poll is not selected.

2010-06-14 Thread Sithembewena Lloyd Dube
Thanks Daniel :) I am doing the tutorial and nothing else, step by step. I mispelled the name of my template variable. Many thanks, Lloyd On Mon, Jun 14, 2010 at 3:45 PM, Daniel Roseman wrote: > On Jun 14, 2:13 pm, Sithembewena Lloyd Dube wrote: > > Hi all, > > > > I h

Re: Django tutorial: no error displayed when a choice for a poll is not selected.

2010-06-14 Thread Sithembewena Lloyd Dube
Problem fixed - the error variable in my template was mispelled. Thanks. On Mon, Jun 14, 2010 at 3:13 PM, Sithembewena Lloyd Dube wrote: > Hi all, > > I have a "vote" view and "detail" template in the Polls application that I > am writing. The idea is that the u

Re: Django architecture question

2010-06-15 Thread Sithembewena Lloyd Dube
ou 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

Re: Django architecture question

2010-06-15 Thread Sithembewena Lloyd Dube
Interesting, thanks Venkatraman. Just finishing up the tutorial at this point. Will look at that page. On Tue, Jun 15, 2010 at 1:32 PM, Venkatraman S wrote: > > On Tue, Jun 15, 2010 at 3:54 PM, Sithembewena Lloyd Dube < > zebr...@gmail.com> wrote: > >> @Venkatrama

Re: decoupling project name from import?

2010-06-20 Thread Sithembewena Lloyd Dube
roup, 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 this message because you are subscribed to

Re: decoupling project name from import?

2010-06-20 Thread Sithembewena Lloyd Dube
thonpath. > > > > > I usually use a similar layout, with apps in an 'apps' subdirectory, > > > and what I usually do is slightly hack the manage.py script to put > > > apps on the path: > > > sys.path.insert(0, > > > os.path.join( >

Re: Djangoprojects tutorial

2010-06-27 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, Sithembe

Re: Anyone want to take over maintaining Instant Django?

2010-07-13 Thread Sithembewena Lloyd Dube
roups.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 r

Re: Django, Rails but a cost to pay ?

2010-08-04 Thread Sithembewena Lloyd Dube
> >> > > > -- > Didier Rano > didier.r...@gmail.com > > -- > 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: Django, Rails but a cost to pay ?

2010-08-05 Thread Sithembewena Lloyd Dube
> On 2010-08-04, at 17:35 , Sithembewena Lloyd Dube wrote: > > Surprising that anybody would be offended by the OP's post. Why do people > so > > readily see red? As for the "think special" part, one would have to be > > pretty intent on getting upset to miss the sarcasm. &

MySQL-Python and Python 2.7

2010-08-11 Thread Sithembewena Lloyd Dube
Hi all, Has anybody used Django 1.2.1. on Windows 7 with MySQL-Python? I see that MySQL-Python supports up to Python 2.6 and I am wondering if it will play nicely with Python 2.7? I need this information for a new project at work. With thanks, -- Regards, Sithembewena Lloyd Dube http

Re: MySQL-Python and Python 2.7

2010-08-11 Thread Sithembewena Lloyd Dube
wrong with using Python 2.6 instead of 2.7? > > > > On Aug 11, 4:13 pm, Sithembewena Lloyd Dube wrote: > > Hi all, > > > > Has anybody used Django 1.2.1. on Windows 7 with MySQL-Python? I see that > > MySQL-Python supports up to Python 2.6 and I am wondering if

Re: MySQL-Python and Python 2.7

2010-08-12 Thread Sithembewena Lloyd Dube
support for MySQL-Python > there's a good chance I may be able to swing a complimentary MSDN > license via the PSF to give access to the necessary software. > > regards > Steve > > On 8/11/2010 7:48 PM, Sithembewena Lloyd Dube wrote: > > Cootetom, there's no

Re: MySQL-Python and Python 2.7

2010-08-12 Thread Sithembewena Lloyd Dube
Furthermore, I found this in the Django documentation... Being a Python Web framework, Django requires Python. It works with any Python version from 2.4 to 2.7..." On Thu, Aug 12, 2010 at 9:48 AM, Sithembewena Lloyd Dube wrote: > Thanks, issue solved: I found the Python 2.6 binaries.

Re: connect to database from template

2010-08-18 Thread Sithembewena Lloyd Dube
be 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 this message because you are

Re: django and php

2010-08-19 Thread 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, send email to > django-users+unsubscr...@googlegroups.com > . > Fo

Re: django and php

2010-08-19 Thread Sithembewena Lloyd Dube
group at > http://groups.google.com/group/django-users?hl=en. > -- Regards, Sithembewena Lloyd Dube http://www.lloyddube.com -- 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

manage.py syncdb not working

2010-08-24 Thread Sithembewena Lloyd Dube
I be doing wrong? Thanks -- Regards, Sithembewena Lloyd Dube http://www.lloyddube.com -- 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

Re: manage.py syncdb not working

2010-08-24 Thread Sithembewena Lloyd Dube
On Tue, Aug 24, 2010 at 4:31 PM, Reinout van Rees wrote: > On 08/24/2010 04:17 PM, Sithembewena Lloyd Dube wrote: > >> Hi all, >> >> I have been working on some models and tried to run the manage.py syncdb >> command. It says there are no fixtures found even after I ju

Re: manage.py syncdb not working

2010-08-24 Thread Sithembewena Lloyd Dube
ick Arnett wrote: > > > On Tue, Aug 24, 2010 at 7:43 AM, Sithembewena Lloyd Dube < > zebr...@gmail.com> wrote: > >> Thanks Reinout. I have been seeing a lot of discussions regarding South >> lately - time to dive in and find out what it is and what it means fo

Re: How to display the user profile in the admin interface?

2010-08-30 Thread Sithembewena Lloyd Dube
s+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 this message because you are subscribed to the Google Groups &quo

Re: How to display the user profile in the admin interface?

2010-08-30 Thread Sithembewena Lloyd Dube
Don't forget to run manage.py syncdb to create table/s for your model/s. On Mon, Aug 30, 2010 at 5:28 PM, Sithembewena Lloyd Dube wrote: > Hi João, > > Add myapp.UserProfile to the INSTALLED_APPS global variable of your > settings.py file, and in your admin.py file, import the

Web hosting?

2010-08-31 Thread Sithembewena Lloyd Dube
, and we need hosting. I have a host in mind, but I wanted to know what others think? In your view, which host provides good Django support and decent performance? -- Regards, Sithembewena Lloyd Dube http://www.lloyddube.com -- You received this message because you are subscribed to the Google

Re: Web hosting?

2010-08-31 Thread Sithembewena Lloyd Dube
Ah, thanks Federico :) On Tue, Aug 31, 2010 at 10:15 AM, Federico Maggi wrote: > On Aug 31, 2010, at 10:13 AM, Sithembewena Lloyd Dube wrote: > > > We will be going live in a while, and we need hosting. I have a host in > mind, but I wanted to know what others think? In your v

Re: Web hosting?

2010-08-31 Thread Sithembewena Lloyd Dube
Looks like my proposed host is at the top there by a wide margin On Tue, Aug 31, 2010 at 10:17 AM, Sithembewena Lloyd Dube wrote: > Ah, thanks Federico :) > > > On Tue, Aug 31, 2010 at 10:15 AM, Federico Maggi > wrote: > >> On Aug 31, 2010, at 10:13 AM, Sithe

Re: Web hosting?

2010-08-31 Thread Sithembewena Lloyd Dube
Thanks Kenneth, interesting summary. We would likely start off with WF as our needs at this point should be covered by their hosting. On Tue, Aug 31, 2010 at 10:25 AM, Kenneth Gonsalves wrote: > On Tue, 2010-08-31 at 10:13 +0200, Sithembewena Lloyd Dube wrote: > > We will be going

Customising errors in a form according to user region

2010-09-03 Thread Sithembewena Lloyd Dube
the appropriate language based on the user's selected region. How would I customise the form object's validation messages? Thanks! -- Regards, Sithembewena Lloyd Dube http://www.lloyddube.com -- You received this message because you are subscribed to the Google Groups "Django u

Re: Customising errors in a form according to user region

2010-09-03 Thread Sithembewena Lloyd Dube
Thanks Kenneth! On Fri, Sep 3, 2010 at 2:09 PM, Kenneth Gonsalves wrote: > On Fri, 2010-09-03 at 14:07 +0200, Sithembewena Lloyd Dube wrote: > > Basically, I wish to validate the name, surname and email fields when > > a user > > hits submit on the form. However, I ne

XML sitemap not using correct domain name

2010-09-06 Thread Sithembewena Lloyd Dube
sable without a hack - and if so, how? Thanks, -- Regards, Sithembewena Lloyd Dube http://www.lloyddube.com -- 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 unsubs

Re: XML sitemap not using correct domain name

2010-09-06 Thread Sithembewena Lloyd Dube
; > Le 6 sept. 2010 à 16:58, Sithembewena Lloyd Dube a écrit : > > Hi all, > > I added a sitemap app to my Django 1.2.1. app to and when I browse to > sitemap.xml on my development machine, Django does generate valid xml > sitemap. > However, it's using www.example.com/ in

404 handler not working on live hosting environment

2010-09-09 Thread Sithembewena Lloyd Dube
html template. What could this be and how would one tackle this issue? Any ideas welcomed. Thanks! -- Regards, Sithembewena Lloyd Dube http://www.lloyddube.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send ema

Re: 404 handler not working on live hosting environment

2010-09-09 Thread Sithembewena Lloyd Dube
pache. Thanks Kenneth! On Thu, Sep 9, 2010 at 2:27 PM, Kenneth Gonsalves wrote: > On Thu, 2010-09-09 at 14:19 +0200, Sithembewena Lloyd Dube wrote: > > We are in the process of deploying a Django app to WebFaction hosting > > where > > we use Apache to serve it. > > >

Re: 404 handler not working on live hosting environment

2010-09-10 Thread Sithembewena Lloyd Dube
Thanks Kenneth, we were also discussing yesterday how we need to have a "safer" deployment strategy. We are using TortoiseSVN for version Control. On Fri, Sep 10, 2010 at 4:31 AM, Kenneth Gonsalves wrote: > On Thu, 2010-09-09 at 14:31 +0200, Sithembewena Lloyd Dube wrote: >

Re: 404 handler not working on live hosting environment

2010-09-10 Thread Sithembewena Lloyd Dube
:) If I had my way, we'd be using Linux for dev. The design guys need Windows for all the Adobe software (although technically, there's VirtualBox, Wine et al). On Fri, Sep 10, 2010 at 10:55 AM, Kenneth Gonsalves wrote: > On Fri, 2010-09-10 at 09:55 +0200, Sithembewena Llo

Django empty string saved as MySQL null

2010-09-13 Thread Sithembewena Lloyd Dube
n MySQL, whereupon it's saved as an empty string. Is there a method of avoiding the behaviour where empty strings are saved as nulls in nullable MySQL fields? Thanks. -- Regards, Sithembewena Lloyd Dube http://www.lloyddube.com -- You received this message because you are subscribed to the

Django Chat App?

2010-09-16 Thread Sithembewena Lloyd Dube
gards, Sithembewena Lloyd Dube http://www.lloyddube.com -- 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

Re: Django Chat App?

2010-09-16 Thread Sithembewena Lloyd Dube
Thanks Shamail! I should have mentioned that I actually need something open-source :) On Thu, Sep 16, 2010 at 12:16 PM, Shamail Tayyab wrote: > On Thursday 16 September 2010 03:40 PM, Sithembewena Lloyd Dube wrote: > >> Hi all, >> >> I will soon be working on a Django si

Re: how to replace "Congratulations on your first Django-powered page." with my home page

2010-09-16 Thread Sithembewena Lloyd Dube
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: Django Chat App?

2010-09-16 Thread Sithembewena Lloyd Dube
Indeed it is, but the media server isn't :). On Thu, Sep 16, 2010 at 5:35 PM, esatterwh...@wi.rr.com < esatterwh...@wi.rr.com> wrote: > The Flex Framework is open source. > > On Sep 16, 6:19 am, Sithembewena Lloyd Dube wrote: > > Thanks Shamail! I should have ment

Re: Django Chat App?

2010-09-20 Thread Sithembewena Lloyd Dube
ght not with Django. > Rod > > > This might not be any help since I know nothing of VOIP, but for the > > chat portion take a look in to Ape ( a comet server written in C ). > > > > On Sep 16, 9:41 am, Sithembewena Lloyd Dube wrote: > >> Indeed it is, but the me

Django 1.2.1. admin WYSIWYG editor

2010-09-21 Thread Sithembewena Lloyd Dube
, Sithembewena Lloyd Dube http://www.lloyddube.com -- 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...@google

Re: Django 1.2.1. admin WYSIWYG editor

2010-09-22 Thread Sithembewena Lloyd Dube
Thank you all for your contributions. I have resolved to give tinyMCE a go again. I am specifically using the django-tinymce application. On Wed, Sep 22, 2010 at 2:45 AM, Kenneth Gonsalves wrote: > On Tue, 2010-09-21 at 17:41 +0200, Sithembewena Lloyd Dube wrote: > > Has anybody inte

Re: Django 1.2.1. admin WYSIWYG editor

2010-09-22 Thread Sithembewena Lloyd Dube
at could the issue be here? I am not getting any runtime errors in the admin app. On Wed, Sep 22, 2010 at 11:22 AM, Sithembewena Lloyd Dube wrote: > Thank you all for your contributions. I have resolved to give tinyMCE a go > again. I am specifically using the django-tinymce applicati

Re: Django 1.2.1. admin WYSIWYG editor

2010-09-27 Thread Sithembewena Lloyd Dube
bed 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 > htt

Re: IDE for Python/django

2010-09-27 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. > > -- Regards, Sithembew

Re: IDE for Python/django

2010-09-27 Thread Sithembewena Lloyd Dube
group at >> http://groups.google.com/group/django-users?hl=en. >> >> > > > -- > Girish M S > > -- > 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

Re: IDE for Python/django

2010-09-27 Thread Sithembewena Lloyd Dube
up, 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

Deleting a Django project/app

2010-10-03 Thread Sithembewena Lloyd Dube
tu Lucid Lynx (10.04). Thanks, -- Regards, Sithembewena Lloyd Dube http://www.lloyddube.com -- 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 grou

Deleting a Django project/ app

2010-10-03 Thread Sithembewena Lloyd Dube
tu Lucid Lynx (10.04). Thanks, -- Regards, Sithembewena Lloyd Dube http://www.lloyddube.com -- 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 grou

Deleting a Django project/ app

2010-10-03 Thread Sithembewena Lloyd Dube
tu Lucid Lynx (10.04). Thanks, -- Regards, Sithembewena Lloyd Dube http://www.lloyddube.com -- 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 grou

Deleting a Django project/ app

2010-10-03 Thread Sithembewena Lloyd Dube
tu Lucid Lynx (10.04). Thanks, -- Regards, Sithembewena Lloyd Dube http://www.lloyddube.com -- 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 grou

Re: Deleting a Django project/ app

2010-10-03 Thread Sithembewena Lloyd Dube
Thanks Peter - will keep this in mind. I did use setup.py. On Sun, Oct 3, 2010 at 10:43 PM, Peter Herndon wrote: > > On Oct 3, 2010, at 4:04 PM, Sithembewena Lloyd Dube wrote: > > > Howdy, fellow Djangites, > > > > This is going to sound downright loony - but i

Re: Adding help text to Django admin

2010-10-04 Thread Sithembewena Lloyd Dube
Ah, easy as eating pie. Thanks folks! On Mon, Oct 4, 2010 at 11:01 AM, Tim Sawyer wrote: > Set help_text on the appropriate model field > > name = models.CharField(max_length=100, help_text='Current name of band') > > Tim. > > > On 04/10/10 09:46, Sithembewen

Re: Django Tutorial

2010-10-04 Thread Sithembewena Lloyd Dube
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 htt

Adding help text to Django admin

2010-10-04 Thread Sithembewena Lloyd Dube
Greetings folks, I need to add "help text" to a Django admin. Sort of like the text below fields in the Django Redirects app. to provide a snippet of information about each field. How can I achieve this? -- Regards, Sithembewena Lloyd Dube http://www.lloyddube.com -- You rec

Where to create a Mezzanine project

2010-10-05 Thread Sithembewena Lloyd Dube
, -- Regards, Sithembewena Lloyd Dube http://www.lloyddube.com -- 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-user

Re: Where to create a Mezzanine project

2010-10-05 Thread Sithembewena Lloyd Dube
Hi Ken, Thought so too. I guess I am trying to figure out if I could have a nested project (mezzanine) inside my Django project? On Tue, Oct 5, 2010 at 1:04 PM, Kenneth Gonsalves wrote: > On Tue, 2010-10-05 at 12:43 +0200, Sithembewena Lloyd Dube wrote: > > I have installed Mezzanine

Re: admin site not working, problem with urls.py?

2010-10-05 Thread Sithembewena Lloyd Dube
must be string, not instancemethod > > any ideas? > > 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-us...@googlegroups.com. > To unsubscribe from this gro

Re: Where to create a Mezzanine project

2010-10-06 Thread Sithembewena Lloyd Dube
oogle.com/group/mezzanine-users/browse_thread/thread/c8b13c41a3168c94 > > Cheers, > Steve > > On Oct 5, 7:37 am, Sithembewena Lloyd Dube wrote: > > Hi Ken, > > > > Thought so too. I guess I am trying to figure out if I could have a > nest

Smaller Than in Django database API

2010-10-11 Thread Sithembewena Lloyd Dube
Hi all, How does one filer objects by "smaller than" criteria in the data access API? For example, in the following line: MySite.objects.filter(*rank < 11*, display_on_site = 1).order_by('rank') - how would one handle the highlighted criterion? Thanks. -- Regards, Sithe

Re: Smaller Than in Django database API

2010-10-11 Thread Sithembewena Lloyd Dube
@Jonathan, thanks. That does the trick. @Tom, thanks for bringing the subtle, yet important, difference between the two forms of that expression to my attention. 2010/10/11 Tom Evans > 2010/10/11 Jonathan Barratt : > > On 11 ?.?. 2010, at 21:05, Sithembewena Lloyd Dube wrote: >

Re: Database Setup

2010-10-14 Thread Sithembewena Lloyd Dube
> module: No module named MySQLdb > > does that help? > > 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-us...@googlegroups.com. > To unsubscri

CSRF issue in django-forum

2010-10-14 Thread Sithembewena Lloyd Dube
what I need. -- Regards, Sithembewena Lloyd Dube http://www.lloyddube.com -- 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

Re: CSRF issue in django-forum

2010-10-14 Thread Sithembewena Lloyd Dube
ena Lloyd Dube wrote: > > Hi all, > > I just installed django-forum (http://code.google.com/p/django-forum/) in > my Django 1.2.3. project and all went well (admin) until I got CSRF errors > while trying to load a new forum I created in the admin. > I added @csrf_protect tags t

Re: CSRF issue in django-forum

2010-10-14 Thread Sithembewena Lloyd Dube
ble. Will look into it and see what gives, no word from the author thus far. On Thu, Oct 14, 2010 at 12:46 PM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > On Thu, Oct 14, 2010 at 5:58 PM, Sithembewena Lloyd Dube > wrote: > > Hi all, > > > > I just installe

Path issue on Linux

2010-10-17 Thread Sithembewena Lloyd Dube
Hi all, How would I set up my path so that I don't always have to type 'python manage.py '? On Windows, I would add the directory containing the python file to my system path. How can I do this on Linux?Am working on Ubuntu 10.04. Thanks. -- Regards, Sithembewena

Re: Path issue on Linux

2010-10-17 Thread Sithembewena Lloyd Dube
directory containing manage.py, type > > chmod u+x manage.py > > Then you should be able to just type ./manage.py > > On 18 October 2010 08:00, Sithembewena Lloyd Dube > wrote: > > Hi all, > > > > How would I set up my path so that I don't always h

Re: Path issue on Linux

2010-10-18 Thread Sithembewena Lloyd Dube
Hi Ken, Just manage.py , instead of always having to specify the program to run the command with (python). On Mon, Oct 18, 2010 at 7:25 AM, Kenneth Gonsalves wrote: > On Sun, 2010-10-17 at 23:00 +0200, Sithembewena Lloyd Dube wrote: > > How would I set up my path so that I don't

Re: Path issue on Linux

2010-10-19 Thread Sithembewena Lloyd Dube
Thanks Ken. On Mon, Oct 18, 2010 at 2:44 PM, Kenneth Gonsalves wrote: > On Mon, 2010-10-18 at 14:34 +0200, Sithembewena Lloyd Dube wrote: > > Just manage.py , instead of always having to specify the > > program to > > run the command with (python). > > anyway

Updating a video rating using AJAX

2010-10-20 Thread Sithembewena Lloyd Dube
ting label on the page would then be updated with the returned rating.* I would like to do this without using a view or doing a form POST or GET of any kind. Any pointers? Thanks. -- Regards, Sithembewena Lloyd Dube http://www.lloyddube.com -- You received this message because you are subscri

Re: Database Setup

2010-10-27 Thread Sithembewena Lloyd Dube
u 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, visit this group at >

Re: Free Blog built on Django and run in AppEngine

2010-11-01 Thread Sithembewena Lloyd Dube
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. > > -- Regards, Sithem

django-voting url pattern

2010-11-01 Thread Sithembewena Lloyd Dube
own|clear)*vote/?$', vote_on_object, video_dict), I can see that object_id is being trapped as a parameter, but what is the italicised/ bold section doing and what URL do I then get out of it? In other words, I cannot decide what the view/s to handle the URL should be. Thanks, -- Regards, Sit

Re: Free Blog built on Django and run in AppEngine

2010-11-01 Thread Sithembewena Lloyd Dube
iwali >> >> *Offer 20% Discount* >> <http://www.ksrista.com/default.aspx>[image: FREE Animations for your >> email - by IncrediMail! Click Here!] <http://www.ksrista.com/> Corporate >> Office : Ksrista.com, ks online services pvt. ltd. baludyan

Re: Free Blog built on Django and run in AppEngine

2010-11-01 Thread Sithembewena Lloyd Dube
Thanks Russ! On Mon, Nov 1, 2010 at 3:53 PM, Russell Keith-Magee wrote: > On Mon, Nov 1, 2010 at 9:43 PM, Sithembewena Lloyd Dube > wrote: > > > > Could somebody please take care of this idiot?? Spammed me after my > response to a thread post. > > >

Re: django-voting url pattern

2010-11-01 Thread Sithembewena Lloyd Dube
Thanks Daniel, makes sense. Also, I was making the mistake of thinking that I had to create a separate view, forgetting that I am calling the one supplied by django-voting. That correct? On Mon, Nov 1, 2010 at 3:45 PM, Daniel Roseman wrote: > On Nov 1, 1:23 pm, Sithembewena Lloyd Dube wr

Re: django-voting url pattern

2010-11-03 Thread Sithembewena Lloyd Dube
Thanks Daniel! On Tue, Nov 2, 2010 at 11:39 AM, Daniel Roseman wrote: > On Nov 1, 3:08 pm, Sithembewena Lloyd Dube wrote: > > Thanks Daniel, makes sense. Also, I was making the mistake of thinking > that > > I had to create a separate view, forgetting that I am calling the o

django-avatar image src

2010-11-05 Thread Sithembewena Lloyd Dube
ath.realpath(PROJECT_PATH + '/media/') What can I do to have the image src pointing to the correct avatar directory (C:\Websites\ProjectRepository\projectname\media)? Thanks... -- Regards, Sithembewena Lloyd Dube http://www.lloyddube.com -- You received this message because you are subsc

Re: django-avatar image src

2010-11-05 Thread Sithembewena Lloyd Dube
isplayed on the page. What am I missing? Any help would be appreciated. Thanks, Sithu. On Fri, Nov 5, 2010 at 10:58 AM, Sithembewena Lloyd Dube wrote: > Hi all, > > I installed the django-avatar app in my project and, in a template, i have > the {% load avatar_tags %} and {% avatar user

Re: django-avatar image src

2010-11-05 Thread Sithembewena Lloyd Dube
Mario, thank you very much! You just made my day. Regards, Lloyd On Fri, Nov 5, 2010 at 1:23 PM, Mário Neto wrote: > instead this: > MEDIA_URL = os.path.realpath(PROJECT_PATH + '/media/') > try: > MEDIA_URL = '/media/' > > 2010/11/5 Sithemb

django-avatar src issue in different browsers (only firefox renders avatar correctly).

2010-11-10 Thread Sithembewena Lloyd Dube
dows 7 Professional* Any ideas? I have logged an issue, but I need to make progress. django-avatar does not appear to have a mailing list. -- Regards, Sithembewena Lloyd Dube http://www.lloyddube.com -- You received this message because you are subscribed to the Google Groups "Django users

forloop.last FAIL in template.

2010-11-19 Thread Sithembewena Lloyd Dube
Hi everyone, I have a template where Django is spitting out blog tags followed by a ',' when the tag is not the final one in the loop. {% if not forloop.last %}, {% endif %} Strangely, I am still seeing tag1, tag2, tag3,. How can I suppress that last ','? -- Regards, Sit

Re: forloop.last FAIL in template.

2010-11-19 Thread Sithembewena Lloyd Dube
Hi Bruno, Thanks for the idea! I checked my data and nothing seems out of the ordinary. truly stumps me. Regards On Fri, Nov 19, 2010 at 12:51 PM, bruno desthuilliers < bruno.desthuilli...@gmail.com> wrote: > > > On 19 nov, 11:09, Sithembewena Lloyd Dube wrote: > > Hi eve

Re: forloop.last FAIL in template.

2010-11-19 Thread Sithembewena Lloyd Dube
; wrote: > > > On 19 nov, 11:09, Sithembewena Lloyd Dube wrote: > > Hi everyone, > > > > I have a template where Django is spitting out blog tags followed by a > ',' > > when the tag is not the final one in the loop. > > > > {% if not for

Re: forloop.last FAIL in template.

2010-11-19 Thread Sithembewena Lloyd Dube
, Sithembewena Lloyd Dube wrote: > Bruno, you were absolutely right - the "last" tag in my loop wasn't really > the last. I had this: > > for tag in tags_list: > tag.blogs_count = tag.blogpost_set.count() > > So, each tag would get a blog count,

Image upload in Django

2010-11-25 Thread Sithembewena Lloyd Dube
Hi folks, I have a Member model representing a site user. I wish to add functionality to allow users to upload images to their profiles, and I need a pointer to a *simple* file upload solution for Django. Any ideas? -- Regards, Sithembewena Lloyd Dube http://www.lloyddube.com -- You received

Re: Image upload in Django

2010-11-25 Thread Sithembewena Lloyd Dube
:) Thanks Venkatraman, I noted with embarrassment that it's painless via the model, somewhere in the docs. Thanks. On Thu, Nov 25, 2010 at 3:02 PM, Venkatraman S wrote: > > On Thu, Nov 25, 2010 at 6:10 PM, Sithembewena Lloyd Dube < > zebr...@gmail.com> wrote: > >

PIL issue opening an image file

2010-11-26 Thread Sithembewena Lloyd Dube
temp_handle.read(), content_type='image/png') self.thunbnail.save(suf.name+'.png', suf, save=False) # Save this photo instance super(Photo, self).save() class Admin: pass def __str__(self):

Re: PIL issue opening an image file

2010-11-26 Thread Sithembewena Lloyd Dube
there a way to dynamically get the path from the file upload dialogue where the user browses to it and selects it? Thanks... On Fri, Nov 26, 2010 at 3:49 PM, Sithembewena Lloyd Dube wrote: > Hi all, > > I have a Photo model which should take an image, generate a thumbnail and > save both the

Re: PIL issue opening an image file

2010-11-26 Thread Sithembewena Lloyd Dube
desktop path. Thanks! Lloyd On Fri, Nov 26, 2010 at 4:14 PM, Daniel Roseman wrote: > On Nov 26, 2:03 pm, Sithembewena Lloyd Dube wrote: > > I found the issue: it is the path to the image. When I change the problem > > line to > > > > image = Image.open(os.path.realp

  1   2   3   4   >