Re: excellent slides

2011-01-06 Thread Cal Leeming [Simplicity Media Ltd]
This looks very useful! Good job. On Fri, Jan 7, 2011 at 7:55 AM, Thomas wrote: > > Just to share it with other newbies ... > > Today I have found these excellent slides (accompanied with explanations :) > ), which could be helpful to bring some light to the darkness. > > quick example: > > http

excellent slides

2011-01-06 Thread Thomas
Just to share it with other newbies ... Today I have found these excellent slides (accompanied with explanations :) ), which could be helpful to bring some light to the darkness. quick example: http://toys.jacobian.org/presentations/2007/oscon/tutorial/images/django-master-class.032.png http:/

Re: list of lists in template

2011-01-06 Thread Subhranath Chunder
On Fri, Jan 7, 2011 at 12:22 PM, gintare wrote: > > in view.py > ... > Ltarp.append([item.Wordword, item.WordTranslEn, item.WordNotesGram, > item.WordConcl]) > .. > Lans.append([sen.Sent, sen.SentTransl, Ltarp ] ) > > in template.html > {% if Lans %} > > {% for smth in Lans %} > > {{smth.0}}

Re: form handling in views.py

2011-01-06 Thread gintare
Thanks a lot, i just wanted to know how to use variables from query directly. If you could advice, please write me. I read Django documentation on beginning of 2010 and understood only now on 2011 where forms are used. I mean if smbd never programmed webpages the use of templates and forms is tota

list of lists in template

2011-01-06 Thread gintare
in view.py ... Ltarp.append([item.Wordword, item.WordTranslEn, item.WordNotesGram, item.WordConcl]) .. Lans.append([sen.Sent, sen.SentTransl, Ltarp ] ) in template.html {% if Lans %} {% for smth in Lans %} {{smth.0}} {% for Ltarp in smth.3 %} {{Ltarp.0}} {% endfo

Re: new user having trouble connecting django to postgres with psycopg2

2011-01-06 Thread Subhranath Chunder
I guess you'll have to set it to 'Australia/ACT Australia/Canberra Australia/NSW Australia/Sydney' in your settings.py instead. Thanks, Subhranath Chunder. On Fri, Jan 7, 2011 at 6:22 AM, Mark Brazil wrote: > hi, > > I've been trying to find the answer to this for a bit, but haven't > found an

Re: User model being included by default

2011-01-06 Thread Subhranath Chunder
Firstly, I think this should be posted to the django-us...@googlegroups.comgroup instead. So, just make sure to post queries on using Django to there only. Coming back to your question. If you are using your own user model then, I hope you are using the not using the import 'from django.contrib.a

Re: Japanese Text Sort Order

2011-01-06 Thread Keishi Katoux
Hi, James This is supplementation of what Morimoto-san wrote. I'm Japanese too. You must use readings for ordering. Japanese dictionary ordering is by pronunciation, not by alphabetical order. In English, 'food' is put at nearby 'foot'. In Japanese, 'quick'(kwik) is put at nearby 'cuisine'(kwizi:

Re: Retrieving data from Oracle DB table with column name containing special character

2011-01-06 Thread Ian
On Jan 6, 6:14 pm, Vikram wrote: > Hi, > > I have an existing table in my Oracle db called Sess. Few columns in > this table have names that end with the character '#'. I am unable to > run the command syncdb. > > Steps I did so far: > 1. python manage.py inspectdb > models.py > 2. Spruced up mode

Re: Beginner Django Person in Need of Help

2011-01-06 Thread Lachlan Musicman
On Fri, Jan 7, 2011 at 09:13, Fel wrote: > I'm a beginner Django person and I've written my first app...It's a > products App that has 4 attributes: Name, Slug URL, Description and > Image. > > I built my model, I have an ADMIN for it so I can add products via > the /admin and now I want to create

new user having trouble connecting django to postgres with psycopg2

2011-01-06 Thread Mark Brazil
hi, I've been trying to find the answer to this for a bit, but haven't found anything suitable. I have postgresql 9.01, django 1.2.3 psycopg2 on ubuntu10.10 When I try to use syncdb i get an error as follows "psycopg2.DataError: unrecognized time zone name" I currently have my settings.py set

Beginner Django Person in Need of Help

2011-01-06 Thread Fel
Hi All I'm a beginner Django person and I've written my first app...It's a products App that has 4 attributes: Name, Slug URL, Description and Image. I built my model, I have an ADMIN for it so I can add products via the /admin and now I want to create a view that shows all the products and when

Retrieving data from Oracle DB table with column name containing special character

2011-01-06 Thread Vikram
Hi, I have an existing table in my Oracle db called Sess. Few columns in this table have names that end with the character '#'. I am unable to run the command syncdb. Steps I did so far: 1. python manage.py inspectdb > models.py 2. Spruced up models.py to reflect only single table called Sess. 3.

RE: an error happened to apache2and wsgi

2011-01-06 Thread Sells, Fred
I've seen similar errors if I left in print >>sys.stderr statements, although that was using mod_python. From: django-users@googlegroups.com [mailto:django-us...@googlegroups.com] On Behalf Of Graham Dumpleton Sent: Thursday, January 06, 2011 2:23 AM To: django-users@googlegroups.com Subject:

Re: automated testing: how to generate human-verifiable views?

2011-01-06 Thread Jennifer Bell
Sorry if I confused people... I'm still looking for some feedback. Really, I guess I just want to streamline CSS/layout/language/browser testing so problems that commonly occur aren't discovered on the final round of staging testing. I imagine a test series like: [ { series_name: payroll_scree

Re: Django with PostgreSQL on Debian.

2011-01-06 Thread Thomas
for me it is working too settings.py: "ENGINE": "django.db.backends.postgresql_psycopg2", # aptitude search python-psycopg2 i python-psycopg2 - Python module for PostgreSQL good luck, TR Am 06.01.2011 um 17:36 schrieb Tonton: > on my ubuntu > in the set

Re: Iterating over dictionaries in template not working in Django 1.2.3

2011-01-06 Thread jeff aigner
I've solved the issue. The problem is that I was trying to iterate over a ValidationError instead of it's message_dict. The changed code for the view is below: >  46                     try: >  47                         u.full_clean() >  48                         u.save() >  49                  

OpenToken Spec & Single Sign On

2011-01-06 Thread Justin Murphy
Hello group, Does anybody have experience with the OpenToken specification? It is an authentication token that some (not many) applications use for SSO. I found existing Perl module that encrypts and decrypts the token but I need a Python version to use in a Django project. Not much luck finding

Creating a System that allow to create sub-systems

2011-01-06 Thread Arruda
Hi there, I'm new here and kind of new to Django too, but after messing with other things like Java, I was impressed in the agility and facility that Django does things. So here is the deal, I'm trying to create a site that allow the users to have something like a small personal system. And each s

Iterating over dictionaries in template not working in Django 1.2.3

2011-01-06 Thread jeff aigner
I'm trying to create a page for mass user creation, and I'm having troubles iterating over the error dictionaries in the template. The dictionary I am trying to iterate over looks like this: {'username': [u'User with this Username already exists.']} But rather than iterating over this single item

Re: manage.py makemessages doesn't create .po files

2011-01-06 Thread skazhy
Nope, the same as above, no .po files. On 6 Janv., 19:00, maclin kallat wrote: > Try using the -e option for adding the extensions. > > django-admin.py makemessages -l=lv -e=html,htm > > > From: skazhy > To: Django users > Sent: Thu, 6 January, 2011 16:45:59 > S

I get an error when I used urllib2.urlopen() to open a remote file in a ftp server

2011-01-06 Thread Ariel
Hi everybody: I get an error when I used urllib2.urlopen() to open a remote file in a ftp server, what I am trying to do is to make a view to force the browser to download a file to disk instead of playing or displaying it. My code is the following: file = 'ftp:/16.168.250.14:2189/RTVE/VI

Re: manage.py makemessages doesn't create .po files

2011-01-06 Thread maclin kallat
Try using the -e option for adding the extensions. django-admin.py makemessages -l=lv -e=html,htm From: skazhy To: Django users Sent: Thu, 6 January, 2011 16:45:59 Subject: Re: manage.py makemessages doesn't create .po files I tried running it with the djang-

Together we can make a difference

2011-01-06 Thread satyandra babu
Hi This year make a resolution that lasts not for a week, not for a month, not for a lifetime, but FOREVER. Start this decade with a good.. Help someone to see the MISSING COLOURS in their life. A startup NGO is conducting a survey to analyze trends about EYE DONATION and ITS AWARENESS IN INDIA

Re: manage.py makemessages doesn't create .po files

2011-01-06 Thread skazhy
I tried running it with the djang-admin.py, same errors as with manage.py. Karlis On 6 Janv., 18:30, Shawn Milochik wrote: > It appears that 'makemessages' is meant to be run with django-admin.py, > not manage.py. > > http://docs.djangoproject.com/en/dev/topics/i18n/localization/ > > Shawn --

Re: Django with PostgreSQL on Debian.

2011-01-06 Thread Tonton
on my ubuntu in the settings . py 'ENGINE': 'django.db.backends.postgresql_psycopg2', i've seen works with 'ENGINE': 'postgresql_psycopg2', On Thu, Jan 6, 2011 at 5:32 PM, Peter L. Berghold wrote: > Having gotten through the first few obstacles, I am now trying to build > an ap

Django with PostgreSQL on Debian.

2011-01-06 Thread Peter L. Berghold
Having gotten through the first few obstacles, I am now trying to build an app on a Debian based (Linux Mint, actually) and I am running into the following message when running the development server: django.core.exceptions.ImproperlyConfigured: Error loading psycopg module: No module named psycop

Re: manage.py makemessages doesn't create .po files

2011-01-06 Thread Shawn Milochik
It appears that 'makemessages' is meant to be run with django-admin.py, not manage.py. http://docs.djangoproject.com/en/dev/topics/i18n/localization/ Shawn -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to d

manage.py makemessages doesn't create .po files

2011-01-06 Thread skazhy
Hi! I tried running "manage.py makemessages -l lv" in the project root dir. At first I got the following error: Error: This script should be run from the Django SVN tree or your project or app tree. If you did indeed run it from the SVN checkout or your project or application, maybe you are just

Re: Beginner questions: on the official polls tutorial

2011-01-06 Thread skazhy
3. You need to restart it only after you modify apache config files. On 6 Janv., 02:52, Zheng wrote: > I started with the official tutorial to build the polls app. > Everything works fine. I then tried to use wsgi on Apache. Everything > still works, though with some defects explained below. I ha

Re: Ordering columns in from clause

2011-01-06 Thread Ian Clelland
On Thu, Jan 6, 2011 at 7:35 AM, Vlastimil Zima wrote: > Recently I found out that distinct() can not be called on queries that > are ordered as the result query is kind of > > SELECT DISTINCT table.id, table.ordering_column FROM table ORDER BY > table.ordering_column ASC > > In ticket http://code.

Ordering columns in from clause

2011-01-06 Thread Vlastimil Zima
Recently I found out that distinct() can not be called on queries that are ordered as the result query is kind of SELECT DISTINCT table.id, table.ordering_column FROM table ORDER BY table.ordering_column ASC In ticket http://code.djangoproject.com/ticket/11568 was said that this will not be fixed

Re: Massive insertion of records

2011-01-06 Thread Thomas Weholt
Just want to mention DSE which is especially made to solve problems with mass insert and/updates in django: http://pypi.python.org/pypi/dse/0.3.0 Regards, Thomas On Wed, Dec 29, 2010 at 1:22 PM, Derek wrote: > Thanks Craig - that explains it very clearly indeed ("textbook answer"!) > > On 27 De

ANN: dse 0.3.0 DSE - Delayed SQL Executor

2011-01-06 Thread Thomas Weholt
Just released a new version of DSE for django and would like to get comments, flames, whatever. http://pypi.python.org/pypi/dse/0.3.0 -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Japanese Text Sort Order

2011-01-06 Thread Tetsuya Morimoto
Hi, James I'm Japanese. > Any other suggestions or ways to correctly sort Japanese Words? Though I'm not well versed in ordering Japanese words, my friend told me the standards named "JIS X 4061:1996". That's the standards using for Japanese dictionary(not python) or Japanese book index. The ja.

Re: clever 404 pages

2011-01-06 Thread sunn
Use a custom 404 handler view: http://docs.djangoproject.com/en/dev/topics/http/views/#customizing-error-views On Jan 6, 2:45 pm, shofty wrote: > has anyone ever written or read an article on creation of clever 404 > pages in django sites? > > i'd like to know if its possible to capture the url r

Re: Japanese Text Sort Order

2011-01-06 Thread Thuy Nhien Doan
On Thu, Jan 6, 2011 at 5:31 PM, James Hancock wrote: > Wow, I have no idea what you just said... but, I think I agree. > > *Man, the Japanese where not thinking about programming when they made > their language*. > > Any other suggestions or ways to correctly sort Japanese Words? > > Cheers, > Ja

404 on Django admin

2011-01-06 Thread mostly_harmless
I installed the django admin interface recently following instructions from the djangobook I created a superuser and all. I am able to login But whenever I click on any link in the admin interface, I get a 404. Please help where I might be wrong. I am completely new to Django. -- You received thi

Re: Bug when OR'ing an empty Q() with a non-empty Q()?

2011-01-06 Thread bruno desthuilliers
On 6 jan, 04:14, Karen Tracey wrote: > > Near as I can tell the doc doesn't say anything about what effect an empty > Q() is supposed to have, so I don't know if the behavior you describe is a > bug or not. > > However, the behavior you describe makes sense to me if you take the view > that and em

Re: clever 404 pages

2011-01-06 Thread Daniel Roseman
On Thursday, January 6, 2011 11:45:20 AM UTC, shofty wrote: > > has anyone ever written or read an article on creation of clever 404 > pages in django sites? > > i'd like to know if its possible to capture the url requested and > maybe push back a quick search on the terms in the url, rather tha

clever 404 pages

2011-01-06 Thread shofty
has anyone ever written or read an article on creation of clever 404 pages in django sites? i'd like to know if its possible to capture the url requested and maybe push back a quick search on the terms in the url, rather than just telling the user that the page has disappeared in the transition to

Re: Cant locate problem with trunk: 'ModelForm' object has no attribute '_meta'

2011-01-06 Thread Martin
I added my case to this Django ticket. As far as I can tell its related to the changes mentioned there. http://code.djangoproject.com/ticket/15025 -- 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: Japanese Text Sort Order

2011-01-06 Thread Masklinn
On 2011-01-06, at 11:31 , James Hancock wrote: > Any other suggestions or ways to correctly sort Japanese Words? I don't believe Python has any support for collations (locale-specific sorts, especially the Unicode Collation Algorithm and related Default Unicode Collation Element Table and Common

Re: MVC (mtv!) schema...

2011-01-06 Thread James Hancock
I like it. I think it would make a good cartoon. *Bookmark that. Cheers, James Hancock On Tue, Jan 4, 2011 at 11:27 PM, marco wrote: > hi! > > i'm reading the djangobook, and it ocurred to me this drawing, to > graphic the mtv concept. > > hope you like it, and you are free to use it! > > http

Re: Japanese Text Sort Order

2011-01-06 Thread James Hancock
Wow, I have no idea what you just said... but, I think I agree. If I am right, what you are saying is, because the same kanji has multiple readings and the words are sorted by reading and not the kanji itself, that dictionary is going to be impossibly difficult to make. quick example, skip if you

Re: ZSI WEB SERVICE

2011-01-06 Thread sami nathan
Ya me too in the same problem if any one find the solution please post here -- 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: Japanese Text Sort Order

2011-01-06 Thread Masklinn
On 2011-01-06, at 07:23 , Sam Walters wrote: > Hi, > Personally I would map the priority of every character in a dict and > pass this to sorted Given Japanese is not an alphabetical language and mixes syllabic and logographic scripts (the logographic system having a few thousand graphemes), I do