Re: Problems with ImageField

2007-11-06 Thread Ramdas S
Remove the fwdslash in front image = models.ImageField(upload_to='toy_images/') It will work On 11/7/07, Stupid Dustbin <[EMAIL PROTECTED]> wrote: > > > Hi, > > recently I decide to try out the ImageField but it gives me some > problems. > > in my models it is > > image = models.ImageField(uplo

Re: will this hit database more than once by using AUTH_PROFILE_MODULE = 'myuser.MyUser'

2007-11-06 Thread James Bennett
On Nov 5, 2007 9:00 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > i have a topic want to discuss with all: > there is a option in django-registration : AUTH_PROFILE_MODULE = > 'myuser.MyUser' which can be setted in settings.py, so you can access > value of MyUser by get_profile.xxx. This i

Re: will this hit database more than once by using AUTH_PROFILE_MODULE = 'myuser.MyUser'

2007-11-06 Thread [EMAIL PROTECTED]
can somebody help me ? On 11月6日, 上午11时00分, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > you know django-registration is a famous module(http://code.google.com/ > p/django-registration/). > > i have a topic want to discuss with all: > there is a option in django-registration : AUTH_PROFILE_MO

Re: Problems with ImageField

2007-11-06 Thread Kenneth Gonsalves
On 07-Nov-07, at 10:14 AM, Stupid Dustbin wrote: > image = models.ImageField(upload_to='/toy_images/') upload_to='toy_images/' -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~~~---~--~~ You received this message because

Problems with ImageField

2007-11-06 Thread Stupid Dustbin
Hi, recently I decide to try out the ImageField but it gives me some problems. in my models it is image = models.ImageField(upload_to='/toy_images/') in my settings.py here are my media settings MEDIA_ROOT = '/media/' MEDIA_URL = MEDIA_URL = 'http://localhost:8000/media/' ADMIN_MEDIA_PREFIX

Problems with ImageField

2007-11-06 Thread Stupid Dustbin
Hi, recently I decide to try out the ImageField but it gives me some problems. in my models it is image = models.ImageField(upload_to='/toy_images/') in my settings.py here are my media settings MEDIA_ROOT = '/media/' MEDIA_URL = MEDIA_URL = 'http://localhost:8000/media/' ADMIN_MEDIA_PREFIX

Re: TemplateDoesNotExis, but actually it exist

2007-11-06 Thread [EMAIL PROTECTED]
I have my project and django in different dirs. But again, this page seems to work perfectly except this error notification by mail. On 7 нояб, 03:42, "helpmesue mailman" <[EMAIL PROTECTED]> wrote: > error was django_src, in your temlate dir you have django_projects...typo > somewhere in there

Re: RESTful Geodjango

2007-11-06 Thread Malcolm Tredinnick
On Mon, 2007-11-05 at 15:29 +, Justin Bronn wrote: > > (2) The gis branch should really use a better name than "NoField" here. > > Not a lot of code calls get_internal_type() -- the main critical piece > > being db_type(). In all the cases where django.contrib.gis overrides > > get_internal_ty

Re: Overriding Default Primary Key Type?

2007-11-06 Thread Malcolm Tredinnick
On Tue, 2007-11-06 at 15:02 -0800, gordyt wrote: > Howdy Folks! > > I've got a new project coming up that will generate gazillions (that's > a technical term for a whole lot) of objects for certain objects in > the model. > > Is it possible to get Django to use a really large integer type for >

Re: Custom SQL to delete cache table

2007-11-06 Thread Malcolm Tredinnick
On Mon, 2007-11-05 at 19:21 -0800, Hugh Bien wrote: > Hi all, > > > I'm trying to clear the cache table. Here's the code I'm using with > Python 2.5 and Django version 0.96: > > > def clear_cache(): > from django.db import connection > cursor = connection.cursor() > cursor.execute

Re: gettext is not defined - admin site

2007-11-06 Thread Malcolm Tredinnick
On Mon, 2007-11-05 at 12:00 -0800, ygneo wrote: > I use Django 0.96 in a SuSE with Python 2.3.3. > > I'm getting this JavaScript error: "gettext is not defined" when I try > to edit an object with date field in the admin site. I have seen that > occurs when calendar.js is trying to populate the m

Re: Using GeoDjango features with current trunk?

2007-11-06 Thread Malcolm Tredinnick
On Mon, 2007-11-05 at 10:57 -0800, Justin Bronn wrote: > As Karen noted, I last merged on 10/26 to r6613 -- thus, the latest > GeoDjango is more up-to-date than your latest checkout of trunk > (r5988). > > > If the trunk and GeoDjango AREN'T currently compatible, would it be > > possible for us t

Re: TemplateDoesNotExis, but actually it exist

2007-11-06 Thread helpmesue mailman
error was django_src, in your temlate dir you have django_projects...typo somewhere in there On 11/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > I have a website, and keep getting this error tracebacks to my mail: > > Traceback (most recent call last): > > File "/home/clients/my_site/d

TemplateDoesNotExis, but actually it exist

2007-11-06 Thread [EMAIL PROTECTED]
I have a website, and keep getting this error tracebacks to my mail: Traceback (most recent call last): File "/home/clients/my_site/django_src/django/core/handlers/base.py", line 81, in _real_get_response response = callback(request, *callback_args, **callback_kwargs) File "/home/clients/m

Re: Best Django Blogs

2007-11-06 Thread Kenneth Gonsalves
On 07-Nov-07, at 6:49 AM, [EMAIL PROTECTED] wrote: > Sorry to be unclear, I mean blogs about django then B-list is the best -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~~~---~--~~ You received this message because yo

Re: spam

2007-11-06 Thread Kenneth Gonsalves
On 06-Nov-07, at 11:22 PM, Lars Stavholm wrote: >> ok, seriously, is there not something we can do about the porn spam? >> some of us read this list at work on machine's we don't own. the >> image >> stuff is becoming a serious problem. > > I do believe that Google groups are filtering out cl

Re: Best Django Blogs

2007-11-06 Thread [EMAIL PROTECTED]
Sorry to be unclear, I mean blogs about django On Nov 6, 3:02 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On Nov 6, 2007 4:32 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > What are the best django blogs, can you guys tell me. Thanks > > Are you looking for blogs which write about Dj

Re: spam

2007-11-06 Thread Nimrod A. Abing
On Nov 7, 2007 1:47 AM, Derek Anderson <[EMAIL PROTECTED]> wrote: > > ok, seriously, is there not something we can do about the porn spam? > some of us read this list at work on machine's we don't own. the image > stuff is becoming a serious problem. Everyday I tag about 1-3 messages using GMail

Re: Best Django Blogs

2007-11-06 Thread Ross Poulton
On Nov 7, 9:32 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > What are the best django blogs, can you guys tell me. Thanks High on my daily visit list is the Django community aggregator[1] which displays django-related blog posts from various members of the community. [1] http://www.django

Re: Dictionnary problem trough session

2007-11-06 Thread Francis Lavoie
Ok, I found my problem. Because I was storing a object into the session dictionnary, when I called method to add, modify or delete object's value, the session didn't get saved. 2007/10/31, Francis Lavoie <[EMAIL PROTECTED]>: > > But Isn't the same thing as saving the object in the > request["se

Re: Best Django Blogs

2007-11-06 Thread James Bennett
On Nov 6, 2007 4:32 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > What are the best django blogs, can you guys tell me. Thanks Are you looking for blogs which write about Django (and thus which you'd want to read), or blog software written with Django? -- "Bureaucrat Conrad, you are techni

Overriding Default Primary Key Type?

2007-11-06 Thread gordyt
Howdy Folks! I've got a new project coming up that will generate gazillions (that's a technical term for a whole lot) of objects for certain objects in the model. Is it possible to get Django to use a really large integer type for the automatically-generated primary key, like a serial or bigseri

Best Django Blogs

2007-11-06 Thread [EMAIL PROTECTED]
What are the best django blogs, can you guys tell me. Thanks --~--~-~--~~~---~--~~ 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 fr

Re: How to select all the values from my Field attribute 'choices?

2007-11-06 Thread Karen Tracey
On 11/6/07, äL <[EMAIL PROTECTED]> wrote: > > > Hello Karen > > I have the same problem as Greg has. > > If I try to use your code I got an "page not found" error. > Here is my code: > > views.py > ### CODE ### > def Karateka_edit(request, karateka_id): > > from kav.info.models import Karateka

Re: spam

2007-11-06 Thread Lars Stavholm
Michael Best wrote: > Jay Klehr wrote: >> Are the other lists powered by Google Groups? Are they as active as >> Django's list? >> >> Perhaps you should direct your complaints to Google, as I don't think >> the people on this list (or even the owners of the list) can do much >> about it (aside

Re: Strange UnicodeDecodeError in template

2007-11-06 Thread Karen Tracey
On 11/6/07, Mikkel Høgh <[EMAIL PROTECTED]> wrote: > > ... > I wonder if this is a bug and should be reported... I think it is a bug, and I have opened a ticket: http://code.djangoproject.com/ticket/5884 Karen --~--~-~--~~~---~--~~ You received this message beca

Re: spam

2007-11-06 Thread Michael Best
James Bennett wrote: > On Nov 6, 2007 1:22 PM, Michael Best <[EMAIL PROTECTED]> wrote: >> This is one of the few lists where I get spam in my gmail account at >> all. I don't know why that is, it almost feels like there is no >> filtering on the list by Google at all. > > I'm subscribed to a num

Re: spam

2007-11-06 Thread James Bennett
On Nov 6, 2007 1:22 PM, Michael Best <[EMAIL PROTECTED]> wrote: > This is one of the few lists where I get spam in my gmail account at > all. I don't know why that is, it almost feels like there is no > filtering on the list by Google at all. I'm subscribed to a number of Google Groups-based lis

Re: spam

2007-11-06 Thread Michael Best
Jay Klehr wrote: > Are the other lists powered by Google Groups? Are they as active as > Django's list? > > Perhaps you should direct your complaints to Google, as I don't think > the people on this list (or even the owners of the list) can do much > about it (aside from moderating every new

Re: newforms ModelChoiceField queryset

2007-11-06 Thread Gonzalo Delgado
El Tue, 06 Nov 2007 10:28:39 -0800 Chris Brand <[EMAIL PROTECTED]> escribió: > > Gonzalo Delgado wrote: > > > > The question is: why doesn't something like this work: > > > > ticketform.fields['server'].queryset = > > Server.objects.filter(users=request.user) > > ? > > It doesn't end up on

Re: MyISAM table locking.

2007-11-06 Thread Peter
Very nice, thanks for the detailed response! -Peter On Nov 6, 12:53 pm, Karen Tracey <[EMAIL PROTECTED]> wrote: > At 10:40 AM 11/6/2007, you wrote: > > >Hi All, > > >I tried writing some code to do table locking on a MySQL MyISAM > >database. I used the code below, which seemed to work in basic

Re: newforms ModelChoiceField queryset

2007-11-06 Thread Chris Brand
Gonzalo Delgado wrote: > > The question is: why doesn't something like this work: > > ticketform.fields['server'].queryset = > Server.objects.filter(users=request.user) > ? > It doesn't end up on any error, but the rendered form doesn't filter out the > server choices.. any clue? > >

[[ Banana Secret ]]

2007-11-06 Thread Mr.Thawatchai Boontan
Download [[ Banana Secret ]] : http://w14.easy-share.com/9247851.html --~--~-~--~~~---~--~~ 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 unsubsc

Re: Help With Modeling This

2007-11-06 Thread Joe
You could also add some functions to the models to add pull the related data class TagItem(models.Model): ... def get_related_artists(self): # pull the data return data That function is available in the template and can be called inline so to speak. Joe On Nov 6, 12:40 pm, "[EMAIL PROTE

Re: spam

2007-11-06 Thread Jay Klehr
Are the other lists powered by Google Groups? Are they as active as Django's list? Perhaps you should direct your complaints to Google, as I don't think the people on this list (or even the owners of the list) can do much about it (aside from moderating every new user/post). Jay Jeffrey Jo

Re: spam

2007-11-06 Thread Lars Stavholm
Jeffrey Johnson wrote: > This is the ONE list where I consistently get porn spam in gmail. What gives? The format of these porn spam's is new, I do believe the filtering will take care of it soon enough. Takes a few of these to train the spam filter(s). /L > On Nov 6, 2007 9:52 AM, Lars Stavholm

Re: spam

2007-11-06 Thread Forest Bond
On Tue, Nov 06, 2007 at 10:02:50AM -0800, Jeffrey Johnson wrote: > This is the ONE list where I consistently get porn spam in gmail. What gives? High demand on this list? -Forest -- Forest Bond http://www.alittletooquiet.net signature.asc Description: Digital signature

Re: spam

2007-11-06 Thread Jeffrey Johnson
This is the ONE list where I consistently get porn spam in gmail. What gives? On Nov 6, 2007 9:52 AM, Lars Stavholm <[EMAIL PROTECTED]> wrote: > > Derek Anderson wrote: > > ok, seriously, is there not something we can do about the porn spam? > > some of us read this list at work on machine's we d

Re: spam

2007-11-06 Thread Lars Stavholm
Derek Anderson wrote: > ok, seriously, is there not something we can do about the porn spam? > some of us read this list at work on machine's we don't own. the image > stuff is becoming a serious problem. I do believe that Google groups are filtering out close to 99% of all spam (sign up for a

Re: spam

2007-11-06 Thread Bryan L. Fordham
> About all you can do is mark it as spam and let that train Google's spam > filter. > > A mail client that doesn't automatically show images will help, too. --B --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: spam

2007-11-06 Thread James Bennett
On Nov 6, 2007 11:47 AM, Derek Anderson <[EMAIL PROTECTED]> wrote: > ok, seriously, is there not something we can do about the porn spam? > some of us read this list at work on machine's we don't own. the image > stuff is becoming a serious problem. About all you can do is mark it as spam and le

Re: MyISAM table locking.

2007-11-06 Thread Karen Tracey
At 10:40 AM 11/6/2007, you wrote: >Hi All, > >I tried writing some code to do table locking on a MySQL MyISAM >database. I used the code below, which seemed to work in basic >examples, but the code would complain of accessing a non-locked table >whenever I made a more complex query such as >obje

spam

2007-11-06 Thread Derek Anderson
ok, seriously, is there not something we can do about the porn spam? some of us read this list at work on machine's we don't own. the image stuff is becoming a serious problem. -- looking to buy or sell anything? try: http://allurstuff.com it's a classified ads service that shows

Re: Help With Modeling This

2007-11-06 Thread Tim Chase
> I've run into a problem trying to model something in Django > and could use some advice. In a nutshell, I'm trying to > relate a single table to multiple (other) tables using a > single foreign key field and foreign key type. I'm aware of > the manytomany relationship type of Django but I don'

Help With Modeling This

2007-11-06 Thread [EMAIL PROTECTED]
I've run into a problem trying to model something in Django and could use some advice. In a nutshell, I'm trying to relate a single table to multiple (other) tables using a single foreign key field and foreign key type. I'm aware of the manytomany relationship type of Django but I don't think th

Re: gettext is not defined - admin site

2007-11-06 Thread ygneo
Some advances in my investigation about this error. The problem seems to be in the characters codification. I don't know if django or maybe apache are codifying badly the special characteres in spanish needed for translations. The same error happened when I try to translate title and branding in

[[ Watch?? r u want Sex ]]

2007-11-06 Thread Mr.Thawatchai Boontan
Download Watch?? r u want Sex.Wmv ==> http://w14.easy-share.com/9248491.html --~--~-~--~~~---~--~~ 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

Re: Strange UnicodeDecodeError in template

2007-11-06 Thread Mikkel Høgh
Thank you Karen, that was it. I wonder if this is a bug and should be reported... The origial error was an error in the {% cycle %}-tag... Kind regards, Mikkel Høgh On Nov 6, 2:58 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > It would appear the Django template code is actually trying to ra

[[ Family Sex ]]

2007-11-06 Thread Mr.Thawatchai Boontan
Download Family Sex.3gp : http://w14.easy-share.com/9248891.html --~--~-~--~~~---~--~~ 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

MyISAM table locking.

2007-11-06 Thread Peter
Hi All, I tried writing some code to do table locking on a MySQL MyISAM database. I used the code below, which seemed to work in basic examples, but the code would complain of accessing a non-locked table whenever I made a more complex query such as objects.filter(__) saying that the table __ wa

Re: mod_python: problem with http.conf

2007-11-06 Thread Joe
Can you open a python interpreter and import your application? I place a sim link (ln -s) within the python site-packages directory to my project directory and the django source directory. J On Nov 5, 4:37 pm, stranger <[EMAIL PROTECTED]> wrote: > Hello I am using Fedora 7. I am using Django for

Re: How to select all the values from my Field attribute 'choices?

2007-11-06 Thread äL
Hello Karen I have the same problem as Greg has. If I try to use your code I got an "page not found" error. Here is my code: views.py ### CODE ### def Karateka_edit(request, karateka_id): from kav.info.models import Karateka try: karateka = Karateka.objects.get(id = karateka_

Re: "and" type query over related objects

2007-11-06 Thread Tim Chase
> I need to be able to query an object that has a set of related > objects - the query is to find which objects contain the same > set of query objects. For example the main object could be a > research paper and the related object would be a set of topics > that the papers could contain. This

Re: settings.py gets imported twice

2007-11-06 Thread Thomas Guettler
Am Dienstag, 6. November 2007 07:00 schrieb Matti Haavikko: > Here's an alternative solution - it's based on the idea that the > handlers are added to the logger only once. (getLogger returns the same > logger instance each time). > > import logging > logger=logging.getLogger("dws") > if not logge

"and" type query over related objects

2007-11-06 Thread James Cordiner
Hi, I need to be able to query an object that has a set of related objects - the query is to find which objects contain the same set of query objects. For example the main object could be a research paper and the related object would be a set of topics that the papers could contain. clas

Re: Is Django Threaded Fastcgi Safe?

2007-11-06 Thread Joe
Great answer, thank you! On Nov 5, 5:17 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > The latest roundup on thread safety of Django is that although it was > not designed for thread safety initially, the only known > multithreading problem has been fixed some time back. As such, > numerous pe

Re: syncDB

2007-11-06 Thread Marcin Mierzejewski
Hi, >From Django Book: "syncdb command is a simple sync of your models to your database. It looks at all of the models in each app in your INSTALLED_APPS setting". But you can uses --settings option for manage.py. ./manage.py syncdb --settings=mysettings where mysettings.py contains only your

newforms ModelChoiceField queryset

2007-11-06 Thread Gonzalo Delgado
Hello there, I'm using Django 0.96 here. I've got a couple of models related by a ForeignKey that look more or less like this: class Server(models.model): name = models.CharField(maxlength=20) users = models.ManyToManyField(User) class Ticket(models.model): des

syncDB

2007-11-06 Thread AngelCaido
I don't know if this was asked before, but I can't seem to find an answer I want to syncDB for a specific application in my site. Something like when you do python manage.py sql MyApplication and it only generates the SQL for that application. Can I do something like: python manage.py syncdb My

Re: Authorization Model at the Field Level

2007-11-06 Thread Marcin Mierzejewski
Hi Manakel, On Nov 6, 11:53 am, Manakel <[EMAIL PROTECTED]> wrote: > This web application had a Authorization model at the Field level. > [] > TASK has a progress status field and a due date field > realisator user can only change the status field > owner can change both the status field

Re: Is it possible to debug a view using breakpoints in Eclipse?

2007-11-06 Thread crybaby
By the way Karen, thanks for the help. joe --~--~-~--~~~---~--~~ 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, se

Re: Is it possible to debug a view using breakpoints in Eclipse?

2007-11-06 Thread crybaby
Before I was using pydev 1.2.5 with eclipse 3.2 with mylar. Now I just upgraded to eclipse 3.3 and pydev 1.3.10. Debugger is working, now I can click on classes, it just takes me there. If try to install pydev 1.3.10 from eclipse install manager, then you will get mylar package error. Just dow

Authorization Model at the Field Level

2007-11-06 Thread Manakel
Hello Everybody, I'm kind of new to Django (less than 1week now). I have the task to migrate an existing web application to django. This web application had a Authorization model at the Field level. If i take a TASK model for demonstration. TASK has a progress status field and a due date

Server error/Template Context processors

2007-11-06 Thread Ryan K
Hi. When there is a server error (error 500 returns) the template context processors don't seem to be doing anything (not passed to the template). I have this template context processor: import llcom.settings def site_context(request): """ Add URL prefixes from settings file to request cont

Server error/Template Context processors

2007-11-06 Thread Ryan K
Hi. When there is a server error (error 500 returns) the template context processors don't seem to be doing anything (not passed to the template). I have this template context processor: import llcom.settings def site_context(request): """ Add URL prefixes from settings file to request cont

Re: i18n model field not translated

2007-11-06 Thread otonk
problem solved.. it lies on the django.po i havent remove the #, fuzzy mark.. thats why its not translated link: http://groups.google.com/group/django-users/browse_thread/thread/e8476fa11cefc2b7 Notice that the message in question is marked as "fuzzy". That means the translation does not qu