MySQL error

2010-12-01 Thread delegbede
I am starting out to learn django and I am using the book: Beginning Django E-Commerce by Jim McGaw. I was able to create the database using mysql console but when I ran the command: $ python manager.py dbshell I got the following error: ow...@dipo /c/python26/djangojobs/ecomstore $ python ma

Re: MySQL error

2010-12-01 Thread delegbede
Thanks Tom, which one should I download for my django project? There are about 9 files. Kindly revert. Regards. Sent from my BlackBerry wireless device from MTN -Original Message- From: Tom Evans Sender: django-users@googlegroups.com Date: Wed, 1 Dec 2010 12:46:53 To: Reply-To: dja

Re: not able to see models.DecimalField in template

2010-12-04 Thread delegbede
I really don't have an answer to the question. Instead of asking whether or not you should convert to unicode, I think you should have converted first to unicode and see what happens. If that doesn't work, then you ask for help. It is just normal that you've used up all options you can think

Re: Upload Progress bar

2011-08-24 Thread delegbede
Try django-uploadify. Sent from my BlackBerry wireless device from MTN -Original Message- From: Dhinesh Babu Sender: django-users@googlegroups.com Date: Wed, 24 Aug 2011 16:29:33 To: Reply-To: django-users@googlegroups.com Subject: Upload Progress bar Hi Guys, I'm a newbie to this web

Re: Python Developer Needed for Quick Project (worth ~$10M perQuarter in revenue)

2011-09-01 Thread delegbede
That's alright. All the best. Regards. Sent from my BlackBerry wireless device from MTN -Original Message- From: Mischa Stephens Sender: django-users@googlegroups.com Date: Thu, 1 Sep 2011 13:50:23 To: Django users Reply-To: django-users@googlegroups.com Subject: Re: Python Developer

Re: Getting a count of a RawQuerySet object

2011-09-21 Thread delegbede
Let's say you have a model Utility, you can do Utility.objects.all().count() Hope that helps. Regards. Sent from my BlackBerry wireless device from MTN -Original Message- From: Jack Sender: django-users@googlegroups.com Date: Wed, 21 Sep 2011 09:10:49 To: Django users Reply-To: django-

Re: Django tutorials

2011-09-22 Thread delegbede
Django itself has a good tut for starters except you are a video person. The django tutorial should get you started. Regards. Sent from my BlackBerry wireless device from MTN -Original Message- From: ANKUR AGGARWAL Sender: django-users@googlegroups.com Date: Thu, 22 Sep 2011 10:48:29

Re: ajax select box

2011-05-07 Thread delegbede
Google jquery or ajax for related select boxes. I'm sure you'd get good written codes to tweak for your purpose. All the best. Sent from my BlackBerry wireless device from MTN -Original Message- From: pankaj sharma Sender: django-users@googlegroups.com Date: Sat, 7 May 2011 12:05:00

Re: Django Bigener

2011-05-07 Thread delegbede
Welcome Rahim. Start with the django tutorials. Second, look through the django book. These two would give you the needed basics. What counts here is the zeal and it seems you have it. All the best. Sent from my BlackBerry wireless device from MTN -Original Message- From: hersh S

Re: django database

2011-05-26 Thread delegbede
Sqlite is not advisable when doing serious deployment. Just a thought. Cheers. Sent from my BlackBerry wireless device from MTN -Original Message- From: Kenneth Gonsalves Sender: django-users@googlegroups.com Date: Thu, 26 May 2011 10:47:02 To: Reply-To: django-users@googlegroups.com Su

Re: Is there an HTML editor that's Django-aware

2011-05-26 Thread delegbede
I'd go with Komodo edit. Sent from my BlackBerry wireless device from MTN -Original Message- From: AJ Sender: django-users@googlegroups.com Date: Wed, 25 May 2011 23:32:41 To: Reply-To: django-users@googlegroups.com Subject: Re: Is there an HTML editor that's Django-aware Thanks a lot

Re: Is there an HTML editor that's Django-aware

2011-05-26 Thread delegbede
Go with komodo edit. Sent from my BlackBerry wireless device from MTN -Original Message- From: Boštjan Mejak bostjan.me...@gmail.com Sender: django-users@googlegroups.com Date: Thu, 26 May 2011 12:57:17 To: Reply-To: django-users@googlegroups.com Subject: Re: Is there an HTML editor th

Re: admin site search field

2011-05-31 Thread delegbede
First, you did enclose doc properly. You wrote 'doc instead of 'doc'. Sort that first. I'm however not suggesting that is the solution. Regards. Sent from my BlackBerry wireless device from MTN -Original Message- From: podio Sender: django-users@googlegroups.com Date: Mon, 30 May 2011 16:

Re: 2 projects based on the same codebase

2011-06-09 Thread delegbede
Hi Benedict, This is a mere advice. I hope someone can come up with an elegant solution pretty soon. The two projects though similar are different and as such there is a possibility that one might get more complex than the other at a much faster rate depending on the client's need. Just go ahe

Re: Payment form

2011-06-09 Thread delegbede
Get another IT Guy or become one. Sent from my BlackBerry wireless device from MTN -Original Message- From: lillian Sender: django-users@googlegroups.com Date: Thu, 9 Jun 2011 06:41:57 To: Django users Reply-To: django-users@googlegroups.com Subject: Payment form Hello, I want to set up

Re: VERY cheap django hosting?

2011-06-11 Thread delegbede
How do you define free of charge? I just checked dotcloud and it doesn't come anywhere close to what English defines as free. Sent from my BlackBerry wireless device from MTN -Original Message- From: Izzie Teeyes Sender: django-users@googlegroups.com Date: Sat, 11 Jun 2011 16:38:21 To:

Re: MultipleObjectsReturned using MongoDB

2011-07-08 Thread delegbede
Whenever you use a get(), it is expecting to return one item. Use filter() and see if the error comes up again and then I can take a deeper look at the error. Regards. Sent from my BlackBerry wireless device from MTN -Original Message- From: Ademar Sender: django-users@googlegroups.com

Re: How to change the schma of database using python manage.py syncdb?

2011-08-18 Thread delegbede
What I do is remove the database and them run the syncdb command again. Some people might recommend migrations using South. Regards. Sent from my BlackBerry wireless device from MTN -Original Message- From: smith jack Sender: django-users@googlegroups.com Date: Fri, 19 Aug 2011 00:03

Re: What's a good site to solicit project bids

2010-12-18 Thread delegbede
Try freelancer.com Sent from my BlackBerry wireless device from MTN -Original Message- From: mehma sarja Sender: django-users@googlegroups.com Date: Sat, 18 Dec 2010 10:37:59 To: Reply-To: django-users@googlegroups.com Subject: What's a good site to solicit project bids I have a proje

Re: Just saying hi

2010-12-19 Thread delegbede
Welcome Mate. I'm sure you'll get so much to learn and also teach. Best regards. Sent from my BlackBerry wireless device from MTN -Original Message- From: Dave Sayer Sender: django-users@googlegroups.com Date: Sun, 19 Dec 2010 12:16:12 To: Reply-To: django-users@googlegroups.com Subj

DJANGO BOOTCAMP

2010-12-31 Thread delegbede
Hi all, I recently started working on a project which is based on django. I've had reasons to work through the documentation several times to get things done. However, each time I check the documentation, I find out there is more to learn hence, my thought. Is there any or can there be a djan

ValueError.

2011-01-12 Thread delegbede
How can I work around this ValueError: too many values to unpack. I am actually trying to extract certain portion of a csv file. I just need an insight into what could be causing such error and I should be able to figure out the rest. Thanks. Sent from my BlackBerry wireless device from MTN

Search

2011-01-19 Thread delegbede
How do I insert a search field into a django page. I have looked through the documentation and couldn't get anything. I actually want to search for a phone number on a page where there are a lot of phone numbers. Kindly help. Sent from my BlackBerry wireless device from MTN -Original M

Re: Model Codng/Model Usage Pitfall?

2011-02-14 Thread delegbede
I'm not so sure about this but I feel you are not declaring the email field properly. That however may not be the problem, others would sure come with help. Instead of declaring it as models.CharField, I think it should be models.EmailField. Please check the django documentation for more help.

Re: Model Codng/Model Usage Pitfall?

2011-02-14 Thread delegbede
Tom, How does he do that? Sent from my BlackBerry wireless device from MTN -Original Message- From: Tom Evans Sender: django-users@googlegroups.com Date: Mon, 14 Feb 2011 17:25:58 To: Reply-To: django-users@googlegroups.com Subject: Re: Model Codng/Model Usage Pitfall? On Mon, Feb 14,

Re: Select x random rows from DB

2011-02-20 Thread delegbede
Knowing what is not a good idea means you know what the good idea is, logically. So, Galago, what's the good idea??? Sent from my BlackBerry wireless device from MTN -Original Message- From: galago Sender: django-users@googlegroups.com Date: Sun, 20 Feb 2011 14:19:14 To: Reply-To: dja

Re: Select x random rows from DB

2011-02-20 Thread delegbede
That would have been my approach if I were to do that. So, we are now two seeking the good way to get it done. Hello People, Galago and I have the same challenge, please help us. Sent from my BlackBerry wireless device from MTN -Original Message- From: galago Sender: django-users@googl

Re: What will happen when a model I modified get saved.

2011-02-20 Thread delegbede
Hey Shawn, I have been opportuned to have south installed on my pc but I must confess I have never understood its use. Now that its being mentioned in here, I think I am going to get into it and understand its use. Sent from my BlackBerry wireless device from MTN -Original Message- From

Blog Listing on Home Page

2011-02-21 Thread delegbede
Hello People, I have a blog I'm currently designing and I have a little challenge. I can from the view get a template to render all the blogs in the database by fetching articles = Article.objects.all() from the view and then loop over it in my template like so: {% for article in articles %}

Re: How to format django template code nicely with notepad++?

2011-02-22 Thread delegbede
You might want to try Activestate Komodo Edit. That's what I use and it's such a wonderful experience. Regards. Sent from my BlackBerry wireless device from MTN -Original Message- From: mongoose Sender: django-users@googlegroups.com Date: Tue, 22 Feb 2011 06:55:21 To: Django users Rep

Re: How to merge querysets and sort it?

2011-02-22 Thread delegbede
I'm not so sure if I'm answering your question but there's a way you can chain querysets. In your views.py file import Q from django.db.models. You could check django documentation. I think it works well. Sent from my BlackBerry wireless device from MTN -Original Message- From: Ryan Wi

Re: How to format django template code nicely with notepad++?

2011-02-22 Thread delegbede
The ssh thing, I agree. It works like magic. I'm however compelled to believe that the time you'd spend learning VI is enough to get you already developing django powered apps. My case study. Sent from my BlackBerry wireless device from MTN -Original Message- From: Brice Leroy Sender:

Re: Unexpected result from making single object query

2011-02-22 Thread delegbede
First, confirm the relationship between those variables. current_entry = Entry.objects.get(id=10) next_entry = Entry.objects.get(current_entry.next) prev_entry = Entry.objects.get(current_entry.prev) By my estimation,next_entry should return Entry object with I'd of 11 while prev_entry returns I

Re: Blog Listing on Home Page

2011-02-22 Thread delegbede
Thanks Karen. I'd get the book and work through it. Regards. Sent from my BlackBerry wireless device from MTN -Original Message- From: Karen McNeil Sender: django-users@googlegroups.com Date: Tue, 22 Feb 2011 15:56:20 To: Django users Reply-To: django-users@googlegroups.com Subject: R

Re: Blog Listing on Home Page

2011-02-22 Thread delegbede
Got the book. Thanks a million Karen. Sent from my BlackBerry wireless device from MTN -Original Message- From: Karen McNeil Sender: django-users@googlegroups.com Date: Tue, 22 Feb 2011 15:56:20 To: Django users Reply-To: django-users@googlegroups.com Subject: Re: Blog Listing on Home P

Re: Querysets: returning a single item with the greatest id.

2011-02-23 Thread delegbede
He is expecting to fetch a single term. I think that's what get() does if the particular I'd is known and you would have written your code as this: Foo.objects.get(id=1000) However, if you don't know like I'm presuming, you do: Foo.objects.all().order_by('-pk')[0] Tom, thanks. Sent from my BlackB

Re: how-to-design-a-django-driven-cms-hosting-like-solution

2011-02-28 Thread delegbede
Check out Practical Django Projects by James Bennette. Sent from my BlackBerry wireless device from MTN -Original Message- From: BearCode Sender: django-users@googlegroups.com Date: Sat, 26 Feb 2011 14:50:27 To: Django users Reply-To: django-users@googlegroups.com Subject: how-to-design

Re: DatabaseError at / no such table: cms_page

2011-02-28 Thread delegbede
I suspect you had already done a syncdb before creating that field. If yes, the database would not create it just like that. When I had similar problem, here's what I did. I removed the database file from my project root and then ran a syncdb again. It worked. There's a price to pay however, y

Re: Looking for a developer

2011-03-04 Thread delegbede
Hi, my firm would love to have a look at it. If we get the RFP, you sure would get a feedback from us. Kind regards. Sent from my BlackBerry wireless device from MTN -Original Message- From: Colleen Sender: django-users@googlegroups.com Date: Fri, 4 Mar 2011 05:05:54 To: Django users

Re: Where does admin.py go?

2011-03-04 Thread delegbede
This should further confirm to you there is always a need to put as many comments as you can in your application and codes as a matter of principle. Kind regards. Sent from my BlackBerry wireless device from MTN -Original Message- From: ALJ Sender: django-users@googlegroups.com Date:

Re: Looking for a developer

2011-03-05 Thread delegbede
My apologies, I was meant to do a personal mail to the sender. If the post could be removed, I would be very happy. Once again, apologies. Sent from my BlackBerry wireless device from MTN -Original Message- From: Kenneth Gonsalves Sender: django-users@googlegroups.com Date: Sat, 05 M

Re: Any clue what this error could mean

2011-03-09 Thread delegbede
The error message is straight forward. You are referring to a file or directory that doesn't exist. Check the name of the file and be sure you've spelt it correctly or you actually saved it in the directory from where you're tryin to access it. Sent from my BlackBerry wireless device from MTN

Re: AttributeError at / polls / in Django Tutorial

2011-03-10 Thread delegbede
The spelling is what the problem is. You have typed 'objetcs' instead of 'objects'. Always study the error trace very well. Best regards. Sent from my BlackBerry wireless device from MTN -Original Message- From: Alberto Morales Fernández Sender: django-users@googlegroups.com Date: W

Re: Django on Windows 7

2011-03-22 Thread delegbede
I am not sure there would be major issues except that you need to install binary versions of your database drivers. Regards. Sent from my BlackBerry wireless device from MTN -Original Message- From: David Kovar Sender: django-users@googlegroups.com Date: Tue, 22 Mar 2011 07:59:45 To:

Re: embedding tag in another tag

2011-03-23 Thread delegbede
What exactly are you trying to get done or achieve? If that is known, we could be able to help. Sent from my BlackBerry wireless device from MTN -Original Message- From: Tony Sender: django-users@googlegroups.com Date: Wed, 23 Mar 2011 13:06:13 To: Django users Reply-To: django-users@g

Re: Tutorial Problems

2011-03-26 Thread delegbede
Do you have problems using pastebin??? Sent from my BlackBerry wireless device from MTN -Original Message- From: ruler501 Sender: django-users@googlegroups.com Date: Sat, 26 Mar 2011 07:32:13 To: Django users Reply-To: django-users@googlegroups.com Subject: Re: Tutorial Problems Sorry I

Re: Hi, I'm trying to reset my db (using multiple dbs) but flush andreset don't seem to drop the tables.

2011-04-03 Thread delegbede
I don't know much about Posgresql 8.3, I use mysql. In my experience, you can choose to add the model and then do a migrate. As in manage.py schemamigration [app] --auto. That would create a migration and then you can do a manage.py migrate auto. You must have south installed on your system. W