Re: how can i create alphabetic list

2009-02-06 Thread Muslu Yüksektepe
hi again i added codes but i dont see anything on template i sent my views where do i change 2009/2/6 Alex Gaynor > > > On Fri, Feb 6, 2009 at 8:52 AM, Muslu Yüksektepe < > musluyuksekt...@gmail.com> wrote: > >> ok i am telling you again >> i wrote photo album >> i add title and photos. >> i ne

Re: comments system - there and back again

2009-02-06 Thread Donn
Well, to answer with my current solution: > My one idea is to intercept comments/posted/?c=... and then write a view to > redirect back to the original page. Is this the route to take? I did this: urls.py # Catch url for comment just posted (preview or error) (r'^wiki/comments/posted/.*$','othe

Re: Why Syntax Errors in URLconf are Silent?

2009-02-06 Thread Kenneth Gonsalves
On Saturday 07 Feb 2009 12:05:01 pm Guy Rutenberg wrote: > I've included a app specific URLconf in my main URLconf file. I had > some syntax errors in the included URLconf file, however instead of > throwing an exception about the syntax error, an exceptions was thrown > when I've tried to use the

Why Syntax Errors in URLconf are Silent?

2009-02-06 Thread Guy Rutenberg
Hi, I've included a app specific URLconf in my main URLconf file. I had some syntax errors in the included URLconf file, however instead of throwing an exception about the syntax error, an exceptions was thrown when I've tried to use the "reverse()" function on the URLs of the included URLconf.

Re: Best Practices for filter()[0] and get()

2009-02-06 Thread Russell Keith-Magee
On Sat, Feb 7, 2009 at 8:14 AM, Michael Burton wrote: > I often have a need to get an object that I don't know for sure is in the > database. For example, > > Retrieving a person by username when the username may have been mistyped, > eg. User.objects.get(...) > Retrieving a user's most recently

Re: Converting queryset filter() strings to their fields?

2009-02-06 Thread Russell Keith-Magee
On Sat, Feb 7, 2009 at 5:05 AM, Ben Gerdemann wrote: > > My question is how, can I can get a reference to the 'a21_ano' field > that this filter is referencing? If the filter didn't span through the > foreign key, I could just do: > > T60Curso._meta.get_field("ex") > > but this doesn't work: > >

Re: Two quick questions about __search

2009-02-06 Thread Alex Gaynor
On Fri, Feb 6, 2009 at 11:32 PM, Seamus wrote: > > 1. Is there documentation for __search? (I swear I looked long and > hard) > 2. When using MySQL, do I need to manually alter the table for the > FULLTEXT index? > > Thanks in advance. > > Seamus > > > 1) It's mentioned here: http://docs.djangopr

Two quick questions about __search

2009-02-06 Thread Seamus
1. Is there documentation for __search? (I swear I looked long and hard) 2. When using MySQL, do I need to manually alter the table for the FULLTEXT index? Thanks in advance. Seamus --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

MHVLUG Web Hackathon

2009-02-06 Thread Sean
The Mid-Hudson Valley Linux Users Group (MHVLUG) will be hosting a Web Hackathon soon. At the MHVLUG Web Hackathon a bunch of Django and Ruby on Rails people will be getting together to work on projects and see what we can learn from each other. The Hackathon will be on Saturday, March 7th from

Re: free django hosting

2009-02-06 Thread xankya
has anyone hosted django on joyent? I guess joyent does have apache and python installed. but i could not configure install mod_python and django. thanx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users

Re: looking for patch to user.messages that adds a category

2009-02-06 Thread Margie
Very cool - thanks so much for giving me thsi pointer, Ramiro. I followed the snippet info and it's working great. Margie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: ImportError: Could not import settings 'mysite.settings'

2009-02-06 Thread djandrow
Thanks Karen, I've got it all working now. Regards, Andrew On 6 Feb, 21:51, Karen Tracey wrote: > On Fri, Feb 6, 2009 at 4:37 PM, djandrow wrote: > > > Hello, > > > I'm trying to get my django project going on mod_python (this all on > > on windows XP) > > However when I try to get my project

Best Practices for filter()[0] and get()

2009-02-06 Thread Michael Burton
I often have a need to get an object that I don't know for sure is in the database. For example, Retrieving a person by username when the username may have been mistyped, eg. User.objects.get(...) Retrieving a user's most recently used location, if they have one, eg. Location.objects.filter(

Customize the InlineModelAdmin forms conditionally

2009-02-06 Thread George Sakkis
I'm trying to customize the admin interface so that each inline form for a given InlineModelAdmin is displayed differently, based on the instance to be edited in the form. For example, one may want to display each BookInline form under the AuthorAdmin with a different background color, based on t

Re: table display with AJAX

2009-02-06 Thread Fabio Natali
MrJogo wrote: [...] > One of my pages is going to have a table that I'd like to be sortable, > and I'm wondering the best way to do this. I looked into django- > tables, which seems good, but once the page is loaded, I'd also like > to be able to sort dynamically (using javascript). Before I go an

table display with AJAX

2009-02-06 Thread MrJogo
Hi, One of my pages is going to have a table that I'd like to be sortable, and I'm wondering the best way to do this. I looked into django- tables, which seems good, but once the page is loaded, I'd also like to be able to sort dynamically (using javascript). Before I go and implement this myself

Re: looking for patch to user.messages that adds a category

2009-02-06 Thread Ramiro Morales
On Fri, Feb 6, 2009 at 7:52 PM, Margie wrote: > > Thanks very much, Karen. That makes perfect sense. Well, it was at > least a good excercise in learning how easy it is to download the > source from the svn repository! Also, take a look at ticket [1]4604 that deals with implementing (and movin

Re: Authenticate against own model

2009-02-06 Thread Ales Zoulek
Yep. You can define your own backend. Just study django.contrib.auth.backends.ModelBackend interface (especialy methods that are called on the backend in __init__.py in the same directory. (get_user() and autheticate()) And as you can see on the top of the file, you can tell Django, where your cus

Subclass/Inline Problem - should I be able to do this?

2009-02-06 Thread phoebebright
Here is my model: class Directory(models.Model): name = models.CharField(max_length=60) class Business(Directory): anyfield = models.CharField(max_length=60) class Gallery(models.Model): directory = models.ForeignKey(Directory), pic = models.ImageField(upload_to='pics') This

Re: looking for patch to user.messages that adds a category

2009-02-06 Thread Margie
Thanks very much, Karen. That makes perfect sense. Well, it was at least a good excercise in learning how easy it is to download the source from the svn repository! Margie On Feb 6, 1:37 pm, Karen Tracey wrote: > On Fri, Feb 6, 2009 at 3:54 PM, Margie wrote: > > > Hi, > > > I was searching f

Re: ImportError: Could not import settings 'mysite.settings'

2009-02-06 Thread Karen Tracey
On Fri, Feb 6, 2009 at 4:37 PM, djandrow wrote: > > Hello, > > I'm trying to get my django project going on mod_python (this all on > on windows XP) > However when I try to get my project going I get > > ImportError: Could not import settings 'mysite.settings' (Is it on > sys.path? Does it have s

ImportError: Could not import settings 'mysite.settings'

2009-02-06 Thread djandrow
Hello, I'm trying to get my django project going on mod_python (this all on on windows XP) However when I try to get my project going I get ImportError: Could not import settings 'mysite.settings' (Is it on sys.path? Does it have syntax errors?): No module named mysite.settings But I have this

Re: looking for patch to user.messages that adds a category

2009-02-06 Thread Karen Tracey
On Fri, Feb 6, 2009 at 3:54 PM, Margie wrote: > > Hi, > > I was searching for a way to add a class to messages that are created > via user.message_set.create(message="my message here"). I found a > number of people discussing this and found what seems to be patch that > does just what I want: >

looking for patch to user.messages that adds a category

2009-02-06 Thread Margie
Hi, I was searching for a way to add a class to messages that are created via user.message_set.create(message="my message here"). I found a number of people discussing this and found what seems to be patch that does just what I want: http://code.djangoproject.com/attachment/ticket/3995/3995.dja

Re: html italic tag hinders search code

2009-02-06 Thread May
Creating a duplicate field without tags looks like it might be the way to go, then. I just hate the redundancy of two fields of data. Thanks to both you and Jeff! May On Feb 6, 12:30 pm, Karen Tracey wrote: > On Fri, Feb 6, 2009 at 3:05 PM, May wrote: > > > I have data entry clerks typing th

Re: html italic tag hinders search code

2009-02-06 Thread Karen Tracey
On Fri, Feb 6, 2009 at 3:05 PM, May wrote: > > I have data entry clerks typing the data, so I cannot have them type > the titles twice. I'm quite sure Jeff wasn't suggesting having anyone type the titles in twice. Rather, when something with a title is saved, you have code (maybe in a save() o

Re: Context processors not executing

2009-02-06 Thread Alvaro Mouriño
On Fri, Feb 6, 2009 at 5:47 PM, Alex Gaynor wrote: > On Fri, Feb 6, 2009 at 2:45 PM, Alvaro Mouriño > wrote: >> >> Hi list, >> >> None of the context processors are being executed, not only my own, >> django's context processors aren't either. I've been developing with >> django for about a year

Converting queryset filter() strings to their fields?

2009-02-06 Thread Ben Gerdemann
Hello, I think the best why to explain my question is with an example. I have a model T60CursoAdmin and a query string "a21__a21_ano" that I can use to search with like this: T60CursoAdmin.objects.filter(a21__a21_ano=2008) The models look like this: class T60Curso(models.Model): a21 = mode

Re: html italic tag hinders search code

2009-02-06 Thread May
Hello, I have data entry clerks typing the data, so I cannot have them type the titles twice. Is there a command where I could strip the tags out after the keywords are typed but before python goes to the database to search? This is the def: query = request.GET.get('q', '') if query:

Re: html italic tag hinders search code

2009-02-06 Thread Jeff FW
The issue has nothing to do with your templates--it has to do with your data, and how you're searching it. In the database, you have stored "Survival of Shigella". If you do a regular text search (field__contains, or similar) for "Survival of Shigella", you'll never get a match, because those st

Re: Context processors not executing

2009-02-06 Thread Alex Gaynor
On Fri, Feb 6, 2009 at 2:45 PM, Alvaro Mouriño wrote: > > Hi list, > > None of the context processors are being executed, not only my own, > django's context processors aren't either. I've been developing with > django for about a year now and this is the first time something like > this happens t

Context processors not executing

2009-02-06 Thread Alvaro Mouriño
Hi list, None of the context processors are being executed, not only my own, django's context processors aren't either. I've been developing with django for about a year now and this is the first time something like this happens to me. I'm really lost here, any help o keyword to google for will b

Re: A Very Puzzling MySQL Issue Performance...

2009-02-06 Thread brad
> You may have query caching turned on. > > http://www.mysqlperformanceblog.com/2006/07/27/mysql-query-cache/ Also here (for mysql 5.0): http://dev.mysql.com/doc/refman/5.0/en/query-cache-configuration.html --~--~-~--~~~---~--~~ You received this message because y

Re: Can I do this with django?

2009-02-06 Thread Kevin Audleman
Wow, that is very cool. I implemented it and it works! Django is definitely a very impressive framework. Thanks for your help! Kevin On Feb 6, 10:31 am, Alex Gaynor wrote: > On Fri, Feb 6, 2009 at 12:58 PM, Kevin Audleman > wrote: > > > > > > > Thanks Alex! > > > My Project class has the field

Re: No module named PIL - Django - Gae

2009-02-06 Thread Edgard Matos
Karen! Very thank you! My problem it's resolved!!! Here also have a solution: http://groups.google.com/group/google-appengine/browse_thread/thread/3aedf3cbcce1fd88 On Fri, Feb 6, 2009 at 3:24 PM, Karen Tracey wrote: > On Fri, Feb 6, 2009 at 12:13 PM, Edgard Matos wrote: > >> My code: >> >> In

Re: Can I do this with django?

2009-02-06 Thread Alex Gaynor
On Fri, Feb 6, 2009 at 12:58 PM, Kevin Audleman wrote: > > Thanks Alex! > > My Project class has the field > > client = models.ForeignKey(Client') > > Would I use this in my save() method to reference the parent Client? > For instance > > class Project: >def save(): >self.hourly_rate =

Re: Tuning runserver restart behaviour

2009-02-06 Thread Karen Tracey
On Fri, Feb 6, 2009 at 1:00 PM, tow wrote: > > Is there a way to tune the way in which runserver decides to restart > itself? > The --noreload option can be used to tell runserver not to reload/restart: http://docs.djangoproject.com/en/dev/ref/django-admin/#noreload Karen --~--~-~--~-

Re: No module named PIL - Django - Gae

2009-02-06 Thread Karen Tracey
On Fri, Feb 6, 2009 at 12:13 PM, Edgard Matos wrote: > My code: > > In model: > class User(db.Model): > user = db.UserProperty() > avatar = db.BlobProperty() > def __unicode__(self): > return self.email > > class UserForm(djangoforms.ModelForm): > class Meta(): > model = User > >

html italic tag hinders search code

2009-02-06 Thread May
In the database I need to italics species names ex. Survival of Shigella In the search template I use the following: Search for Publications: When a user types in "Survival of Shigella" the search code finds no record, because I think the tags are hindering the search someho

Re: Can I do this with django?

2009-02-06 Thread Kevin Audleman
Thanks Alex! My Project class has the field client = models.ForeignKey(Client') Would I use this in my save() method to reference the parent Client? For instance class Project: def save(): self.hourly_rate = client.hourly_rate ... Or is there some other way of working acro

Re: syncdb dry run

2009-02-06 Thread tow
Thanks for pointing me at this. I'll try out the patch if I get the chance. Toby Russell Keith-Magee wrote: > On Wed, Feb 4, 2009 at 11:57 PM, tow wrote: > > > > Is there a way to do a dry run of "manage.py syncdb", to see what sql > > commands it's about to execute? > > > > "./manage.py sqlall

Tuning runserver restart behaviour

2009-02-06 Thread tow
Is there a way to tune the way in which runserver decides to restart itself? I keep on running into the following issue: I'm debugging while running through runserver, dropping out into pdb with a pdb.set_trace where I'm looking for a bug. As I step through the troublesome code, I notice one thi

Re: Can I do this with django?

2009-02-06 Thread Alex Gaynor
On Fri, Feb 6, 2009 at 12:43 PM, Kevin Audleman wrote: > > I'm building a simple time tracker. It has a table Clients and a table > Projects and there is a one-to-many relationship between them. I have > a field called hourly_rate that is in both tables. The reasoning is > that in general the hou

Can I do this with django?

2009-02-06 Thread Kevin Audleman
I'm building a simple time tracker. It has a table Clients and a table Projects and there is a one-to-many relationship between them. I have a field called hourly_rate that is in both tables. The reasoning is that in general the hourly rate is the same across projects based on the client, but if

lighttpd and fcgi issues

2009-02-06 Thread Kyle Hayes
Ok, so after the recommendation of the folks on #slicehost, I moved my two php sites from apache to lighttpd since I planned on also setting up a new Django site in addition. The move for the php blogs was very smooth and they are up and running. However, I can't say the same for my django site a

Re: No module named PIL - Django - Gae

2009-02-06 Thread Edgard Matos
My code: In model: class User(db.Model): user = db.UserProperty() avatar = db.BlobProperty() def __unicode__(self): return self.email class UserForm(djangoforms.ModelForm): class Meta(): model = User In view: data = UserForm(request.POST, request.FILES) if data.is_valid(

Re: No module named PIL - Django - Gae

2009-02-06 Thread Alex Gaynor
On Fri, Feb 6, 2009 at 12:09 PM, Karen Tracey wrote: > On Fri, Feb 6, 2009 at 12:05 PM, Alex Gaynor wrote: > >> I'm fairly certain PIL doesn't work on Google App Engine so I think google >> has their own image module, you should consult the GAE documentation. >> > > Their own images API apparentl

Re: No module named PIL - Django - Gae

2009-02-06 Thread Karen Tracey
On Fri, Feb 6, 2009 at 12:05 PM, Alex Gaynor wrote: > I'm fairly certain PIL doesn't work on Google App Engine so I think google > has their own image module, you should consult the GAE documentation. > Their own images API apparently uses PIL: http://code.google.com/appengine/docs/python/image

Re: No module named PIL - Django - Gae

2009-02-06 Thread Alex Gaynor
On Fri, Feb 6, 2009 at 12:01 PM, Karen Tracey wrote: > On Fri, Feb 6, 2009 at 11:51 AM, Edgard Matos wrote: > >> Somebody can help me? >> > > Not likely, without some more information. As Ned said in the first reply > to your original query, you have not shown us enough of your code. You have >

Re: Where to place files on apache server.

2009-02-06 Thread djandrow
Ok thanks, I will make sure I do that. Currently this is just on my PC so there aren't any security issues but I will make a note of it for later, thanks. Andrew --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djan

Re: No module named PIL - Django - Gae

2009-02-06 Thread Karen Tracey
On Fri, Feb 6, 2009 at 11:51 AM, Edgard Matos wrote: > Somebody can help me? > Not likely, without some more information. As Ned said in the first reply to your original query, you have not shown us enough of your code. You have not shown us any form definition that includes an image, nor have

Re: how can i create alphabetic list

2009-02-06 Thread Alex Gaynor
On Fri, Feb 6, 2009 at 8:52 AM, Muslu Yüksektepe wrote: > ok i am telling you again > i wrote photo album > i add title and photos. > i need show my titles like this > > a1 > a2 > a3 > a4 > b2 > b3 > b4 > b5 > b6 > c1 > c2 > c3 > c4 > c5 > c6 > > and > > i wanna use letter like this > a b c d e f

Re: Where to place files on apache server.

2009-02-06 Thread Karen Tracey
On Fri, Feb 6, 2009 at 10:31 AM, djandrow wrote: > > So i set it in Environment Variable then System variables [this is on > windows]: > > PythonPath -- C:\ProgLangs\Python26 > > But i still get File > > "C:\ProgLangs\Python25\Lib\site-packages\mod_python\importer.py", > line 304, in import_modu

Re: No module named PIL - Django - Gae

2009-02-06 Thread Edgard Matos
Somebody can help me? On Fri, Feb 6, 2009 at 11:58 AM, Edgard Matos wrote: > I only installed PIL in my system. > > I din't installer PIL on my project. > Do I have to do this? How I do? > > Thanks! > > > On Fri, Feb 6, 2009 at 11:44 AM, Edgard Matos wrote: > >> Swaroop, >> >> On local system. >

Re: A Very Puzzling MySQL Issue Performance...

2009-02-06 Thread Adam Nelson
On Feb 5, 12:36 pm, dan0 wrote: > Hello, > > I am having an issue with my msyqld process responding to a query > after a moderate period of inactivity. I'll issue a simple query such > as "Person.objects.filter(name__icontains='Dan')", which would map to > about 5000 entries in a table of roughly

Form wizard back button

2009-02-06 Thread alain D.
Is there a way to add a back button using django's form wizard to navigate back to a previously filled form? I'd like users to be able to fill form1, go to form2, click "back": go to form1 (with populated fields) and continue the process ... is that possible? --~--~-~--~~--

Re: new record - onetoonefield - create related record

2009-02-06 Thread Karen Tracey
On Sat, Jan 31, 2009 at 11:01 AM, John M wrote: > > Hi Karen, and thanks for the reply. > > I've always wanted to use the 1-1 field, but whenever a new parent > record is added, I want it to automatically add (via the save() ) > ovoerride above to the child 1-1 table. > > Yes, the debug does prin

Re: A Very Puzzling MySQL Issue Performance...

2009-02-06 Thread Steve McConville
> I think the effect you are seeing is more of MySQL thing than a Django > thing, so that is where I'd be looking for a better idea of what the server > is doing to speed up subsequent queries like this (in fact I think I recall > reading about it at some point in reading up on MySQL, though I don

Re: A Very Puzzling MySQL Issue Performance...

2009-02-06 Thread Adam Nelson
Also, you could limit the result set to the number of records you actually need. 5k seems like an absurdly large result set. One final thing would be if you could pre-cull the Person data by narrowing it down to active users or something. The active_user field (if there is one), could quickly k

Re: Admin site not using my overridden save()?

2009-02-06 Thread Karen Tracey
On Thu, Feb 5, 2009 at 2:08 PM, Silfheed wrote: > > No, not a direct cut and paste (I guess I should have) > > class person(models.Model): >gender = models.CharField(max_length=1, choices=(('M','male'), > ('F','female'))) >other = models.CharField(manx_length=20, null=True,blank=True) > >

Re: get_FOO_display

2009-02-06 Thread Alex Koshelev
get_FOO_display is an instance method not field. So try this: {{ object.get_invoice_type_display }} On Fri, Feb 6, 2009 at 6:09 PM, Alfonso wrote: > > I've got a field called 'invoice_type' which is a ChoiceField. > > In my template I'm trying to pull out the 'humanized' invoice type by > usi

Re: Where to place files on apache server.

2009-02-06 Thread djandrow
So i set it in Environment Variable then System variables [this is on windows]: PythonPath -- C:\ProgLangs\Python26 But i still get File "C:\ProgLangs\Python25\Lib\site-packages\mod_python\importer.py", line 304, in import_module return __import__(module_name, {}, {}, ['*'])" How can I se

Re: A Very Puzzling MySQL Issue Performance...

2009-02-06 Thread dan0
I'm sure that the Queryset is being evaluated. There is a significant amount of post-processing which occur to the Django objects before they're passed to render_to_response. I agree, this is almost certainly a MySQL issue rather than a Django issue. The query isn't using an index. Perhaps that's

get_FOO_display

2009-02-06 Thread Alfonso
I've got a field called 'invoice_type' which is a ChoiceField. In my template I'm trying to pull out the 'humanized' invoice type by using {{ object.invoice_type.get_invoice_type_display }} but django's not happy. I'm guessing it's because of the invoice[underscore]type syntax I used? Any worka

Re: Installing Django to a newer version of python

2009-02-06 Thread BrianE
I am doing this on my own vm slice. I am not above changing distos. I will give centos a try. and see if that works any better. I will also see about using wsgi instead of mod_python. thanks for your help On Feb 6, 7:43 am, Adam Nelson wrote: > > > how can I get mod_python, which is needed b

Re: Installing Django to a newer version of python

2009-02-06 Thread BrianE
I understand that there are "standard" ways to install apps on my version of Linux. And you are correct that I do not want to compile my own binary packages. I loose money in doing that. I do not make money by trying to figure out all the dependencies to try and attempt to compile some code jus

Re: No module named PIL - Django - Gae

2009-02-06 Thread Edgard Matos
I only installed PIL in my system. I din't installer PIL on my project. Do I have to do this? How I do? Thanks! On Fri, Feb 6, 2009 at 11:44 AM, Edgard Matos wrote: > Swaroop, > > On local system. > > > On Fri, Feb 6, 2009 at 11:42 AM, Swaroop C H wrote: > >> >> Hi Edgard, >> >> Are you runni

Re: Trouble with Django and jQuery

2009-02-06 Thread varikin
> > The external jQuery script doesn't go through Django, so obviously the > > template variables aren't parsed. As you have discovered, you can put > > javascript in the template so that it is parsed. So you already have > > the answer to your question: use a small script within your template, >

Re: No module named PIL - Django - Gae

2009-02-06 Thread Edgard Matos
Swaroop, On local system. On Fri, Feb 6, 2009 at 11:42 AM, Swaroop C H wrote: > > Hi Edgard, > > Are you running this on your local system or on GAE? > > Regards, > Swaroop > > Books and Blog - http://www.swaroopch.com > Microblog - http://twitter.com/swaroopch > > > > On Fri, Feb 6, 2009 at 7:

Re: Installing Django to a newer version of python

2009-02-06 Thread Adam Nelson
> > how can I get mod_python, which is needed by apache, to load in the > > python 25 directoty and not in the 24 directory? > > If no prebuilt binary of mod_python is available that was compiled > against Python 2.5 then you must build mod_python from source code > yourself against Python 2.5. >

Re: No module named PIL - Django - Gae

2009-02-06 Thread Swaroop C H
Hi Edgard, Are you running this on your local system or on GAE? Regards, Swaroop Books and Blog - http://www.swaroopch.com Microblog - http://twitter.com/swaroopch On Fri, Feb 6, 2009 at 7:34 PM, Edgard Matos wrote: > Hi! > > I'm trying to do a form to upload a image using Google App Engine

Re: Which Python are people using on OSX?

2009-02-06 Thread Adam Nelson
> > > 2. Compile Python myself from source. > > Easy peasy :) > I've tried this method too and it worked great. On some of the docs, it's not clear to the new user that he/she needs Xcode to compile things on a stock Mac. Make sure to get Xcode. --~--~-~--~~~---~--~-

Re: Which Python are people using on OSX?

2009-02-06 Thread Adam Nelson
> 4. Use the macpython .dmg I've been using the app from http://wiki.python.org/moin/MacPython/Leopard and it works great. That's a nice clean 2.5.4 install. All my libs/ apps I get using pip and virtualenv which is a recent thing. On a recent install I did with a friend, we left the stock 2.5

Fwd: Re: Class coverage report for automated tests in django apps

2009-02-06 Thread Tim Sawyer
I'm doing that using coverage.py, I based my solution on these blog posts: http://siddhi.blogspot.com/2007/04/code-coverage-for-your-django-code.html http://siddhi.blogspot.com/2007/07/django-code-coverage-followup.html Cheers, Tim. -- Forwarded Message -- Subject: Re: Clas

Re: No module named PIL - Django - Gae

2009-02-06 Thread Ned Batchelder
You aren't showing enough of your code, but there's no module named PIL. When you install PIL, you get a module named Image. --Ned. Edgard Matos wrote: > Hi! > > I'm trying to do a form to upload a image using Google App Engine + > Django. > In my view, I have: > data = UserForm(request.PO

Re: Installing Django to a newer version of python

2009-02-06 Thread Graham Dumpleton
On Feb 7, 12:13 am, BrianE wrote: > how can I get mod_python, which is needed by apache, to load in the > python 25 directoty and not in the 24 directory? If no prebuilt binary of mod_python is available that was compiled against Python 2.5 then you must build mod_python from source code yours

Re: Which Python are people using on OSX?

2009-02-06 Thread Graham Dumpleton
On Feb 6, 9:27 pm, "Adam Radestock" wrote: > I've been using Python on Mac OS X for some time now... > > It's easy enough to find a python installer for OS X that'll bring you > up to the latest version, without the need to compile. There's a Mac > installer disk image here for 2.6.1, this is w

Re: MAC Address-Field needed- Validate a Char-Field (RegEx) or create my own Field?

2009-02-06 Thread Lee Braiden
ARie, Ideally, I think you'd want to create a mac field that works more like a credit card validation field than a simple regex checker. I say that because you could check the manufacturer prefix codes of the mac addresses and verify that the suffixes match things they've produced, and stuff lik

Re: Installing Django to a newer version of python

2009-02-06 Thread William Stearns
Just because there is a new version of python out, doesn't necessarily mean that there's a stable build for your particular breed of debian. If you want to stay on the bleeding edge, then you should compile your own versions of python, mod_python, apache, etc... Just because builds work on winblo

No module named PIL - Django - Gae

2009-02-06 Thread Edgard Matos
Hi! I'm trying to do a form to upload a image using Google App Engine + Django. In my view, I have: data = UserForm(request.POST, request.FILES) if data.is_valid(): user = users.get_current_user() But when I submit the form, an error has: No module named PIL I always installed the

MAC Address-Field needed- Validate a Char-Field (RegEx) or create my own Field?

2009-02-06 Thread ARie
Hi all, i am just trying to create my first django application an ran into a problem creating a field for a mac address. I am looking for something similar as django's built in IPAddressField. As a special mac-field is missing, ithought i could simply use a char- Field an validate it accordingly

Modify label from field.label_tag

2009-02-06 Thread Kless
Is possible to modify the label value got from *{{ field.label_tag }} * ? By example, if it's got: e-mail I would to modify that label to (as example): E-MAIL And *{{ field.label_tag|upper }}* is not valid because it modifies all: USERNAME Any idea? --~--~-~--~~---

Authenticate against own model

2009-02-06 Thread Robert
Hi community, is there any possibilty to make the Django-Authentication authenticate against a self-defined User-Model? My problem ist that the available fields in the predefined User-Model aren't enough for me and extending Djangos User-Model doesn't satisfy me (neither extending with a Profil-

Re: how can i create alphabetic list

2009-02-06 Thread Muslu Yüksektepe
ok i am telling you again i wrote photo album i add title and photos. i need show my titles like this a1 a2 a3 a4 b2 b3 b4 b5 b6 c1 c2 c3 c4 c5 c6 and i wanna use letter like this a b c d e f g when i click "a" it have to show only a1 a2 a3 a4 or click "b" b2 b3 b4 b5 b6 later i wanna cho

Re: Installing Django to a newer version of python

2009-02-06 Thread BrianE
you mean to tell me that even though there are updates and new features coming out all the time with python and django there is no way to use the new features because it will not install correctly??? pardon by ignorance but I do not have time to F&(* around trying to get a version to work on debai

serializing vs. building a JSON response -- is there a best practice?

2009-02-06 Thread Serdar T.
Hey everyone, I'm' working on a basic chained select menu that lets you drill down from county to town to restaurant. The men is populated dynamically using ajax calls from browser to Django on the server side. It's working as intended, but I'm wondering if there is a "best practice" or conventio

Re: how can i create alphabetic list

2009-02-06 Thread Alex Gaynor
On Fri, Feb 6, 2009 at 8:33 AM, Muslu Yüksektepe wrote: > my model: > #-*- coding: utf-8-*- > from django.db import models > from django.contrib import admin > import re > import os,sys > from datetime import datetime > from sorl.thumbnail.fields import ImageWithThumbnailsField > # > class Fotoalb

Re: how can i create alphabetic list

2009-02-06 Thread Muslu Yüksektepe
my model: #-*- coding: utf-8-*- from django.db import models from django.contrib import admin import re import os,sys from datetime import datetime from sorl.thumbnail.fields import ImageWithThumbnailsField # class Fotoalbum(models.Model): baslik = models.CharField(max_length=100,verbose_name="

Re: how can i create alphabetic list

2009-02-06 Thread Alex Gaynor
On Fri, Feb 6, 2009 at 7:39 AM, Muslu Yüksektepe wrote: > i tryed but it doesnt work. > > 2009/2/5 Muslu Yüksektepe > > thanx i will try tomorrow. >> i hope it will be ok >> > > > > > You need to provide more information than simply it doesn't work, try dpasting a traceback. Alex -- "I disappr

Re: Installing Django to a newer version of python

2009-02-06 Thread Kenneth Gonsalves
On Friday 06 Feb 2009 6:43:53 pm BrianE wrote: > how can I get mod_python, which is needed by apache, to load in the > python 25 directoty and not in the 24 directory? only if etch backports has it -- regards KG http://lawgon.livejournal.com --~--~-~--~~~---~--~---

Re: Class coverage report for automated tests in django apps

2009-02-06 Thread Alex Gaynor
On Fri, Feb 6, 2009 at 2:11 AM, ranjan.Kumar wrote: > > hi all.. > > I am trying to automate tests for my website and i need to know the > way in which i can get the code coverage report of the tests. I found > 'coverage.py' which gives the coverage report of 'statements' but > couldn't find any w

AppEngine

2009-02-06 Thread Christian Hoeppner
I've been outside of the Django scene a couple months now, busy on other things. I remember AppEngine being the big new thing around, and Django could run on it, with a few hitches. How's things these days? Would you use AppEngine to run a production site for a client? --~--~-~--~-

Installing Django to a newer version of python

2009-02-06 Thread BrianE
how can I get mod_python, which is needed by apache, to load in the python 25 directoty and not in the 24 directory? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send em

Re: [slightly offtopic] Which Python are people using on OSX?

2009-02-06 Thread Horst Gutmann
After a bit of going back and forth I'm now using MacPorts more or less exclusively since it makes it easy to have multiple version (2.3, 2.4, 2.5, 2.6 and 3.0) installed in parallel. -- Horst On Thu, Feb 5, 2009 at 11:53 PM, Russell Keith-Magee wrote: > On Fri, Feb 6, 2009 at 6:07 AM, cjl wro

Re: how can i create alphabetic list

2009-02-06 Thread Muslu Yüksektepe
i tryed but it doesnt work. 2009/2/5 Muslu Yüksektepe > thanx i will try tomorrow. > i hope it will be ok > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: CMS apps feature comparison matrix

2009-02-06 Thread Kenneth Gonsalves
On Friday 06 Feb 2009 5:57:32 pm akaihola wrote: > Some authors of the apps already sent corrections, and further > refinement is of course welcome either by editing the page or sending > a follow-up here or to me [3]. cool - but I think it is better if you had the features as column headers and

CMS apps feature comparison matrix

2009-02-06 Thread akaihola
A page comparing features of prominent Content Management System apps for Django has been added to the Django wiki [1]. Like my previous effort for comparing forum apps [2], this started with the need to evaluate and summarize apps for use in our projects, and I wanted to make the data available t

comments system - there and back again

2009-02-06 Thread Donn
Hi, I have docced, searched and read old posts, but I still can't get comments to behave. 1. I have copied the templates to my app. 2. I have comments installed and working. 3. I have looked at the source, in vain; but I ain't too bright :) 4. I have a hidden "next" field in form.html so that a

Can Django only store the ASCII value for cookie?

2009-02-06 Thread TualatriX
Hi all: In my web application, I need to store some value of user's input, I use cookie. But sometime the User's input is not the character of ASCII, so DJango throw out the exception: UnicodeEncodeError 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128) Is there a

Re: Pass Variables to Admin view

2009-02-06 Thread Ales Zoulek
Maybe overloading add_view() on ModelAdmin class would be the right direction to go. class OrderAdmin(ModelAdmin) def add_view(self, request, *a, **k): p_id = get_product_id(request) super(OrderAdmin).add_view(request, extra_context = {'p_id': p_id}, *a, **k) A. On Fri, Feb 6, 2009 at

  1   2   >