Re: Learn DJango first, then learn Pinax; or just learn Pinax straight-off?

2011-09-18 Thread
I suggest learn django first 2011/9/17 Alec Taylor > Good afternoon, > > I plan on using Pinax for a project I'm doing (releasing project under > New BSD or similar). > > My Learning Plan is as follows: > 1. https://docs.djangoproject.com/en/dev//intro/tutorial01/ >

Re: Practical Django Projects blog app admin not showing entries with draft status

2010-02-03 Thread
register the class to the admin, you can find it in the source code. And you can download the source code at apress website. 2010/2/4 neridaj > I'm following along James Bennett's tutorials and when I save an entry > as a draft it doesn't show up in the admin interface for

Re: How to display Error Message

2010-01-05 Thread
If you use django's orm, maybe you can check their document at its website. 2010/1/6 Geobase Isoscale > Hi all, > > I have a Django extension that enables me to call predefined PostgreSQL > functions from the database. I would like to know how to display on the > browser

Re: Generic view object_detail on a m2m relationship

2010-01-04 Thread
Try to make a loop in the template, I guess that may can work 2010/1/5 Delacroy Systems > This is how I did it in views.py: > > def businessshowservice_view(request, business_id): >business = Business.objects.get(pk=business_id) >services =

Re: Binary Post Data to ImageField

2009-12-21 Thread
As I know Django can not save binary data with it's default orm, you can try to select another orm like sqlalchemy, or you can try to modify the orm to make it can save binary data. 2009/12/21 Markus T. > Hi, > > I'm trying to save binary POST data to an ImageFile

Re: How to change this function to use generic view

2009-12-07 Thread
Anyone? Please... 2009/12/7 一千瓦的刀狼 <knifew...@gmail.com> > Hello? Anyone can help me? > > On Dec 6, 9:18 am, 邓超 <knifew...@gmail.com> wrote: > > Hi all, > > I want to change below function to use the generic view function > > update_object: > > >

How to change this function to use generic view

2009-12-05 Thread
Hi all, I want to change below function to use the generic view function update_object: @login_required def edit_bug_page(request, bug_id = None): if bug_id == None: bugInstance = Bug() else: bugInstance = get_object_or_404(Bug, pk = bug_id) members =

Re: Got error when update object

2009-12-01 Thread
Hi DR, Thank you very much! It works now. I will check the doc about the difference of the queryset and instance. Anyway, thanks a lot! 2009/12/1 Daniel Roseman <dan...@roseman.org.uk> > On Dec 1, 3:24 pm, 邓超 <knifew...@gmail.com> wrote: > > Hi all, > > I'm w

Got error when update object

2009-12-01 Thread
Hi all, I'm writing a small app, and get an error when trying to update the object, the error message is 'QuerySet' object has no attribute '_meta'. and It shows that I made some mistake on this line: form = ProjectForm(instance = projectInstance). But I don't know where am I wrong. The below

Re: Problem about write data into the DB

2009-10-22 Thread
! 2009/10/22 bruno desthuilliers <bruno.desthuilli...@gmail.com> > > On 21 oct, 17:28, 邓超 <knifew...@gmail.com> wrote: > > Hi all, > > I deployed a django app on my laptop, the whole environment is like > this: > > the OS is UBUNTU904, the web server is Ap

Problem about write data into the DB

2009-10-21 Thread
Hi all, I deployed a django app on my laptop, the whole environment is like this: the OS is UBUNTU904, the web server is Apache, and the database is sqlite3. The deployment is success, but when I try to write some data into the database, I get the HTTP 500 error. And I check the error log, it

Re: Django and CouchDB

2009-08-17 Thread
You can google it. I have read once, but forget the link address now. 2009/8/18 sjtirtha > Hi, > > can some body share about his experience using Django and CouchDB? > I found some python API that can be used to access CouchDB, which one is > the best and suitable to Django

How to access blob type data in django

2009-07-28 Thread
Hi all, I'm trying to setup a picture library website using django. What I want to do is store the picture into the database directly and access the db to show them in the html file when user view in the web. I have read some documents and tutorial about the django but what I have learned is just