Re: CRUD with forms from models usin ModelForm?

2008-09-09 Thread Daniel Roseman
On Sep 9, 4:47 am, "Efrain Valles" <[EMAIL PROTECTED]> wrote: > Hello all, > > I have a basic question, I am currently adding new items using a form > that is generated using ModelForms, I have html for the form I need > using {{ form.as_table }} in the html. Now I am trying to do CRUD for > data

What do you use as a build tool (like Ant or make)

2008-09-09 Thread ristretto.rb
Hello, What do you use to build a Django project? By build I mean, * run unit tests * copy files to a distribution set based on a target (production, staging, clustered, etc.) * include config files specific to the target, and not including source control files and other development time

Re: i18N with templates in separate directory

2008-09-09 Thread timc3
> Shouldn't you run it from the mysite/ directory? Even further, now that I think > about it, you should can simplify things by simply manually > creating the mysite/locale directory  and then doing > > mysite $ python manage.py makemesages -l se > > (just tested it and it works) It works for

Re: What do you use as a build tool (like Ant or make)

2008-09-09 Thread Jarek Zgoda
We use Paver (http://www.blueskyonmars.com/projects/paver/), but I am far from being happy with it. Sometimes I just stick with Ant. Wiadomość napisana w dniu 2008-09-09, o godz. 10:14, przez ristretto.rb: > > Hello, > > What do you use to build a Django project? By build I mean, > > * run

always rollback decorator

2008-09-09 Thread Thomas Guettler
Hi, I try to write an always_rollback decorator like the commit_on_success one. I want to use it to test a live system without changing it. I use Postgres supports nested transaction by using savepoints. Unfortunately I can't get it working: I try to use savepoints, but they get lost as soon

Re: What do you use as a build tool (like Ant or make)

2008-09-09 Thread V
Hi, there was a thread on the bazaar mailing list about continuous integration systems for bazaar, it's not just a build tool, and not django related, but it might worth a look: https://lists.ubuntu.com/archives/bazaar/2008q3/046352.html V On Sep 9, 10:23 am, Jarek Zgoda <[EMAIL PROTECTED]>

possible bug in django-admin

2008-09-09 Thread Benedict Verheyen
Hi, i tried to do a django-admin startproject and it said that startproject wasn't a valid command. Weird. django-admin help indeed didn't show the startproject command. Checked /usr/lib/python2.4/site-packages/django/core/management/__init__.py And in the get_commands function, there is a

Re: What do you use as a build tool (like Ant or make)

2008-09-09 Thread Christian Hoeppner
I've heard rumours about fabric (ask google, sorry can't remember url now). ~Chris On 09/09/2008, at 9:14, ristretto.rb wrote: > > Hello, > > What do you use to build a Django project? By build I mean, > > * run unit tests > * copy files to a distribution set based on a target

Hierarchical Tagging

2008-09-09 Thread Thomas Guettler
Hi, django-tagging looks nice, but I need to have hierarchical tags: animal / bird / eagle Any idea: Hack/Update django-tagging, create own, use django-??? Thomas -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de

Re: help me.... mysqld error

2008-09-09 Thread Funky
your /tmp is mounted as noexec,nosuid and so you get that error. remount your /tmp as rw to fix the issue. On Aug 3, 5:07 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I use mod_python > apache conf: > >         ServerNamewww.test.cn >         DocumentRoot /home/omanga/webroot >        

Re: possible bug in django-admin

2008-09-09 Thread James Bennett
On Tue, Sep 9, 2008 at 4:15 AM, Benedict Verheyen <[EMAIL PROTECTED]> wrote: > i tried to do a django-admin startproject and it > said that startproject wasn't a valid command. > Weird. django-admin help indeed didn't show the startproject command. This is currently intended behavior and I

Django Evolution

2008-09-09 Thread Greig Rapley
After upgrading to Django 1.0 I am having trouble getting django evolution (svn) to work. I have looked on their site, and applied one of the patches made available (for ImageField), but still no luck. I found a post dated September 2 from Keith saying he would update the project within a week,

Re: ANN: Updated Django Cheat Sheet

2008-09-09 Thread Vinay Sajip
On Sep 4, 6:46 pm, Fraser Nevett <[EMAIL PROTECTED]> wrote: > Thanks for all the feedback both on list and via email. > > Our plan is to wait a day or two to see if there are any further > corrections required and then to release an updated edition early next > week. At this time we'll also

Re: Hierarchical Tagging

2008-09-09 Thread Nikolay Panov
You may check the following: http://code.djangoproject.com/wiki/CookBookCategoryDataModel http://code.google.com/p/django-categories/ Have a nice day, Nikolay. On Tue, Sep 9, 2008 at 13:40, Thomas Guettler <[EMAIL PROTECTED]> wrote: > > Hi, > > django-tagging looks nice, but I need to have

Re: Apache httpd conf with mod_python

2008-09-09 Thread mccomas . chris
thnx, i've figured it out. the issue i'm having now is with my django requirements in it: SetHandler python-program PythonPath "['/home/chris/web/django_project'] + sys.path" PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE ucwv.settings PythonDebug

Re: Apache httpd conf with mod_python

2008-09-09 Thread Karen Tracey
On Tue, Sep 9, 2008 at 8:05 AM, <[EMAIL PROTECTED]> wrote: > > thnx, i've figured it out. the issue i'm having now is with my django > requirements in it: > > >SetHandler python-program >PythonPath "['/home/chris/web/django_project'] + sys.path" >PythonHandler

Re: Apache httpd conf with mod_python

2008-09-09 Thread andylockran
Ok, it could be that your PythonPath is wrong? /home/chris/web/django_project's' rather than the singular project. Does your ucwv sit @ /home/chris/web/django_projects/ucwv? Regards, Andy Karen Tracey wrote: > On Tue, Sep 9, 2008 at 8:05 AM, <[EMAIL PROTECTED] > >

Re: Apache httpd conf with mod_python

2008-09-09 Thread mccomas . chris
it wasn't plural, i changed it to plural and then changed it in the httpd.conf, restarted apache, and still no luck. yes, ucwv is at /home/chris/web/django_projects/ucwv On Sep 9, 8:35 am, [EMAIL PROTECTED] wrote: > Ok, it could be that your PythonPath is wrong? >

Re: Apache httpd conf with mod_python

2008-09-09 Thread mccomas . chris
Karen, the permissions for the main directory web, and all of the subdirectories is 775. On Sep 9, 8:29 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Tue, Sep 9, 2008 at 8:05 AM, <[EMAIL PROTECTED]> wrote: > > > thnx, i've figured it out. the issue i'm having now is with my django > >

Re: Apache httpd conf with mod_python

2008-09-09 Thread Karen Tracey
On Tue, Sep 9, 2008 at 8:44 AM, <[EMAIL PROTECTED]> wrote: > > Karen, > > the permissions for the main directory web, and all of the > subdirectories is 775. > And you're not running on some system with an SELinux (e.g.) kernel that uses an access rights structure outside of the basic

How do I befriend a user in the User class?

2008-09-09 Thread coan
I want to add a recursive relationship to the built-in User model - to store relationships between users. Are there any (non-hairy) ways to do this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: Unicode decode errors with Admin and Postgres

2008-09-09 Thread Paolo Corti
On 1 Set, 18:48, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Mon, 2008-09-01 at 08:37 -0700, PaoloCortiwrote: > > Hi all > > > I am a beginner using Django from the trunk and Postgres 8.2 > > > I have this issue with utf8, you can replicate it this way (it is > > something similiar to

Re: Apache httpd conf with mod_python

2008-09-09 Thread mccomas . chris
Karen, There is a SELinux kernel, but it is set to disabled. On Sep 9, 8:50 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Tue, Sep 9, 2008 at 8:44 AM, <[EMAIL PROTECTED]> wrote: > > > Karen, > > > the permissions for the main directory web, and all of the > > subdirectories is 775. > > And

Re: What do you use as a build tool (like Ant or make)

2008-09-09 Thread Adam Stein
I'm not doing unit tests at the moment, but for build and release I use Waf (http://code.google.com/p/waf/), which happens to be written in Python (including the configuration files). On Tue, 2008-09-09 at 01:14 -0700, ristretto.rb wrote: > Hello, > > What do you use to build a Django project?

When can you call urlresolvers.reverse()?

2008-09-09 Thread Gremmie
I ran into a problem this weekend, and I think I sort of understand why it was happening, but I would like some experts to check my reasoning :-). I wanted to add some help_text to a form field that included a link to another page of mine. I had something like this (from memory): class

Validating ImageField width and height in admin site

2008-09-09 Thread Nick
Hi, I'm looking to validate my ImageField images in the admin site. If they are a specific size, then the whole record will save - if they are not, then the user will be returned to the form with a validation error message. I've seen get_image_dimensions, but I'm not sure how this would be

Re: Apache httpd conf with mod_python

2008-09-09 Thread Karen Tracey
On Tue, Sep 9, 2008 at 9:21 AM, <[EMAIL PROTECTED]> wrote: > > Karen, > > There is a SELinux kernel, but it is set to disabled. > All I can say is the error you are getting, combined with the config you have shown, means that either Apache cannot read the file:

Re: ANN: Updated Django Cheat Sheet

2008-09-09 Thread dusans
Tnx, make a black/white version :) On Sep 4, 12:09 pm, Fraser Nevett <[EMAIL PROTECTED]> wrote: > With the release of Django 1.0, we're pleased to announce the release > of a completely updated version of our highly popular Django Cheat > Sheet which is crammed with a whole host of useful Django

Re: When can you call urlresolvers.reverse()?

2008-09-09 Thread Thomas Guettler
Hi, current reverse() should not be called during import time. AFAIK since this results into recursive imports: http://code.djangoproject.com/ticket/5925 The ticket contains a way around this problem: {{{ # file lazy.py from django.core import urlresolvers class lazy_string(object): def

Re: reverse not working with (r'^comments/(.*)', include('django.contrib.comments.urls')),

2008-09-09 Thread felix
ah, got it. thanks malcolm ! just to think it out further : now I understand that (r'^something/(?P[-\w]+)/', include('some.where.urls')), would pass the captured param to to all the urls in the included urls.py I think I was copying from this: # Uncomment the next line for to enable the

Re: Django Evolution

2008-09-09 Thread Russell Keith-Magee
On Tue, Sep 9, 2008 at 6:25 PM, Greig Rapley <[EMAIL PROTECTED]> wrote: > > After upgrading to Django 1.0 I am having trouble getting django > evolution (svn) to work. I have looked on their site, and applied one > of the patches made available (for ImageField), but still no luck. I > found a

Re: Apache httpd conf with mod_python

2008-09-09 Thread mccomas . chris
thnx. i did test it with the development server and it is working, i've also tried putting up the generic settings.py that is created when you first start a project. On Sep 9, 10:02 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Tue, Sep 9, 2008 at 9:21 AM, <[EMAIL PROTECTED]> wrote: > > >

How to initialize data into an extra form of a formset_factory?

2008-09-09 Thread bhunter
I'd like to pre-populate one of the data elements of the extra_form of a formset factory with a string, and it's not clear to me how to do this from the documentation, since formset_factory does not take initial as an argument. Here's an example: class FavoriteSearch(models.Model): search

verbose_name_plural not working in the admin?

2008-09-09 Thread Paolo Corti
Hi here is a sample class: class TipoMisura(models.Model): nome = models.CharField('nome', max_length=255, null=True) class Meta: verbose_name = "Tipo di Misura" verbose_name_plural = "Tipo di Misure" In the admin interface, the link to the

Internal server error upgarding from 0.97 to 1.0

2008-09-09 Thread Haku
Hello, i'm quite frustrated by this problem. Today i had the idea to update my svn from the old 0.97 to the 1.0 release, and now nothing is working anymore. I always get an anonymous "Internal Server Error" Maybe because my project included mptt, but the fact is that i cant figure out why it is

Re: How do I befriend a user in the User class?

2008-09-09 Thread bruno desthuilliers
On 9 sep, 14:56, coan <[EMAIL PROTECTED]> wrote: > I want to add a recursive relationship to the built-in User model - to > store relationships between users. Are there any (non-hairy) ways to > do this? # friends/models.py from django.db import models from django.contribs.auth.models import

Re: verbose_name_plural not working in the admin?

2008-09-09 Thread Karen Tracey
On Tue, Sep 9, 2008 at 11:32 AM, Paolo Corti <[EMAIL PROTECTED]> wrote: > > Hi > > here is a sample class: > > class TipoMisura(models.Model): >nome = models.CharField('nome', max_length=255, null=True) > >class Meta: >verbose_name = "Tipo di Misura" >

Re: Apache httpd conf with mod_python

2008-09-09 Thread mccomas . chris
i'm really at a loss. mod_python and django are both installed under python2.4. SELinux is disabled. the standard permissions for the django_projects folder is 775. everything validates. i can run python at the command line and import the settings, etc. On Sep 9, 11:02 am, [EMAIL PROTECTED]

Re: Internal server error upgarding from 0.97 to 1.0

2008-09-09 Thread David Zhou
On Sep 9, 2008, at 11:39 AM, Haku wrote: > > Hello, i'm quite frustrated by this problem. > Today i had the idea to update my svn from the old 0.97 to the 1.0 > release, and now nothing is working anymore. > > I always get an anonymous "Internal Server Error" > Maybe because my project included

Re: Internal server error upgarding from 0.97 to 1.0

2008-09-09 Thread Karen Tracey
On Tue, Sep 9, 2008 at 11:39 AM, Haku <[EMAIL PROTECTED]> wrote: > > Hello, i'm quite frustrated by this problem. > Today i had the idea to update my svn from the old 0.97 to the 1.0 > release, and now nothing is working anymore. > 0.97 was never an official release. So, you were running some

Re: Apache httpd conf with mod_python

2008-09-09 Thread Steve Holden
[EMAIL PROTECTED] wrote: > i'm really at a loss. > > mod_python and django are both installed under python2.4. SELinux is > disabled. the standard permissions for the django_projects folder is > 775. everything validates. i can run python at the command line and > import the settings, etc. >

Error Accessing User objects from Admin

2008-09-09 Thread dbee
I seem to get an error everytime i try to access a user object on the admin panel. It's really annoying ... The pastebin is here ... http://pastebin.com/m71119d2d Any help is greatly appreciated, Thanks --~--~-~--~~~---~--~~ You received this message because

Re: Apache httpd conf with mod_python

2008-09-09 Thread mccomas . chris
At first I didn't keep all of the original stuff in the httpd.conf, but then I went back and put up the copy that I backed up and added the Django stuff to it. i have the django stuff in /home/chris/web/ should it be in /var/www ? On Sep 9, 12:19 pm, Steve Holden <[EMAIL PROTECTED]> wrote: >

Re: Apache httpd conf with mod_python

2008-09-09 Thread Steve Holden
[EMAIL PROTECTED] wrote: > At first I didn't keep all of the original stuff in the httpd.conf, > but then I went back and put up the copy that I backed up and added > the Django stuff to it. > > i have the django stuff in /home/chris/web/ > > should it be in /var/www ? > Nope, that should not

Re: Apache httpd conf with mod_python

2008-09-09 Thread mccomas . chris
Steve, no dice. ImportError: Could not import settings 'settings' (Is it on sys.path? Does it have syntax errors?): No module named settings i'm just so friggin confused now :) you think this would work... On Sep 9, 12:53 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: >

Re: Apache httpd conf with mod_python

2008-09-09 Thread mccomas . chris
I think I'm going to start over... I'm running RHEL 5, so I'll have our network admin remove Apache2, then reinstall it and try this all over again. On Sep 9, 1:00 pm, [EMAIL PROTECTED] wrote: > Steve, no dice. > > ImportError: Could not import settings 'settings' (Is it on sys.path? > Does

Re: Apache httpd conf with mod_python

2008-09-09 Thread Karen Tracey
On Tue, Sep 9, 2008 at 11:53 AM, <[EMAIL PROTECTED]> wrote: > > i'm really at a loss. > > mod_python and django are both installed under python2.4. SELinux is > disabled. the standard permissions for the django_projects folder is > 775. everything validates. i can run python at the command line

Forms

2008-09-09 Thread David
Hey, I seem to be doing something wrong as when I click on the button on the page the message does not change? - {% block title %}Person Form{% endblock %} {% block

Re: Forms

2008-09-09 Thread David
duh! apologies - misspelt 'FORM' (Jesus) On Sep 9, 6:34 pm, David <[EMAIL PROTECTED]> wrote: > Hey, I seem to be doing something wrong as when I click on the button > on the page the message does not change? > > --- >

Stupid noob question - admin link

2008-09-09 Thread Peter Bailey
Hi all, starting to think there is so much stuff in django and python that I will never learn it all. I am building a site that used the admin piece for most of the CRUD and a few other pages for the rest of my requirements. I link to the admin from my main app page, and would like to be able to

Re: Error Accessing User objects from Admin

2008-09-09 Thread Karen Tracey
On Tue, Sep 9, 2008 at 12:24 PM, dbee <[EMAIL PROTECTED]> wrote: > > I seem to get an error everytime i try to access a user object on the > admin panel. It's really annoying ... > > The pastebin is here ... > > http://pastebin.com/m71119d2d > > Any help is greatly appreciated, > Traceback seems

Re: Apache httpd conf with mod_python

2008-09-09 Thread mccomas . chris
guys, fixed it. apparently the issue was having it in /home/chris/ i moved it to var/www/ and now it's working :) i knew it'd be something as simple as that. On Sep 9, 1:12 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Tue, Sep 9, 2008 at 11:53 AM, <[EMAIL PROTECTED]> wrote: > > > i'm

Re: always rollback decorator

2008-09-09 Thread Malcolm Tredinnick
On Tue, 2008-09-09 at 10:35 +0200, Thomas Guettler wrote: [...] > I use Postgres supports nested transaction by using savepoints. > > Unfortunately I can't get it working: I try to use savepoints, but they > get lost > as soon is the commit_on_success decorator sends COMMIT. That's how

Tests catch Errors

2008-09-09 Thread Sven Richter
Hi, i was playing around with unittests and found the failUnlessRaises(excClass, callableObj) Method. If i understand it right the Method catches Exceptions that are thrown by django. I tried to send a post to a register form with: res = Client().post('/register/', {data}) which works so far.

Re: what's wrong with my django comments?

2008-09-09 Thread begray
It looks like error occurs when django tries to find matching url for view: django.contrib.comments.views.comments.post_comment Likely there's something wrong in your urls.py, eg. you've got admin urls in old style. please read the following

Re: Error Accessing User objects from Admin

2008-09-09 Thread dbee
Thanks Karen. Got it :-) --~--~-~--~~~---~--~~ 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

Re: Tests catch Errors

2008-09-09 Thread Sven Richter
On Tue, 2008-09-09 at 20:25 +0200, Sven Richter wrote: > i was playing around with unittests and found the > failUnlessRaises(excClass, callableObj) Method. > If i understand it right the Method catches Exceptions > that are thrown by django. > > I tried to send a post to a register form with:

Re: Apache httpd conf with mod_python

2008-09-09 Thread Denis Frère
On Sep 9, 8:33 pm, [EMAIL PROTECTED] wrote: > guys, fixed it. apparently the issue was having it in /home/chris/ > I moved it to var/www/ and now it's working :) i knew it'd be > something as simple as that. I'm glad for you if everything works as you intended, but the problem was certainly not

Re: Stupid noob question - admin link

2008-09-09 Thread Daniel Roseman
On Sep 9, 7:16 pm, Peter Bailey <[EMAIL PROTECTED]> wrote: > Hi all, starting to think there is so much stuff in django and python > that I will never learn it all. I am building a site that used the > admin piece for most of the CRUD and a few other pages for the rest of > my requirements. I

Re: Stupid noob question - admin link

2008-09-09 Thread Denis Frère
On Sep 9, 8:16 pm, Peter Bailey <[EMAIL PROTECTED]> wrote: > Can anyone tell me a easy way to add a hyperlink from the > main admin page to somewhere else outside the admin app. You should probably read : http://docs.djangoproject.com/en/dev/ref/contrib/admin/#overriding-admin-templates Summary

Re: what's wrong with my django comments?

2008-09-09 Thread Jarek Zgoda
Not necessarily. I had this problem after updating to new comments framework without removing stale .pyc files. After removing completely the directory /usr/lib/python2.5/site-packages/django/contrib/comments and installing Django back again, everything started working. Wiadomość napisana

weird osx problem (templates path)

2008-09-09 Thread Anakin
im using 10.5.2 osx Leopard. and im working with django 1.0 final release. i have some screenshots about this error, settings - traceback and if you need terminal log. you can see in this url. http://www.deneloper.com/django-error/index.html please tell me, what is the problem :( thanx for

Re: Stupid noob question - admin link

2008-09-09 Thread Peter Bailey
Hi Daniel. I think this is way more complex than what I want. I have a main page (e..g. the default page in my web root). It is really just a title page with several links, one of which is to my admin site to add/update objects. I just want a straight link back on the admin page to the page in

Re: weird osx problem (templates path)

2008-09-09 Thread Adi J. Sieker
Hi, On Tue, 09 Sep 2008 21:56:24 +0200, Anakin <[EMAIL PROTECTED]> wrote: > im using 10.5.2 osx Leopard. and im working with django 1.0 final > release. > > i have some screenshots about this error, settings - traceback and if > you need terminal log. you can see in this url. >

Iowa Python Users Group - First Meeting

2008-09-09 Thread Mike Driscoll
Hi all, I'm not sure how many people on this list are Iowans, but I thought you guys (and girls) would like to know the following: The first meeting date for the Iowa Python Users Group has been decided. Here are the details: Time /

Can not set up project with Django-admin.py

2008-09-09 Thread Karthik Krishnan
Hi, When I try to use django-admin.py to set up my project, this is the error that I get chmod: changing permissions of 'django-admin.py' Permissions denied In addition, I can not set up a project that I want. I am running django on Windows Vista with a Cygwin shell. Is there anything I

Newbie question Can not set up project using Cygwin on Windows Vista

2008-09-09 Thread Karthik Krishnan
Hi, I am sure that this issue has come up before but I could not find in the forum mailing list. When I try to run chmod +x django-admin.py , I get the following error. chmod: changing permissions of `django-admin.py': Permission denied Is there something I am doing wrong? Any help would be

lighttpd matters - startup

2008-09-09 Thread wishi
Hi mates ;) These days I thought working myself into Django - to get some new skills. I could need some start-up help to configure my environment, which isn't the "Apatschi" with mod_python. I'm using a lighttpd in my Debian server environment, that's going to be configured: Therefore I added

Re: weird osx problem (templates path)

2008-09-09 Thread Yousef Ourabi
Could you post a snippet of the view that is loading/rendering the template? On Tue, Sep 9, 2008 at 1:07 PM, Adi J. Sieker <[EMAIL PROTECTED]> wrote: > > Hi, > > On Tue, 09 Sep 2008 21:56:24 +0200, Anakin <[EMAIL PROTECTED]> wrote: > > > im using 10.5.2 osx Leopard. and im working with django

Re: Introducing django-cms

2008-09-09 Thread Erik Allik
How does it integrate with other/custom django apps? Erik On 08.09.2008, at 17:15, Thomas Steinacher wrote: > > Hello Djangonauts! > > I would like to introduce django-cms, a free, BSD-licensed content > management system based on Django. It is seamlessly integrated with > Django's admin

Creating an Archive

2008-09-09 Thread djandrow
Hello, I currently have a website which I am trying to add an archive to, i currently have the following date based URLs: (r'^$', 'django.views.generic.date_based.archive_index', archive_info), (r'^(?P\d{4})/$', 'django.views.generic.date_based.archive_year', archive_info),

Re: Introducing django-cms

2008-09-09 Thread Antoni Aloy
2008/9/8 Thomas Steinacher <[EMAIL PROTECTED]> Hi Thomas! > > @Antoni Aloy: > What do you mean by integration? Like integrating other applications > (e.g. a gallery) into the CMS? We're still looking for a good solution > to do that (e.g. by providing an API which allows to write a CMS > plugin

Re: weird osx problem (templates path)

2008-09-09 Thread Anakin
hey again. @Yousef : this my views.py --- from bjango.weblog.models import Tags,Categories,Articles from django.shortcuts import render_to_response from django.http import HttpResponse def index(request): return render_to_response('base.html', {"foo": "bar"})

Re: Can not set up project with Django-admin.py

2008-09-09 Thread Karthik Krishnan
Sorry duplicate. Accidentally pressed send twice On Sep 9, 12:37 pm, Karthik Krishnan <[EMAIL PROTECTED]> wrote: > Hi, > > When I try to use django-admin.py to set up my project, > > this is the error that I get > > chmod:  changing permissions of 'django-admin.py' Permissions denied > > In

Re: What do you use as a build tool (like Ant or make)

2008-09-09 Thread ristretto.rb
Waf looks nice, I'll have a deeper look. Is anyone using Vellum - http://www.zedshaw.com/projects/vellum/index.html Thanks for all the replies On Sep 10, 1:52 am, Adam Stein <[EMAIL PROTECTED]> wrote: > I'm not doing unit tests at the moment, but for build and release I use > Waf

get_absolute_url gotcha

2008-09-09 Thread Delta20
I want to post this tip here in case this trips up other people: The error message " objects don't have get_absolute_url() methods" does not necessarily mean what it says. The error message is also displayed if there is an error in the the method. If a model has a get_absolute_url method that

Re: Tests catch Errors

2008-09-09 Thread Sven Richter
On Tue, 2008-09-09 at 21:28 +0200, Sven Richter wrote: > On Tue, 2008-09-09 at 20:25 +0200, Sven Richter wrote: > > > i was playing around with unittests and found the > > failUnlessRaises(excClass, callableObj) Method. > > If i understand it right the Method catches Exceptions > > that are

Re: weird osx problem (templates path)

2008-09-09 Thread Yousef Ourabi
What is interesting is that in the stack trace it doesn't show $HOME/Documents/django/bjango/templates on the template_path, which is sort of suspicious. Try commenting out every template loader except: filesystem.load_template_source On Tue, Sep 9, 2008 at 1:38 PM, Anakin <[EMAIL PROTECTED]>

Re: Hierarchical Tagging

2008-09-09 Thread bedros
thanks, I was look for that feature too. -B On Sep 9, 4:02 am, "Nikolay Panov" <[EMAIL PROTECTED]> wrote: > You may check the > following:http://code.djangoproject.com/wiki/CookBookCategoryDataModelhttp://code.google.com/p/django-categories/ > > Have a nice day, >    Nikolay. > > On Tue, Sep

Re: Hierarchical Tagging

2008-09-09 Thread rsc
Have you also looked at Cheers, On Sep 9, 4:41 pm, bedros <[EMAIL PROTECTED]> wrote: > thanks, I was look for that feature too. > > -B > > On Sep 9, 4:02 am, "Nikolay Panov" <[EMAIL PROTECTED]> wrote: > > > You may check the > >

Re: What do you use as a build tool (like Ant or make)

2008-09-09 Thread Kevin Teague
There is a list of all Python-based build tools on the python.org wiki: http://wiki.python.org/moin/ConfigurationAndBuildTools I haven't used any of them with Django, but for managing Zope, Plone and Grok based web apps, zc.buildout is the current preferred tool. It's a configuration-based

Re: Admin 500 Error

2008-09-09 Thread Bret W
On Sep 8, 9:43 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > I am aware of one problem reported with the admin home page and debug set to > False.  It is: > > http://code.djangoproject.com/ticket/8110 That was it. Thanks! --~--~-~--~~~---~--~~ You received

Re: Pyjamas-Desktop and Pyjamas

2008-09-09 Thread bedros
thanks, this looks very promising, I'll try it out On Sep 6, 1:51 pm, lkcl <[EMAIL PROTECTED]> wrote: > > words, the code that _was_ handed to the pyjamas compiler is instead > > handed to the python compiler. > >  correction: python _interpreter_ :)  pyjamas-desktop ends up doing > "import

Re: weird osx problem (templates path)

2008-09-09 Thread Daniel Roseman
On Sep 9, 8:56 pm, Anakin <[EMAIL PROTECTED]> wrote: > im using 10.5.2 osx Leopard. and im working with django 1.0 final > release. > > i have some screenshots about this error, settings - traceback and if > you need terminal log. you can see in this >

Re: weird osx problem (templates path)

2008-09-09 Thread Anakin
i cant see traceback now, i will add 7-8 hours later (im at work,) but im suspecting another thing. i took settings.py another django project (but db,templates dir, installed apps are changed). is problem can be secret_key ? On 10 Eylül, 02:30, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Sep

Re: weird osx problem (templates path)

2008-09-09 Thread Anakin
@yousef, i did it 3-4 times, invidually (and all). but nothing changed. and im working on true settings file. im going to be mad cause this error :) On 10 Eylül, 01:08, "Yousef Ourabi" <[EMAIL PROTECTED]> wrote: > What is interesting is that in the stack trace it doesn't show >