problem with gettext at os x 10.4.11

2008-07-18 Thread zehi
Hey Django fellows, Could somebody point me where is the problem. on my machine? While I try to run: django-admin.py makemessages -a ... I'm getting error message: processing language ar Error: errors happened while running xgettext on __init__.py language `Python' unknown I'm using Python 2

Re: Something like admin.StackedInline where 'extra'

2010-06-04 Thread zehi
Thanks Frank. On Jun 3, 6:33 pm, Frank Wiles wrote: > On Thu, Jun 3, 2010 at 9:56 AM, jeremy07 wrote: > > Hi, I have a simple booking app where first form gets number of > > travelers. Based on that number I need to generate another form with > > number of rows equal to entered number of travele

Google Docs blogging API

2007-07-25 Thread zehi
HI, Has somebody some experience connecting some Django Blog app with Google Docs via: Here is a list of current APIs (Common Blog API Access URLs): http://docs.google.com/View.aspx?docid=afwwtkhg6gn_aj8z6fsv5kx Some thoughts? zehi --~--~-~--~~~---~--~~ You

redirect based on selected choice from simple form

2008-05-19 Thread zehi
Ok, here is my 'Modelform' problem: I want to redirect based on selected choice from simple form: QUESTION OPTIONS: 1, 2, 3 Obviously, by me chosen approach with 'get.objects.latest' is not the one, that works... Somebody have an idea? Thanks views.py from django.shortcuts import re

Re: redirect based on selected choice from simple form

2008-05-19 Thread zehi
I've changed to: p = Question.objects.all() r = p[p.count()-1] a = r.color ... and it works. However, I'm sure, there is more elegant solution, isn't it? On May 19, 2:51 pm, zehi <[EMAIL PROTECTED]>

myghtyboard forum problem

2007-03-08 Thread zehi
Hi, I downloaded diamanda fro google.code and followed instructions at: http://diamanda.googlecode.com/svn/trunk/README.TXT Everything works just fine, I have anly problem with 'Add Forum'. I am getting the following error message: IntegrityError at /admin/myghtyboard/forum/add/ myghtyboard_fo

Re: myghtyboard forum problem

2007-03-08 Thread zehi
g at the source, I see: > class Forum(models.Model): >... >forum_topics = models.PositiveIntegerField(default='0', blank=True, > verbose_name=_("Topics")) # number of topics > > I think if you add null=True there (and update the DB to match) you > should be OK. > &g

Re: myghtyboard forum problem

2007-03-08 Thread zehi
g to 0, like it's supposed to. > > On Mar 8, 11:08 am, "zehi" <[EMAIL PROTECTED]> wrote: > > > HI baxter, > > > I did exactly as you proposed, but the result is unfortunately the > > same. > > > I've even created fresh database, but w

Re: myghtyboard forum problem

2007-03-08 Thread zehi
.. [EMAIL PROTECTED] django_current_python_25]$ export DJANGO_SETTINGS_MODULE=raw.settings [EMAIL PROTECTED] django_current_python_25]$ export PYTHONPATH=$PWD [EMAIL PROTECTED] django_current_python_25]$ django-admin.py syncdb Traceback (most recent call last): File "/home2/zehi/bin/django-adm

Re: myghtyboard forum problem

2007-03-11 Thread zehi
s has no default value? That's your problem. Modify that field > that 0 is the default value. > > I still don't know why it happened, though. > > On Mar 9, 3:41 pm, "Richard Zehnal" <[EMAIL PROTECTED]> wrote: > > > This is view from my database table: &

Re: Django FileBrowser

2007-04-11 Thread zehi
Hi, I can't figure out step 5: Change /filebrowser/views.py. Replace the paths: FB_ROOT = settings.MEDIA_ROOT + "uploads/" FB_URL = settings.MEDIA_URL + "uploads/" Does it mean to just delete or change? If to change, then how? Thanks On Mar 14, 1:18 am, "patrick k." <[EMAIL PROTECTED]> wrot

i18n for flatpages question

2007-04-19 Thread zehi
Hi, I would need to use i18n for flatpages. Is that possible and if yes, could you share how to define translation string in flatpages templates. Regarding to that, I thought about 'flat page builder' app with ability to divide content to smaller blocks (paragraphs, ..) The great option would

settings.py help please

2006-09-21 Thread zehi
error message. MySQL works well too. However when I run syncdb.py I get this message: mysql> create database test_dj; Query OK, 1 row affected (0.02 sec) mysql> \q Bye zehi:~ zehi$ cd mysite/ zehi:~/mysite zehi$ ls __init__.py manage.py settings.pycurls.pyc __init

Re: settings.py help please

2006-09-21 Thread zehi
And here is how looks settings before running syncdb.py zehi:~/mysite zehi$ vi settings.py # 'django.template.loaders.eggs.load_template_source', ) MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.mid

Re: settings.py help please

2006-09-21 Thread zehi
Thank you guys, Last login: Thu Sep 21 13:33:04 on ttyp1 Welcome to Darwin! zehi:~ zehi$ python Python 2.4.3 (#1, Mar 30 2006, 11:02:15) [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin Type "help", "copyright", "credits" or "license" for more i

Re: settings.py help please

2006-09-21 Thread zehi
Still not successfull When trying to install MySQLdb I'm getting this error: zehi:~/Desktop/MySQL-python-1.2.1_p2 zehi$ python setup.py build sh: line 1: mysql_config: command not found sh: line 1: mysql_config: command not found sh: line 1: mysql_config: command not found sh: l

Re: django - kit

2006-10-07 Thread zehi
http://www.webfaction.com/ is very cool including good screencast tutorials and support forums. They work with all 'hot' apps zehi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&quo

The flatpages app question

2007-01-14 Thread zehi
Hello, Regarding the http://www.djangoproject.com/documentation/flatpages/ I try to: 1 based on django/contrib/flatpages/models.py my app named b - O.K. 2 I'm trying to add to class FlatPage: keywords = models.CommaSeparatedIntegerField(_('keywords'), maxlength=200) description

Re: The flatpages app question

2007-01-14 Thread zehi
Hello All! I guess, I must try to be more specific. What I am trying to achive is, to add mate names 'description' and 'keywords' to my flat page template and to admin. Thanks for any help and idea. On Jan 14, 10:01 am, "zehi" <[EMAIL PROTECTED]&g