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

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

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

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

2021-08-06 Thread Lloyd Dube
igrations. 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. Regards, ~ Lloyd On Sat, Aug 7, 2021 at 1:02 AM Lloyd Dube wrote: > Hi, > > I have two models, ReleaseImageGallery and ReleaseImage as follows:

Django application performance estimates?

2012-03-15 Thread Sithembewena Lloyd Dube
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 b

Re: Django application performance estimates?

2012-03-15 Thread Sithembewena Lloyd Dube
<law...@thenilgiris.com>wrote: > 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

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 <xordo...@linovia.com>wrote: > > Le 15 mars 2012 à 09:04, kenneth gonsalves a écrit : > > > On Thu, 2012-03-15 at 09:46 +0200, Sithembe

Re: Django application performance estimates?

2012-03-15 Thread Sithembewena Lloyd Dube
.com>wrote: > 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 s

Re: Django application performance estimates?

2012-03-17 Thread Sithembewena Lloyd Dube
000 for a web application, and >> therefore expecting a large amount of traffic and probably income, is way >> too little to expect any kind of a guarantee -- let alone a guarantee that >> it'll scale to infinite and beyond. >> >> Good luck! >> >> On Thu, Mar

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 <zebr...@gmail.com> > wrote: > > Hi all, > > I have a model with an ImageField and when I tr

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

2012-03-17 Thread Sithembewena Lloyd Dube
ia-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 still get the s

Re: Trouble setting up website with mysql as backend

2012-03-17 Thread Sithembewena Lloyd Dube
ged mysql mode to non > 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.

Re: Trouble setting up website with mysql as backend

2012-03-17 Thread Sithembewena Lloyd Dube
ail to django-users@googlegroups.com. > To unsubscribe from this group, send email to django-users+unsubscribe@** > googlegroups.com <django-users%2bunsubscr...@googlegroups.com>. > For more options, visit this group at http://groups.google.com/** > group/django-users?

Re: Trouble setting up website with mysql as backend

2012-03-18 Thread Sithembewena Lloyd Dube
gt; Swaroop Shankar V > > > > 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? >> >> >>

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
c. On Wed, Mar 21, 2012 at 8:12 PM, Andre Terra <andrete...@gmail.com> 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

Re: find django template developers

2012-03-21 Thread Sithembewena Lloyd Dube
ubscr...@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 Google Groups "Django users" group. To post to this

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

2012-03-23 Thread Sithembewena Lloyd Dube
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+unsubscr...@goog

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

2012-06-26 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...@google

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 -- You

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 <zebr...@gmail.com>wrote: > @newkedison, thank you for the suggestion. I wish to stay on the page > without doing any redirects. > > @Jirka - thanks. I s

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 <akaar...@gmail.com> wrote: > On 16 heinä, 14:38, Sithembewena Lloyd Dube <zebr...@gmail.com> wrote:

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
= MyContactForm(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

Re: SuspiciousOperation exception on ImageField upload

2012-07-18 Thread Sithembewena Lloyd Dube
he 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, visit this group at >

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. -- Regards, Sithembewena Lloyd

Re: Boolean always returns False?

2012-07-20 Thread Sithembewena Lloyd Dube
hy do you have your 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 > <zebr...@gmail.com> wrote: > > Hi everyone, > > > > I have a user model in

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

2012-07-22 Thread Sithembewena Lloyd Dube
> > For more options, visit this group at > > http://groups.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 user

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@google

Re: Can't access members in a template

2012-07-23 Thread Sithembewena Lloyd Dube
group at > > http://groups.google.com/group/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

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 <zebr...@gmail.com>wrote: > ^^ as above ... > > try ... > > > {% for user in u %} > User ID{{user.id <http://u.id>}} > User Name{{user.name &

Re: Checking if a dynamicallygenerated dropdown has a selected item

2012-07-23 Thread Sithembewena Lloyd Dube
nderstand the question but I think if you want >> 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 <zebr...@gmail.com> wrote: >> > Hi all, >&g

Re: Checking if a dynamicallygenerated dropdown has a selected item

2012-07-23 Thread Sithembewena Lloyd Dube
nderstand the question but I think if you want >> 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 <zebr...@gmail.com> wrote: >> > Hi all, >&g

Re: Checking if a dynamicallygenerated dropdown has a selected item

2012-07-23 Thread Sithembewena Lloyd Dube
Thanks Daniel :) Was just poring over the Formsets documentation now ... looks like what I need. I will update this thread with the results later. On Mon, Jul 23, 2012 at 10:09 PM, Daniel Roseman <dan...@roseman.org.uk>wrote: > On Monday, 23 July 2012 21:05:54 UTC+1, Lloyd D

Overriding save to create and save related entity

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

Re: Overriding save to create and save related entity

2012-07-26 Thread Sithembewena Lloyd Dube
s on your desired > architecture. 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 > <zebr...@

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 opti

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

2012-07-28 Thread Sithembewena Lloyd Dube
ree with the above question. It's a solution, but you usually >> never want to use your production database on a development server. >> >> As for his problem, I would look into fabric. You can easily write a >> function that dumps data from one database and into another. >

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

2012-07-28 Thread Sithembewena Lloyd Dube
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 Lloyd Dube -- You received this message because you are subscribed to the Google Group

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

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

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 <kevin.s.anth...@gmail.com>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 < >

oauth2 issue with Django + Google Analytics API integration

2012-08-03 Thread Sithembewena Lloyd Dube
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@google

Re: Distinct Values in ModelChoiceField

2012-08-19 Thread Sithembewena Lloyd Dube
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, visi

Re: Distinct Values in ModelChoiceField

2012-08-21 Thread Sithembewena Lloyd Dube
t 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-users?hl=en. > > -- Regards, Sithembewena Lloyd Dube

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 <m.r.sopa...@gmail.com>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

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
gt; > On Wednesday, December 12, 2012 6:11:54 AM UTC-8, Lloyd Dube wrote: > >> urls.py: >> >> urlpatterns = patterns('', >> # Examples: >> url(r'^$', 'musicsite.views.home', name='home'), >> # url(r'^musicsite/', include('musicsite.foo.urls'))

Re: Django community, is it active?

2012-12-20 Thread Sithembewena Lloyd Dube
mail 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, Sithu Lloyd Dube -- You received t

Re: Django community, is it active?

2012-12-20 Thread Sithembewena Lloyd Dube
oups.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, Sithu Lloyd Dube -- You received this message because you are subsc

Re: What's your opinion about nested apps?

2013-01-12 Thread Sithembewena Lloyd Dube
ribe 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, Sithu Lloyd Dube -- You received this message because you are subscribed to the

Re: What's your opinion about nested apps?

2013-01-12 Thread Sithembewena Lloyd Dube
on the web visit > https://groups.google.com/d/msg/django-users/-/XOwYE_Yj9vQJ. > > 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

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

2013-04-09 Thread Sithembewena Lloyd Dube
missing? I namespaced the contact_us urls include in the main urls'py file and there is a simple contact_us view in the contact_us app which renders an existing template. Thanks. -- Regards, Sithu Lloyd Dube -- You received this message because you are subscribed to the Google Groups "Djan

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

2013-04-09 Thread Sithembewena Lloyd Dube
ugged-in" app? (base url + app-view url?). On Tue, Apr 9, 2013 at 3:40 PM, Andrey Kostakov <b...@dzen.ws> wrote: > Try this without quotes: > Contact Us > > On Tue, Apr 9, 2013 at 5:31 PM, Sithembewena Lloyd Dube > <zebr...@gmail.com> wrote: > > Hi everyone, &

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

2013-04-09 Thread Sithembewena Lloyd Dube
Evans <tevans...@googlemail.com> wrote: > On Tue, Apr 9, 2013 at 2:31 PM, Sithembewena Lloyd Dube > <zebr...@gmail.com> wrote: > > Hi everyone, > > > > I have a project based on the latest Django version (1.5.1.) where I > created > > a contact_u

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

2013-04-09 Thread Sithembewena Lloyd Dube
, Apr 9, 2013 at 4:43 PM, Sithembewena Lloyd Dube <zebr...@gmail.com>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.shortcuts import render, reverse &g

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

2013-04-09 Thread Sithembewena Lloyd Dube
at 4:43 PM, Sithembewena Lloyd Dube <zebr...@gmail.com>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.shortcuts import render, reverse > > def contact_us

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 <tevans...@googlemail.com> wrote: > On Tue, Apr 9, 2013 at 3:56 PM, Sithembewena Lloyd Dube > <zebr...@gmail.com

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 <zebr...@gmail.com>wrote:

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

2013-04-09 Thread Sithembewena Lloyd Dube
, Sithembewena Lloyd Dube <zebr...@gmail.com>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 > >

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

2013-04-09 Thread Sithembewena Lloyd Dube
Issue resolved. The problem was a similar usage of a url template tag without a namespace. All I had to do was check the correct line number in the template. Thanks to all. Time for a walk outside. On Tue, Apr 9, 2013 at 5:36 PM, Sithembewena Lloyd Dube <zebr...@gmail.com>wrote: >

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

2013-04-09 Thread Sithembewena Lloyd Dube
Issue resolved. The problem was a similar usage of a url template tag without a namespace - in the same template. All I had to do was check the correct line number in the template. Thanks to all. Time for a walk outside. On Tue, Apr 9, 2013 at 5:36 PM, Sithembewena Lloyd Dube <z

Re: Use different apps or not?

2013-05-10 Thread Sithembewena Lloyd Dube
s group at http://groups.google.com/group/django-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Regards, Sithu Lloyd Dube -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubsc

Re: Use different apps or not?

2013-05-10 Thread Sithembewena Lloyd Dube
By the way, the book mentioned above - "Two Scoops of Django" - makes very good reading for Django in general. On Sat, May 11, 2013 at 2:28 AM, Sithembewena Lloyd Dube <zebr...@gmail.com>wrote: > Hi Phillipe, > > I think that it really depends on how modular you would l

Re: Use different apps or not?

2013-05-10 Thread Sithembewena Lloyd Dube
thembewena Lloyd Dube <zebr...@gmail.com>wrote: > Hi Phillipe, > > I think that it really depends on how modular you would like your Django > project to be. Do you want the stats generation functionality to be > separately pluggable from the pie-charting functionality? Is your

Re: Use different apps or not?

2013-05-10 Thread Sithembewena Lloyd Dube
at, May 11, 2013 at 2:28 AM, Sithembewena Lloyd Dube <zebr...@gmail.com>wrote: > Hi Phillipe, > > I think that it really depends on how modular you would like your Django > project to be. Do you want the stats generation functionality to be > separately pluggable from the pie-

Re: Use different apps or not?

2013-05-10 Thread Sithembewena Lloyd Dube
quote): "In essence, each app should be tightly focused on its task. If an app can’t be explained in a single sentence of moderate length, or you need to say ‘and’ more than once, it probably means the app is too big and should be broken up. On Sat, May 11, 2013 at 2:35 AM, Sithembewena Lloyd

Re: Use different apps or not?

2013-05-13 Thread Sithembewena Lloyd Dube
You're welcome. Enjoy the book! On Sun, May 12, 2013 at 9:54 PM, Philippe Schraepen < schraepen.phili...@gmail.com> wrote: > Thanks for the clarification! > I'll definitely read the book! > > On Saturday, May 11, 2013 12:28:50 AM UTC, Lloyd Dube wrote: > >>

Re: Can´t get Django Administration page to show

2013-06-05 Thread Sithembewena Lloyd Dube
roup/django-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Regards, Sithu Lloyd Dube -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop rec

Re: Can´t get Django Administration page to show

2013-06-05 Thread Sithembewena Lloyd Dube
roups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Regards, Sithu Lloyd Dube -- You receive

Re: Please help me in Django

2013-06-10 Thread Sithembewena Lloyd Dube
.@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Regards, Sithu Lloyd Dube -- You recei

Re: Django-Tastypie and MySQL

2013-06-14 Thread Sithembewena Lloyd Dube
mails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out

Using Fabric to clear database records

2013-06-14 Thread Sithembewena Lloyd Dube
and any new videos added should have ids starting from 1 again. Any ideas on implementing this? -- Regards, Sithu Lloyd Dube -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails fro

Re: Using Fabric to clear database records

2013-06-14 Thread Sithembewena Lloyd Dube
Thank you, Avraham. On Fri, Jun 14, 2013 at 2:26 PM, Avraham Serour <tovm...@gmail.com> wrote: > manage.py flush > > > On Fri, Jun 14, 2013 at 3:16 PM, Sithembewena Lloyd Dube < > zebr...@gmail.com> wrote: > >> Greetings, >> >> I've got a

Re: Django-Tastypie and MySQL

2013-06-14 Thread Sithembewena Lloyd Dube
sers+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Regards, Sithu Lloyd Dube

Re: Django-Tastypie and MySQL

2013-06-14 Thread Sithembewena Lloyd Dube
I meant, delete the PlayerClub linking table/ model. The foreignkey relationship takes care of that need. On Fri, Jun 14, 2013 at 4:41 PM, Sithembewena Lloyd Dube <zebr...@gmail.com>wrote: > Hey, > > The player belongs to a club. So in the player model you should have

Re: Newbie with Demo issues

2013-06-14 Thread Sithembewena Lloyd Dube
cause 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.com. > To post to this group, send email to django-users@googlegroups.com

Re: Django-Tastypie and MySQL

2013-06-14 Thread Sithembewena Lloyd Dube
scr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Regards, Sithu Lloyd Dube --

Re: How can I have two unicode methods?

2013-06-25 Thread Sithembewena Lloyd Dube
email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Regards, Sithu Llo

Static files not served

2013-06-27 Thread Sithembewena Lloyd Dube
them. One thing I do notice is that two of the missing css files are in the document's noscript tag and the links for all three are not clickable when viewing source. There are three in there, so one loads fine. Any pointers to what I could be missing? Thanks. -- Regards, Sithu Lloyd Dube -- You

Re: Static files not served

2013-06-27 Thread Sithembewena Lloyd Dube
this is not an html mailing list, but has anybody else encountered this? Another thing i noticed is that all this is not a problem when i view the templates from outside a Django project - i.e. as a standalone html website. On Thu, Jun 27, 2013 at 10:08 PM, Sithembewena Lloyd Dube <zebr...@gmail.com >

Re: Static files not served

2013-06-27 Thread Sithembewena Lloyd Dube
Another thing i noticed is that all this is not a problem when i view the > > templates from outside a Django project - i.e. as a standalone html > website. > > > > > > On Thu, Jun 27, 2013 at 10:08 PM, Sithembewena Lloyd Dube < > zebr...@gmail.com > > > wrote: >

Re: Getting URL root

2013-07-01 Thread Sithembewena Lloyd Dube
users. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Regards, Sithu Lloyd Dube -- 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,

Re: London based Django Dev: UX/UI (£300 per day)

2013-07-02 Thread Sithembewena Lloyd Dube
to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Regards, Sithu Lloyd Dube -- You received this message because you are subscribed to the Goog

Re: Returning data from view to ajax call

2013-07-02 Thread Sithembewena Lloyd Dube
roup, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Regards, Sithu Lloyd Dube -- You received this message because you are subscribed

Re: Python Fabric manage.py problem

2013-07-03 Thread Sithembewena Lloyd Dube
group at http://groups.google.com/group/django-users. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Regards, Sithu Lloyd Dube -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

OneToOne relationship - id displayed in admin instead of object name?

2011-04-15 Thread Sithembewena Lloyd Dube
jects.get(pk=1) >>>blog_user.blogger Mike I get the blogger object's name However, in the admin section the blogger id is displayed. How can I display the unicode representation of the blogger object? Thanks. -- Regards, Sithembewena Lloyd Dube -- You received this message because you

Can a OneToOne field be used to generate the value of a SlugField in the same model?

2011-04-15 Thread Sithembewena Lloyd Dube
? I would appreciate any advice. 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@googlegroups.com. To unsubscribe from this group, send email to d

Detecting form mode in admin (create, edit, delete)

2011-04-18 Thread Sithembewena Lloyd Dube
Hi all, I wish to find out how I can detect current form mode in admin.py. What I am trying to do is to stop users changing a dropdown's selection when in edit mode. Any ideas? Thanks. -- Regards, Sithembewena Lloyd Dube -- You received this message because you are subscribed to the Google

Re: Detecting form mode in admin (create, edit, delete)

2011-04-18 Thread Sithembewena Lloyd Dube
@Mengu, yes, precisely :) On Mon, Apr 18, 2011 at 1:20 PM, Mengu <whalb...@gmail.com> wrote: > you mean like if a new object is being added or edited in the admin? > > On Apr 18, 1:58 pm, Sithembewena Lloyd Dube <zebr...@gmail.com> wrote: > > Hi all, > > > &

Re: Detecting form mode in admin (create, edit, delete)

2011-04-18 Thread Sithembewena Lloyd Dube
updatinghttp://localhost:8000/admin/testapp/testmodel/add/- means i'm adding > > > > if (document.location.href.indexOf("/add/") != -1) { > > > > } > > > > On Apr 18, 2:50 pm, Sithembewena Lloyd Dube <zebr...@gmail.com> wrote: > > > > > > > > > &

Format a python date

2011-05-09 Thread Sithembewena Lloyd Dube
Hi all, I am using a jquery datepicker control on a page of mine, and it formats the date different than the django admin datepicker. (MM-DD-YYY). If I have a date in that format, how can I format it to DD-MM-? I have tried using strftime with no success. -- Regards, Sithembewena Lloyd

Re: Format a python date

2011-05-09 Thread Sithembewena Lloyd Dube
bs/jqueryui/1.8.12/i18n/jquery.ui.datepicker-ru.min.js</a> > "> > > And if you want your datepicker be custom formatted, then you can configure > it separately. > > $('#id_date').datepicker({dateFormat: 'yy-mm-dd'}); > > > > > On Mon, May 9, 2011 at 1

Parsing an XML feed using ElementTree

2011-05-24 Thread Sithembewena Lloyd Dube
emains at 0. >>> i = 0 >>> for node in xml_content.getiterator('contest'): ... i += 1 ... >>> i 0 What am I getting wrong? Any hints would be appreciated. -- Regards, Sithembewena Lloyd Dube -- You received this message because you are subscribed to

Re: Parsing an XML feed using ElementTree

2011-05-25 Thread Sithembewena Lloyd Dube
it this group at >> http://groups.google.com/group/django-users?hl=en. >> >> > > > -- > Brian Bouterse > ITng Services > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to thi

Re: Parsing an XML feed using ElementTree

2011-05-25 Thread Sithembewena Lloyd Dube
P.S: I was aware that I posted a non-django question: I just took the chance that someone here may have needed to do the same. Thanks! On Wed, May 25, 2011 at 2:35 PM, Sithembewena Lloyd Dube <zebr...@gmail.com>wrote: > Hi Everyone, > > Thanks for all your suggestions. I

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 s

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
> What's wrong with using Python 2.6 instead of 2.7? > > > > On Aug 11, 4:13 pm, Sithembewena Lloyd Dube <zebr...@gmail.com> wrote: > > Hi all, > > > > Has anybody used Django 1.2.1. on Windows 7 with MySQL-Python? I see that > > MySQL-Python suppor

  1   2   3   4   >