problem with gettext at os x 10.4.11
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.5, django from trunk, OS X 10.4.11. Thanks fro a help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Something like admin.StackedInline where 'extra'
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 travelers to get their > > names. Something like admin.StackedInline where 'extra' would be a > > number of travelers. Any idea? > > Look into inline formsets: > > http://docs.djangoproject.com/en/dev/topics/forms/modelforms/#inline-... > > This is what you're wanting. > > -- > Frank Wiles > Revolution Systems |http://www.revsys.com/ > fr...@revsys.com | (800) 647-6298 -- 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-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Google Docs blogging API
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 received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
redirect based on selected choice from simple form
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 render_to_response from api.q1.forms import QuestionForm from api.q1.models import Question def index(request): if request.method == 'POST': form = QuestionForm(request.POST) if form.is_valid(): form.save() a = Question.objects.latest('color') if a.color == 'BLUE': return render_to_response('q1/a1.html') elif a.color == 'RED': return render_to_response('q1/a2.html') elif a.color == 'WHITE': return render_to_response('q1/a3.html') else: return render_to_response('q1/thanks.html') else: form = QuestionForm() return render_to_response('q1/q.html', {'form': form}) models.py from django.db import models COLOR_CHOICES = ( ('BLUE', 'Blue'), ('RED', 'Red'), ('WHITE', 'White'), ) class Question(models.Model): color = models.CharField("What's your favorite color?", max_length=255, choices=COLOR_CHOICES) def __unicode__(self): return self.color class Admin: pass forms.py from q1.models import Question from django.newforms import ModelForm from django.newforms.widgets import * class QuestionForm(ModelForm): class Meta: model = Question --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: redirect based on selected choice from simple form
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]> wrote: > 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 render_to_response > from api.q1.forms import QuestionForm > from api.q1.models import Question > > def index(request): > if request.method == 'POST': > form = QuestionForm(request.POST) > if form.is_valid(): > form.save() > a = Question.objects.latest('color') > if a.color == 'BLUE': > return render_to_response('q1/a1.html') > elif a.color == 'RED': > return render_to_response('q1/a2.html') > elif a.color == 'WHITE': > return render_to_response('q1/a3.html') > else: > return render_to_response('q1/thanks.html') > else: > form = QuestionForm() > > return render_to_response('q1/q.html', {'form': form}) > > models.py > > from django.db import models > > COLOR_CHOICES = ( > ('BLUE', 'Blue'), > ('RED', 'Red'), > ('WHITE', 'White'), > ) > > class Question(models.Model): > color = models.CharField("What's your favorite color?", > max_length=255, choices=COLOR_CHOICES) > > def __unicode__(self): > return self.color > > class Admin: > pass > > forms.py > > from q1.models import Question > from django.newforms import ModelForm > from django.newforms.widgets import * > > class QuestionForm(ModelForm): > class Meta: > model = Question --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
myghtyboard forum problem
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_forum.forum_topics may not be NULL Request Method: POST Request URL:http://127.0.0.1:8000/admin/myghtyboard/forum/add/ Exception Type: IntegrityError Exception Value:myghtyboard_forum.forum_topics may not be NULL Exception Location: /Library/Frameworks/Python.framework/Versions/2.5/ lib/python2.5/site-packages/django/db/backends/sqlite3/base.py in execute, line 92 The question is: what couse the problem? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: myghtyboard forum problem
HI baxter, I did exactly as you proposed, but the result is unfortunately the same. I've even created fresh database, but when I go to Admin, create the new category and then trying to add new Forum and getting the same error page saying as above... Some other idea, what could cause the problem? Thank you. On Mar 8, 3:44 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I've never seen it, so I'm just speculating here, but I think it's > throwing a wobbly cause you don't have any topics in the forum yet. > Looking 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. > > On Mar 8, 5:08 am, "zehi" <[EMAIL PROTECTED]> wrote: > > > 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_forum.forum_topics may not be NULL > > Request Method: POST > > Request URL:http://127.0.0.1:8000/admin/myghtyboard/forum/add/ > > Exception Type: IntegrityError > > Exception Value:myghtyboard_forum.forum_topics may not be NULL > > Exception Location: /Library/Frameworks/Python.framework/Versions/2.5/ > > lib/python2.5/site-packages/django/db/backends/sqlite3/base.py in > > execute, line 92 > > > The question is: what couse the problem? > > > Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: myghtyboard forum problem
What do you exactly mean by saying: "Did you alter the db so it would allow that field to be null?" I returned to previous version without "null=True", syncdb, but still same... :-( I have downloaded code today. Is it possible, that thre would be some little bug currently? Does somebody tried recently? Thanks for any idea. On Mar 8, 6:29 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Did you alter the db so it would allow that field to be null? Better > yet, now that I look at it.. forget making it null. Make sure it's > defaulting 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 when I go to Admin, create the > > new category and then trying to add new Forum and getting the same > > error page saying as above... > > > Some other idea, what could cause the problem? > > > Thank you. > > > On Mar 8, 3:44 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > > wrote: > > > > I've never seen it, so I'm just speculating here, but I think it's > > > throwing a wobbly cause you don't have any topics in the forum yet. > > > Looking 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. > > > > On Mar 8, 5:08 am, "zehi" <[EMAIL PROTECTED]> wrote: > > > > > 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_forum.forum_topics may not be NULL > > > > Request Method: POST > > > > Request URL:http://127.0.0.1:8000/admin/myghtyboard/forum/add/ > > > > Exception Type: IntegrityError > > > > Exception Value:myghtyboard_forum.forum_topics may not be NULL > > > > Exception Location: > > > > /Library/Frameworks/Python.framework/Versions/2.5/ > > > > lib/python2.5/site-packages/django/db/backends/sqlite3/base.py in > > > > execute, line 92 > > > > > The question is: what couse the problem? > > > > > Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: myghtyboard forum problem
All Right. It seems to be a problem somewhere else: Both, localy and on server I run python 2.5. It looks like, that diamanda installation procedure is calling older python version 2.4 ??? Is it possible? sample: [EMAIL PROTECTED] raw]$ python manage.py syncdb [EMAIL PROTECTED] raw]$ cd .. [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-admin.py", line 5, in ? management.execute_from_command_line() File "/home2/zehi/lib/python2.4/django/core/management.py", line 1238, in execute_from_command_line translation.activate('en-us') File "/home2/zehi/lib/python2.4/django/utils/translation/ trans_real.py", line 195, in activate _active[currentThread()] = translation(language) File "/home2/zehi/lib/python2.4/django/utils/translation/ trans_real.py", line 184, in translation default_translation = _fetch(settings.LANGUAGE_CODE) File "/home2/zehi/lib/python2.4/django/utils/translation/ trans_real.py", line 169, in _fetch app = __import__(appname, {}, {}, []) ImportError: No module named wiki It's over my head yet. Somebody has experience with that? On Mar 8, 11:34 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Go to your database in phpmyadmin or something and see what that field > is doing. I don't think it's set up to insert the default value of 0 > > I grabbed the code for Myghtyboard right when it was first released > and have modded almost all of it by now, but that line is exactly the > same in mine. I think the problem is in your DB. Why, I'm not sure. > > On Mar 8, 3:39 pm, "zehi" <[EMAIL PROTECTED]> wrote: > > > What do you exactly mean by saying: "Did you alter the db so it would > > allow that field to be null?" > > > I returned to previous version without "null=True", syncdb, but still > > same... :-( > > > I have downloaded code today. Is it possible, that thre would be some > > little bug currently? Does somebody tried recently? > > > Thanks for any idea. > > > On Mar 8, 6:29 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > > wrote: > > > > Did you alter the db so it would allow that field to be null? Better > > > yet, now that I look at it.. forget making it null. Make sure it's > > > defaulting 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 when I go to Admin, create the > > > > new category and then trying to add new Forum and getting the same > > > > error page saying as above... > > > > > Some other idea, what could cause the problem? > > > > > Thank you. > > > > > On Mar 8, 3:44 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > > > > wrote: > > > > > > I've never seen it, so I'm just speculating here, but I think it's > > > > > throwing a wobbly cause you don't have any topics in the forum yet. > > > > > Looking 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. > > > > > > On Mar 8, 5:08 am, "zehi" <[EMAIL PROTECTED]> wrote: > > > > > > > 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_forum.forum_topics may not be NULL > > > > > > Request Method: POST > > > > > > Request URL:http://127.0.0.1:8000/admin/myghtyboard/forum/add/ > > > > > > Exception Type: IntegrityError > > > > > > Exception Value:myghtyboard_forum.forum_topics may not be > > > > > > NULL > > > > > > Exception Location: > > > > > > /Library/Frameworks/Python.framework/Versions/2.5/ > > > > > > lib/python2.5/site-packages/django/db/backends/sqlite3/base.py in > > > > > > execute, line 92 > > > > > > > The question is: what couse the problem? > > > > > > > Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: myghtyboard forum problem
Thank you Baxter, but could you specific as typing exact place (or in the particular sample) where to modify it? ... I know, it is quite dole from me, but I really want to avoid other mistake. I am guessing like this: The current: forum_topicsint44 Yes Change Drop Index Unique should it goes to this?: forum_topicsint40 Yes Change Drop Index Unique Thanks. On Mar 9, 10:52 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Exactly... even though your formatting got lost, you see where forum- > topics 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: > > > Database zehi - Table myghtyboard_forum > > Field TypeLength Not NullDefault Action > > id int44 Yes > > nextval('myghtyboard_forum_id_seq'::regclass) > > Change DropIndex Unique > > forum_category_id int44 Yes Change Drop > > Index Unique > > forum_name varchar 255 Yes Change Drop > > Index Unique > > forum_description varchar 255 Yes Change > > DropIndex Unique > > forum_topicsint44 Yes Change DropIndex > > Unique > > forum_posts int44 Yes Change DropIndex > > Unique > > forum_lastpost varchar 255 No Change > > DropIndex Unique > > forum_order int22 Yes Change DropIndex > > Unique > > > Keyname Unique Primary Field Action > > myghtyboard_forum_forum_category_id No No forum_category_id > > Drop > > myghtyboard_forum_pkey Yes Yes id Drop --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Django FileBrowser
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]> wrote: > if you can´t see the mentioned screenshot, your urls are probably > configured wrong. > > be sure to follow the installation guide EXACTLY - I´ve done that > with all of my projects and I don´t have any problems. > check the settings file (esp. MEDIA_ROOT and MEDIA_URL). > > patrick. > > Am 13.03.2007 um 19:01 schrieb Mary: > > > > > No i can't see this pictures and directories > > but when i copy and past the url before the admin url [sorry i read > > this note in the steps and i think i missed it the first time]i was > > able to add directories > > > But i still can't see the > >http://trac.dedhost-sil-076.sil.at/trac/filebrowser/chrome/site/ > > fb_2.jpg > > > I wondering why? > > > On Mar 13, 6:35 pm, "patrick k." <[EMAIL PROTECTED]> wrote: > >> before you click on "make directory", do you see the directory- > >> listing like this:http://trac.dedhost-sil-076.sil.at/trac/ > >>filebrowser/chrome/site/fb_2.jpg > > >> did you follow step 6? > >> it seems that the urls aren´t configured. > > >> patrick > > >> Am 13.03.2007 um 17:14 schrieb Mary: > > >>> I would like to use Django file browser > >>> i did the steps 1-8 that is on the link > >>>http://trac.dedhost-sil-076.sil.at/trac/filebrowser/ > >>> wiki#DjangoFileBrowser > >>> and when i open my admin interface i found the filebrowse but when i > >>> click on > >>> Adddirectory it gave me an error > > >>> App 'filebrowser', model 'mkdir', not found > > >>> Does anyone have an idea why is this happened to me ? > > >>> Thank you in advance ; > >>> Mary Adel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
i18n for flatpages question
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 be to be able to use " {% trans 'text...' %} or is there possibility to 'embed' to template? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
settings.py help please
Hi, I am Django newbee as well as getting familiar with MySQL and Python itself. I use OS X 10.4 and I amtrying to follow Django tutorial. I am testing everything on Django testing server. I have a problem with settings.py. Django is installed properly, I guess. When di import django I have no 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__.pycsettings.py urls.py zehi:~/mysite zehi$ vi settings.py zehi:~/mysite zehi$ python manage.py syncdb Traceback (most recent call last): File "manage.py", line 11, in ? execute_manager(settings) File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/core/management.py", line 1319, in execute_manager execute_from_command_line(action_mapping, argv) File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/core/management.py", line 1243, in execute_from_command_line action_mapping[action]() File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/core/management.py", line 426, in syncdb from django.db import connection, transaction, models, get_creation_module File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/db/__init__.py", line 11, in ? backend = __import__('django.db.backends.%s.base' % settings.DATABASE_ENGINE, '', '', ['']) File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/db/backends/mysql/base.py", line 12, in ? raise ImproperlyConfigured, "Error loading MySQLdb module: %s" % e django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb Can somebody help me? I am stacked here for several days already. Thank you. zehi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: settings.py help please
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.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.doc.XViewMiddleware', ) ROOT_URLCONF = 'mysite.urls' TEMPLATE_DIRS = ( # Put strings here, like "/home/html/django_templates". # Always use forward slashes, even on Windows. ) INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', ) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: settings.py help please
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 information. >>> import MySQLdb Traceback (most recent call last): File "", line 1, in ? ImportError: No module named MySQLdb >>> Even Django is installed properly (I think...)). Not sure how to install MySQLdb . for OS X 10.4 I am following "Installing Django on Mac OS X" word by word, but still can't get things run. Somebody have some experience? Thank you, zehi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: settings.py help please
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: line 1: mysql_config: command not found sh: line 1: mysql_config: command not found running build running build_py copying MySQLdb/release.py -> build/lib.macosx-10.4-fat-2.4/MySQLdb error: could not delete 'build/lib.macosx-10.4-fat-2.4/MySQLdb/release.py': Permission denied zehi:~/Desktop/MySQL-python-1.2.1_p2 zehi$ Not sure what's wrong? Thank you, zehi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: django - kit
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" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
The flatpages app question
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 = models.CharField(_('description'), maxlength=200) - - - class Admin: fields = ( (None, {'fields': ('url', 'keywords', 'description', 'title', 'content', 'sites')}), It is still O.K in my Admin, but when I try to add the default.html template like: {{ flatpage.title }} , but keywords and description do not appear on particular page. Where are I do a mistake? Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: The flatpages app question
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]> wrote: Hello, Regarding thehttp://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 = models.CharField(_('description'), maxlength=200) - - - class Admin: fields = ( (None, {'fields': ('url', 'keywords', 'description', 'title', 'content', 'sites')}), It is still O.K in my Admin, but when I try to add the default.html template like: {{ flatpage.title }} , but keywords and description do not appear on particular page. Where are I do a mistake? Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---