Re: Django for internationalized sites - are models.User internationalized?

2010-10-02 Thread Torsten Bronger
Hallöchen! Andy writes: > On Oct 2, 1:45 am, Torsten Bronger > wrote: > > Thanks for responding. > >>> Are "first_name" & "last_name" limited to alphanumeric >>> characters or can they contain non-English characters like "ü" >>> or non-European characters like "黒"? >> >> Yes. > > "Yes" is in "fi

Re: [Announcement] Vim for Python and Django

2010-10-02 Thread Antoni Aloy
2010/10/2 David M. Besonen : > On Sun, 26 Sep 2010 11:36:06 +0200 > Antoni Aloy wrote: > >> http://code.google.com/p/trespams-vim/ > > i assume you've seen Alain's webpage: >  VIM as Python IDE >  http://blog.dispatched.ch/2009/05/24/vim-as-python-ide/ > Yes, Alain's makes me love VIM as a Python

Re: Django for internationalized sites - are models.User internationalized?

2010-10-02 Thread Andy
On Oct 2, 3:27 am, Torsten Bronger wrote: > Hallöchen! > > Andy writes: > > On Oct 2, 1:45 am, Torsten Bronger > > wrote: > > > Thanks for responding. > > >>> Are "first_name" & "last_name" limited to alphanumeric > >>> characters or can they contain non-English characters like "ü" > >>> or non-

Re: Django for internationalized sites - are models.User internationalized?

2010-10-02 Thread Torsten Bronger
Hallöchen! Andy writes: > [...] > >>> You mean you hope the field "email" is not allowed to contain >>> non- English or non-European characters? >> >>> But real email addresses do contain those characters: >>> http://en.wikipedia.org/wiki/Email_address#Internationalization >> >> I read "informal"

Re: PyDev create new project wizard creates two folders in Aptana Studio 3?

2010-10-02 Thread payala
Check if you are in the python perspective On 1 oct, 19:34, Brandon Taylor wrote: > Hi everyone, > > I'm used to organizing my Django projects in one folder for the > project and then sub folders for app modules... > > /my_project >     -__init__.py >     -settings.py >     /some_app > > and so

Re: django-friends | setup views.py with templates

2010-10-02 Thread appel268576
Hi. I ma having the same problem. Could you find any documentation on this? On Sep 6, 10:13 pm, justin jools wrote: > Hi I have setup jtauber notification and friends apps but now I am > stuck as to how to add views/urls to produce add friends/friends > accept/friends list etc. > > please help

AttributeError using with GAE

2010-10-02 Thread shwetanka
def addCategory(request): user = users.get_current_user() if users.is_current_user_admin(): if request.method == 'POST': form = CategoryForm(request.POST) if form.is_valid(): cd = form.cleaned_data Category.objects.create_categ

Re: View to edit many-to-many relationship with extra fields

2010-10-02 Thread Felix Dreissig
I'm not at all sure that this might help youm, so sorry if I write BS... Can't you just use form prefixes to kepp the form namespaces seperated? http://docs.djangoproject.com/en/1.2/ref/forms/api/#prefixes-for-forms Regards, Felix On 01.10.2010 22:22, ses1984 wrote: > http://docs.djangoproject.

how to retreive the body text alone of a webpage

2010-10-02 Thread jimgardener
hi I am writing an application to find out if the body text of a web page of given url has been modified-added or removed.Is there some way to find out the length of body text alone? I wrote a function that can read and return the data length.But is there some way I can read the body text alone ?T

Re: how to retreive the body text alone of a webpage

2010-10-02 Thread bagheera
Dnia 02-10-2010 o 15:10:33 jimgardener napisał(a): hi I am writing an application to find out if the body text of a web page of given url has been modified-added or removed.Is there some way to find out the length of body text alone? I wrote a function that can read and return the data length.

Re: how to retreive the body text alone of a webpage

2010-10-02 Thread Shawn Milochik
You can use BeautifulSoup to parse the page. That will result in a BeautifulSoup object from which you can get the text of any element. Simple example: soup = BeautifulSoup.BeautifulSoup(html_string) #find a div with class 'header3' containing the text 'Locations' locati

Re: how to retreive the body text alone of a webpage

2010-10-02 Thread ShawnMilo
Also, just to save you additional pain, do NOT install anything from the 3.1 series. It's deprecated and had problems. You want 3.0.8.x. According to the maintainer's site they're going to update the 3.0.8.x series to the 3.2.x series to avoid confusion in the future. http://pypi.python.org/pypi/B

Re: how to retreive the body text alone of a webpage

2010-10-02 Thread jimgardener
thanks guys, I tried this.. from BeautifulSoup import BeautifulSoup import urllib def get_page_body_text(url): h=urllib.urlopen(url) data=h.read() soup=BeautifulSoup(data) body_texts = soup.body(text=True) text = ''.join(body_texts) return text ... while True:

Re: Configuring URLs for different views

2010-10-02 Thread Carles Barrobés
I sometimes use the direct_to_template generic view for a different purpose than yours (test a template), but the same URL pattern might be useful to you: # test a template (r'^direct/(?P.*)$', 'django.views.generic.simple.direct_to_template'), Although you'd better use a better regex to

Re: A better way of checking if a record exists

2010-10-02 Thread ShawnMilo
Bruno, Great point. I've simplified my old code quite a bit with this suggestion. After creating a dictionary with 12 items in it, I use it for the default in get_or_create, then: [setattr(product, field, value) for field, value in new_values.items()] product.save() Thanks, Shaw

Django documentation search not working

2010-10-02 Thread NoviceSortOf
I used to be able to go to the following link and seach django documents. http://docs.djangoproject.com/en/dev//search/ >From there I could search anything from 'widgets' to 'login()' and find the related document/page discussion that time. Now on that page search yields no results irregardless

Django website down?

2010-10-02 Thread diogobaeder
Hi, guys, Is the Django website down? I've been trying to access it for days, but I just can't get in. Has anyone here been able to access it normally these days? Thanks! Diogo -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g

Re: Django documentation search not working

2010-10-02 Thread diogobaeder
Hi there, I cannot enter the site at all, right now; I just opened a post here about that: http://groups.google.com.br/group/django-users/browse_thread/thread/18a99e355c601fc3?hl=pt-BR Does it have anything to do with the issue stated above? Thanks! Diogo On 2 out, 17:45, NoviceSortOf wrot

Re: Django website down?

2010-10-02 Thread Steve Holden
On 10/2/2010 5:50 PM, diogobaeder wrote: > Hi, guys, > > Is the Django website down? I've been trying to access it for days, > but I just can't get in. Has anyone here been able to access it > normally these days? > > Thanks! > > Diogo > http://www.downforeveryoneorjustme.com/djangoproject.com

Re: Django documentation search not working

2010-10-02 Thread Steve Holden
On 10/2/2010 4:45 PM, NoviceSortOf wrote: > I used to be able to go to the following link and > seach django documents. > > http://docs.djangoproject.com/en/dev//search/ > >>From there I could search anything from 'widgets' to > 'login()' and find the related document/page discussion that time. >

An HTML tag editor in (AJAX-ified) Django Admin: does it exist yet?

2010-10-02 Thread Angus
The admins of my site need to be able to edit/create html text content through Django admin, but rather than offer a standard WYSIWYG editor I'm thinking I'd like to use an interface with which the admins would directly and transparently build the resulting html. I'll try to explain what I have in

Re: [Announcement] Vim for Python and Django

2010-10-02 Thread Rene Vallecillo
Hello Im having a problem with the colorschemes I'm getting this: Error detected while processing /home/rene/.vimrc: line 88: E185: Cannot find color scheme tango As far as i can see, there is a folder named color in the ~/trespams-vim/ folder. But there is no use, any clue? On Sat, Oct 2,

Re: [Announcement] Vim for Python and Django

2010-10-02 Thread Rene Vallecillo
nvm, the folder name was wrong, it was suppose to be colors and I had color. And it seems it still needs to be under ~/.vim/ dir On Sat, Oct 2, 2010 at 1:50 PM, Rene Vallecillo wrote: > Hello > > Im having a problem with the colorschemes > > I'm getting this: > > Error detected while processing

Get simple data from form

2010-10-02 Thread petarda
Hello, I have simple question. How Can I get raw data from form object in my template? I don't need html tags only data. I am trying {{ form.myfield.data }} , but always get None.. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: Error configuring Django to run customized comments framework

2010-10-02 Thread Phil Gyford
A bit late, so you may have solved this or given up on it, but still... I just had the same error message and eventually solved it by changing the order of my INSTALLED_APPS. So maybe you have slightly different settings on your local and live servers, and the apps are ordered differently on each?

Why can't I use this model architecture?

2010-10-02 Thread mathphreak
I've got three different classes in models.py and register all three in admin.py within my app. Viewing the admin page that I have, however, gives me http://dpaste.com/252244/ which doesn't look good. Is this a Django bug, or do I need to rewrite my app? I think it's highly unlikely that it's a D

Re: Django website down?

2010-10-02 Thread diogobaeder
Never mind, must be something with my Firefox version (I'm using from the launchpad repos, nightly builds). Tested on Chrome and Opera, both are fine. Thanks and sorry for the silly report! Diogo On 2 out, 19:11, Steve Holden wrote: > On 10/2/2010 5:50 PM, diogobaeder wrote: > > > Hi, guys, > >

Re: View to edit many-to-many relationship with extra fields

2010-10-02 Thread ses1984
Actually, I have added on to what I started with significantly, and what I ended up doing was emulating formsets with javascript on the page. When the page POSTs, I can get cleaned formset data from the request. On Oct 2, 8:11 am, Felix Dreissig wrote: > I'm not at all sure that this might help y

Re: Django website down?

2010-10-02 Thread Russell Keith-Magee
On Sun, Oct 3, 2010 at 10:47 AM, diogobaeder wrote: > Never mind, must be something with my Firefox version (I'm using from > the launchpad repos, nightly builds). Tested on Chrome and Opera, both > are fine. > > Thanks and sorry for the silly report! We have had some reports in the past that the