how to show the text line number in the left of the textarea

2012-11-21 Thread jianhui chen
Hi all, I was wondering how can I show the text line numbers in the left of the text area. The result is somehow like this: 1 this is first line. 2 this is second line. ; The number is in the outside of the box, and it is automatically displayed when the user change the line.

Re: Error: No module named books

2012-11-29 Thread jianhui chen
I am learning django book too. Do you check the output of error.? Generally, there are hint like ValueError in the output. On Wednesday, November 28, 2012, Chris Recher wrote: > Hi all, > > I'm working through the Django book and I've run into an error that wasn't > predicted. I've got a project

Re: strangle url error in django with google app engine

2013-01-08 Thread jianhui chen
The problem is solved. Thanks. On Mon, Jan 7, 2013 at 10:02 AM, Daniel Roseman wrote: > On Monday, 7 January 2013 13:54:59 UTC, jianhui chen wrote: > >> Hi all. >>I use djangoappengine http://www.allbuttonspressed.** >> com/projects/djangoappen

show an image in django

2013-01-08 Thread jianhui chen
Hi all, I want to show an image in project in which the folder DIR looks like this: images/a.jpg templates/introduction.html In introduction.html I use It can show image correctly when I open the "introduction.html" directly using firefox, but it shows ""GET /images/gauge_example.jpg HTTP/1.1" 4

Re: Can't set static file directory.

2013-01-08 Thread jianhui chen
Hi, I am not to interrupt your question, actually I have the same problems as you. It seems that Django comers suffer this problem so much. I use Manager Static File as a guide, but still has problem. 1, Put your static files somewhere that staticfiles will find them I set following

Re: show an image in django

2013-01-09 Thread jianhui chen
/code/python/djangoBook/django-testapp-develop/static", #this only used for local debug ) and I use STATIC_URL in the html But, it must be something wrong in my setting.py since the project can't find the image. Any suggestions? Thanks. On Tue, Jan 8, 2013 at 4:00 PM, Mario Gudelj wrote:

Re: show an image in django

2013-01-12 Thread jianhui chen
ur image from your > browser via the following link: > > http://localhost:8000/static/images/gauge_example.jpg > > If that works change your replace {{STATIC_URL}} with '/static/'... > > = "390" height = "225" /> > > > On Tuesday, January 8, 20

database query error:Subqueries are not supported (yet)

2013-01-14 Thread jianhui chen
Hi all, There is an Subqueries are not supported (yet) error when I use "filter" function in databade. First, I create a database based in models.py: class ImageItem(models.Model): name = models.CharField(max_length = 100) depthOffset = models.FloatField() depthResize = mode

Re: Django hosting companies

2013-01-30 Thread jianhui chen
I use google app engine. On Tue, Jan 29, 2013 at 8:17 AM, francislutalo wrote: > Anyone with an idea of which are the best companies to host my django > applications? > > > > Thank you, > Regards > francislutalo > > -- > You received this message because you are subscribed to the Google Groups >