Re: Filter "date" and FormFieldWrapper attribute error

2006-08-27 Thread Gary Wilson
Andres Luga wrote: > when displaying a form for a new object, I'm trying to set a default > value for a date field using a filter in a template, like so: > > > {{ form.somefield|date:"Y-m-d" }} > > This gives me an error: > 'FormFieldWrapper' object has no attribute 'year'. > What am I doing

Re: Finding entries with multiple tags

2006-08-27 Thread Gary Wilson
[EMAIL PROTECTED] wrote: > Hello - > > I'm playing around with a blog application and I want it to have a > tagging feature. I have the usual ManyToMany relationship set up with > Post and Tag (I'm not going to past my model since I think everyone is > familiar with this kind of setup). > > I

Re: Sending an html email

2006-08-27 Thread [EMAIL PROTECTED]
> I am using the template to build the email content. I included links > in it but the email are sent in plain text, not in html. What is the > way to go to send html email ? Eventually, i'd like to add images too. Hi Rem, I got this one off the cookbook a while back. You'll have to call it

Re: SQL initial data for auth

2006-08-27 Thread Gary Wilson
> Hence, I've put a list of users into my 'auth/sql/User.sql' file, but > ./manage.py syncdb doesn't seem to pick up the existence of the file. > I have no doubt it's in the wrong place, but my question is which is > the correct place? :-) I think the file needs to be placed at

Re: Limit view to group members: what function for the @user_passes_test decorator?

2006-08-27 Thread Gary Wilson
cyberco wrote: > I want to limit a view to certain group members, so I'm using the > following decorator: > > @user_passes_test(lambda u: Group.objects.get(name='admin') in > u.groups.all(), login_url='/accounts/login/') > > This seems a little verbose. Is there a better way? user_passes_test is

Rails has a Naked Objects tool (aka automagic gui)

2006-08-27 Thread Jeremy Dunck
I hadn't seen this mentioned on the lists. http://streamlined.relevancellc.com/articles/2006/08/02/screencast-available --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Send Free Unlimited SMS Messages To Any Mobile Phone In The World Without Registration !

2006-08-27 Thread DigitalPerson DigitalPerson
Send Free Unlimited SMS Messages To Any Mobile Phone In The World Without Registration !http://digitalperson.be/DSMSSender/sms.htm -- DigitalPerson --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: Unicode, unicode, more unicode

2006-08-27 Thread gabor
[EMAIL PROTECTED] wrote: > What does one need to do to set up MySQL to handle Unicode with Django? > I found that I could not input Unicode characters in the admin > interface when using MySQL as the back end. Everything works perfectly > out of the box with Postgres, though. > sorry, i don't

Re: Diamanda wiki v.0.0.2

2006-08-27 Thread [EMAIL PROTECTED]
That wiki will be also used on my sites on a django-supporting new server :) The current one is a bit weird as some people can't get to my site using linux (me too :)) Current Diamanda has: - Many2Many categories for WikiPages.. and WikiNews - Categories are Many2One with them self (trees + poor

Re: Admin looking for media/css/null?

2006-08-27 Thread Don Arbow
On Aug 27, 2006, at 1:21 PM, Cole Tuininga wrote:Hi folks - I'm setting up Django with mod_python and I've come acrossa little problem.  When using the admin area, I get an error in myapache logs.  Here's an example:[Sun Aug 27 16:15:59 2006] [error] [client 127.0.0.1] File does notexist:

Re: Admin looking for media/css/null?

2006-08-27 Thread James Bennett
On 8/27/06, Cole Tuininga <[EMAIL PROTECTED]> wrote: > What am I doing wrong? Nothing at all; have a look at the stylesheet the admin uses: http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/media/css/base.css It's known as the "high pass filter"[1] and is used to keep

Re: Admin looking for media/css/null?

2006-08-27 Thread Ian Holsman
Hi Cole. your doing nothing wrong. it's the way the CSS is designed. I opened a ticket a while back to change this to fetch null.css (which would be a blank file in svn) to avoid the error but it was deemed overkill, and not fixed. my workaround was to just do this in my local copies.

Re: Debugging a return HttpResponse message

2006-08-27 Thread Jay Parlar
The problem is your indentation of the last two lines. You have them inside of the 'if request.POST'. Take them each back four spaces, and you should be fine. Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Debugging a return HttpResponse message

2006-08-27 Thread [EMAIL PROTECTED]
Hi all, i'm having a hard time figuring out where the error is in the following code. Error msg is: The view foo.users.views.updateinfo didn't return an HttpResponse object. I've followed religiously the ChangeManipulator example on the tutorial and it seems to me that all code paths in this

Admin looking for media/css/null?

2006-08-27 Thread Cole Tuininga
Hi folks - I'm setting up Django with mod_python and I've come across a little problem. When using the admin area, I get an error in my apache logs. Here's an example: [Sun Aug 27 16:15:59 2006] [error] [client 127.0.0.1] File does not exist:

Re: verbose_name option not working...

2006-08-27 Thread aaloy
2006/8/27, mediumgrade <[EMAIL PROTECTED]>: > > In my models, I have added the options "verbose_name" and > "verbose_name_plural" to make my models easier to understand in the > admin interface. However, even though I have added these options in my > models, the admin interface still displays the

Re: mod_python apache problems...

2006-08-27 Thread Ricardo Kirkner
On Sun, Aug 27, 2006 at 06:07:08PM -, mediumgrade wrote: > > I am trying to setup my django site using mod_python and apache. > > My Django project is called "autosales" and it works just fine when > accessing it from the development web server. However, when I try to > access it from

Re: mod_python apache problems...

2006-08-27 Thread Michael
    PythonPath "['/path/to/project'] + sys.path" Try removing "project from path:PythonPath "['/path/to/'] + sys.path"and add path to dkango src:PythonPath "['/path/to/django'] + ['/path/to/topdirectoryofproject'] + sys.path" -- --Michael --~--~-~--~~~---~--~~ You

Re: waiting 1.0

2006-08-27 Thread James Bennett
On 8/26/06, Picio <[EMAIL PROTECTED]> wrote: > Maybe my question is stupid, but, is it worth that I start dive into > Django now at 0.95 time instead of waiting until 1.0? > Basics will change a lot after release 1.0? There's a document which attempts to explain the things that are stable and

Re: Sending an html email

2006-08-27 Thread Corey Oordt
I've never done it before, but here are some places to look:http://code.djangoproject.com/ticket/1541http://www.rossp.org/blog/2006/jul/11/sending-e-mails-templates/CoreyOn Aug 26, 2006, at 8:59 PM, The Rem wrote:Hi,I am using the template to build the email content.  I included linksin it but the

Re: problems with unicode in website

2006-08-27 Thread Andy Dustman
On 8/26/06, Eugene Pyvovarov <[EMAIL PROTECTED]> wrote: > > thanks. when i change collation to utf8_unicode_ci; - all begin to work > fine. MySQLdb-1.2.2b1 is up on Sourceforge, and it should also fix this even for the binary collation case, plus some other bugs. You should also be able to

mod_python apache problems...

2006-08-27 Thread mediumgrade
I am trying to setup my django site using mod_python and apache. My Django project is called "autosales" and it works just fine when accessing it from the development web server. However, when I try to access it from apache, I get the following error EnvironmentError: Could not import settings

django dont support select_related when use full-text search?

2006-08-27 Thread [EMAIL PROTECTED]
i seems django dont support select_related when using full-text search filter. a.objects.filter(field1__search=q), it can return results successfully, but when i wrote: a.objects.select_related.filter(field1__search=q),it returns nothing. why that happen?

help_text badly formatted in Admin when radio_admin=True

2006-08-27 Thread Mario Graziosi
I get the help_text badly formatted when I set the radio_admin=True together with "choices". Instead of getting the text aligned right beyond the data entry field, it gets aligned immediatly on the raight edge of the data entry field. Am I doing something wrong or is this behavior the

Many-To-Many and multiselectbox not showing saved objects

2006-08-27 Thread [EMAIL PROTECTED]
I have categories and pages models. pages have categories = models.ManyToManyField(Categorie) and to add/edit pages I use non-admin panel pages with Add/Changemanipulators and formwrappers. In templates I have: Categories: {{ form.categories }} {% if form.categories.errors %}*** {{

how to select related field in full-text search filter?

2006-08-27 Thread [EMAIL PROTECTED]
it seems like django dont support select_related when using full-text search? a.objects.filter(field1__search=str) can show the results successful but: a.objects.select_related().filter(field1__search=str) show nothing why that happen? --~--~-~--~~~---~--~~

Finding entries with multiple tags

2006-08-27 Thread [EMAIL PROTECTED]
Hello - I'm playing around with a blog application and I want it to have a tagging feature. I have the usual ManyToMany relationship set up with Post and Tag (I'm not going to past my model since I think everyone is familiar with this kind of setup). I have three Posts tagged as follows:

Re: Italian Documentation

2006-08-27 Thread [EMAIL PROTECTED]
Daniele Spino wrote: > I understand. Thanks. > A trivial question: Is it better to wait 1.0 for me to learn django? > It will be completely different from 0.95? > Can I talk you in italian? > Daniele Sure, you can contact me privately if u want to talk about it in italian. I don't think there

Re: Upload large files

2006-08-27 Thread Jean-Francois Roy
Check patch #2070. On Aug 27, 2006, at 08:36, pear_eater wrote: Hi. I'm developing a file uploader.And I need to upload large files(over 100MB). But on django's admin interface, it uses memory too much .Then I'm trying to write a new interface. like... if request.POST: import os.path

screencasts for newbies on showmedo

2006-08-27 Thread Picio
Hello, since I'm pretty new in the Django world, but I'm very enthusiast about it I posted a request on http://showmedo.com/requests about having them creating some screencast with practical examples. Chance to have one, will increase voting my request: "Daniele Spino requests: I'd like to see

Re: Flatpage content with dynamic navigation toolbar - is it possible?

2006-08-27 Thread Ivan Sagalaev
[EMAIL PROTECTED] wrote: > Yes, that works, but my base.html needs this called in each view to get > the data from the DB: > > category_list = Category.objects.filter(active__exact=1) This is solved by context processors:

Re: Flatpage content with dynamic navigation toolbar - is it possible?

2006-08-27 Thread [EMAIL PROTECTED]
Yes, that works, but my base.html needs this called in each view to get the data from the DB: category_list = Category.objects.filter(active__exact=1) And I don't know of a way to make this call in the flatpages context. I did some reading, and it looks like a template tag might be where I

SQL initial data for auth

2006-08-27 Thread Jon Atkinson
I'm trying to insert some initial data into the auth application to shorten testing times. I've linked some other tables in my database to the auth_users table, but to test my application I need to create five or so named users after each syncdb, which is a little tiresome. The logical place to

Re: Admin "View on site" link broken

2006-08-27 Thread Alan Green
On 8/27/06, Michael van der Westhuizen <[EMAIL PROTECTED]> wrote: > On 8/27/06, Alan Green <[EMAIL PROTECTED]> wrote: > > I'm having a problem with the Admin "View on site" button. According > [snip] > > My model objects have a get_absolute_url() method, and the View on > > site button appears as

Upload large files

2006-08-27 Thread pear_eater
Hi. I'm developing a file uploader.And I need to upload large files(over 100MB). But on django's admin interface, it uses memory too much .Then I'm trying to write a new interface. like... if request.POST: import os.path path = os.path.join(MEDIA_ROOT,

nasil bir hayat istersin

2006-08-27 Thread boran
hadi bakalim --~--~-~--~~~---~--~~ 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]

Re: Generic views and manipulating data before saving

2006-08-27 Thread konryd
I guess manipultors are made for this purpose. I'm not sure but you can probably override AddManipulator in order to use generic views. Hope this is the answer to your queston. This is an example from my excercise blog app (it doesn't use generic view actually): #model class

Re: TemplatePages directory

2006-08-27 Thread Derek Hoy
On 8/25/06, Baurzhan Ismagulov <[EMAIL PROTECTED]> wrote: > I add /dir to PYTHONPATH. In this layout, I have to put the html > templates to /dir/verdjnlib/templatepages/templates/templatepages. How > can I customize the directory without modifying verdjnlib for each > project? It will

Re: [patch] Generating slug for words with accents

2006-08-27 Thread Michal
Maciej Bliziński wrote: > On Sat, 2006-08-26 at 16:48 +0200, Michal wrote: >> I also added a few of Slovak characters (Czech and Slovak was >> brothers too, and they have similar alphabet). > > I looked at the Latin Unicode article in Wikipedia: > http://en.wikipedia.org/wiki/Latin_Unicode > >

Re: waiting 1.0

2006-08-27 Thread Daniele Spino
Hi Hi Sir! …Beginnining now. Many Thanks picio 2006/8/27, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > There will be rather more new stuff that total change of the current > API. 0.95 is quite new release and 1.0 won't come out soon. > My advice is to use Django 0.95 - learn it and when the /trunk

Re: [patch] Generating slug for words with accents

2006-08-27 Thread Maciej Bliziński
On Sat, 2006-08-26 at 16:48 +0200, Michal wrote: > I also added a few of Slovak characters (Czech and Slovak was > brothers too, and they have similar alphabet). I looked at the Latin Unicode article in Wikipedia: http://en.wikipedia.org/wiki/Latin_Unicode There are characters with accents have

Re: Migrating my development environment to Django

2006-08-27 Thread Matthias Kestenholz
* Ivan Sagalaev ([EMAIL PROTECTED]) wrote: > Matthias Kestenholz wrote: > > * How can I create a new FormField? Where can I specify which > > FormField to use for a DB field? > > Inherit your class from django.forms.FormField and at the very least > override render() method. Other methods

Re: generic views for ajax ?

2006-08-27 Thread dummy
Hi James, James Bennett schrieb: > On 8/26/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I know the discussion about django and ajax compatible response. The > > 'hardliners' say that you only need to implement your own kind of template > > - which is true for all time, but I would

Re: Diamanda wiki v.0.0.2

2006-08-27 Thread [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote: > - > Source: http://www.rk.edu.pl/diamanda.zip > Mini-Screencast: http://www.rk.edu.pl/dia.html (swf, 1,1MB) made with > wink > - > I'm planning to move my sites (Linux/PHP/SQL/Python/www www.rk.edu.pl) > to django and diamanda

Re: Flatpage content with dynamic navigation toolbar - is it possible?

2006-08-27 Thread Ivan Sagalaev
[EMAIL PROTECTED] wrote: > Flatpages are perfect for the about us, contact us, etc. sections of my > site, but my navigation bar needs this category list, and I'd like to > keep it dynamic. If I understand the problem correctly... Flatpages can use your specified template where you can include