Widgets

2007-04-16 Thread [EMAIL PROTECTED]
http://www.teenwag.com/widget --~--~-~--~~~---~--~~ 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

get_application_name() ?

2007-04-16 Thread Mark Engelberg
I'm writing some model code which needs to be reusable in several different applications. I'm running into a lot of name clashing issues, and need to use related_name to disambiguate relationships. To accomplish this, I need some way in my model code to find out the name of the application that

Re: Enforcing model representation invariants

2007-04-16 Thread Malcolm Tredinnick
Hi Michael, On Mon, 2007-04-16 at 22:42 -0400, Michael F. Robbins wrote: > I have a model with two DateTimeFields, named start and end. As Python > datetime objects, I'd like to ensure that (start < end) for all valid > instances of this model. What's the right way to enforce this > invariant?

Re: newforms & UnicodeDecodeError ( 0.97-pre)

2007-04-16 Thread Malcolm Tredinnick
On Mon, 2007-04-16 at 19:45 -0700, mamcxyz wrote: > I'm triying to build a custom admin site. > > I'm using the newforms library in 0.97-pre. > > DEFAULT_CHARSET='utf-8', the database is Mysql and the tables are too > utf-8 and the html templates are > . > > All the other things work fine

Enforcing model representation invariants

2007-04-16 Thread Michael F. Robbins
I have a model with two DateTimeFields, named start and end. As Python datetime objects, I'd like to ensure that (start < end) for all valid instances of this model. What's the right way to enforce this invariant? I tried making a custom Validator object and adding it to start.validator_list,

newforms & UnicodeDecodeError ( 0.97-pre)

2007-04-16 Thread mamcxyz
I'm triying to build a custom admin site. I'm using the newforms library in 0.97-pre. DEFAULT_CHARSET='utf-8', the database is Mysql and the tables are too utf-8 and the html templates are . All the other things work fine using old-forms, including the admin site. Also,I can load python

Re: Navigating the Documentation

2007-04-16 Thread Russell Keith-Magee
On 4/17/07, Nate Finch <[EMAIL PROTECTED]> wrote: > > No breadcrumbs so you can go up in the document heirarchy, just a link > to the root documentation page Breadcrumbs for the docs page are a reasonable request. Open a ticket and request them. > If you go to the root, you'll notice

Re: Restricting Access in the Django Admin to a instance of an object.

2007-04-16 Thread DuncanM
Thanks for the quick and detailed reply Russ, I'll have a look at the wiki now. Regards, Duncan On Apr 17, 12:33 am, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 4/17/07, DuncanM <[EMAIL PROTECTED]> wrote: > > > > > Briefly, I have a system set up to manage football teams, with > >

Re: Restricting Access in the Django Admin to a instance of an object.

2007-04-16 Thread Russell Keith-Magee
On 4/17/07, DuncanM <[EMAIL PROTECTED]> wrote: > > Briefly, I have a system set up to manage football teams, with > fixtures, results, players etc. > > How would I go about editing the admin permissions so that User X > could only edit the fixtures and results for Team X, and User Y could > only

Restricting Access in the Django Admin to a instance of an object.

2007-04-16 Thread DuncanM
Briefly, I have a system set up to manage football teams, with fixtures, results, players etc. How would I go about editing the admin permissions so that User X could only edit the fixtures and results for Team X, and User Y could only edit the fixtures for Team Y? I've looked at the admin

Re: django comparison

2007-04-16 Thread sime
Perfect analogy there James :-) On Apr 17, 2:09 am, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 4/16/07, M Harris <[EMAIL PROTECTED]> wrote: > > > I am new to Django, but am familiar with python. I am also > > familiar with > > joomla (formerly mambo), and I would like someone to

Re: Any developers in Gold Coast Australia?

2007-04-16 Thread sime
No python/django programmers here looking for work? On Apr 13, 1:29 pm, "sime" <[EMAIL PROTECTED]> wrote: > I'm looking for a talented local programmer to help with a growing > workload, on a regular contract basis. All projects in django :-) > > Or if you have experience working remotely that

Woooooooooooooooooow The Best Music Search Engine

2007-04-16 Thread [EMAIL PROTECTED]
http://www.freemp3sky.com --~--~-~--~~~---~--~~ 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

Navigating the Documentation

2007-04-16 Thread Nate Finch
Am I the only one who has a hellish time trying to navigate Django's online documentation? (here: http://www.djangoproject.com/documentation/) There seems to be no good table of contents for what is in the documentation, and no good way to navigate once you hit a specific page. For example, the

User authorization using apache

2007-04-16 Thread jeffhg58
I am sure this question has been asked before but haven't been able to find the answer. I am using the django decorator for user authentication. My views has the line @login_required And my urls.py has the line (r'^accounts/login/$', 'django.contrib.auth.views.login'), It works fine in the

_checklogin decorator error checking is too specific

2007-04-16 Thread Vinay Sajip
The _checklogin decorator in django/contrib/admin/views/decorators.py is very helpful - if a user enters an email address as their username, and authentication fails, it gives a message saying that email addresses are not allowable as usernames. In a particular app, I am using email addresses as

Re: new forms - processing the form without rebuilding the entire view

2007-04-16 Thread Nathaniel Whiteinge
I'm doing something pretty similar sounding with jQuery. I wanted to check for form validation errors via Ajax and do a regular form submission otherwise. The JavaScript: http://dpaste.com/hold/8571/ The Python: http://dpaste.com/hold/8572/ The code might be a little weird looking. I'm relying

Re: url template tag with generic views?

2007-04-16 Thread ltbarcly
Nice, thanks for the help! On Apr 16, 2:09 pm, "Jay Parlar" <[EMAIL PROTECTED]> wrote: > On 4/16/07, ltbarcly <[EMAIL PROTECTED]> wrote: > > > > > Is it possible to use the {% url %} tag with generic views? Generic > > views get used more than once in an app presumably, so there would > > have

Re: temp tables

2007-04-16 Thread [EMAIL PROTECTED]
We are trying to use them to generate a report where a bunch of calculations are being made... via a custom sql query... then hand all of the results back to my django view to display. After they are displayed...they can be nuked...but the guy working on this piece told me he couldn't get

Re: url template tag with generic views?

2007-04-16 Thread Jay Parlar
On 4/16/07, ltbarcly <[EMAIL PROTECTED]> wrote: > > Is it possible to use the {% url %} tag with generic views? Generic > views get used more than once in an app presumably, so there would > have to be some way to narrow it down. > > I'm guessing that there might not be a way to do it at this

url template tag with generic views?

2007-04-16 Thread ltbarcly
Is it possible to use the {% url %} tag with generic views? Generic views get used more than once in an app presumably, so there would have to be some way to narrow it down. I'm guessing that there might not be a way to do it at this time, which is a shame.

Re: django comparison

2007-04-16 Thread James Bennett
On 4/16/07, M Harris <[EMAIL PROTECTED]> wrote: > I am new to Django, but am familiar with python. I am also familiar > with > joomla (formerly mambo), and I would like someone to provide a comparison / > contrast between Django and joomla please, no hype, just the facts. I am >

Re: Django Manage.py Error After Fresh Linux Install

2007-04-16 Thread johnny
I fixed it. Symbolic link wasn't pointing to the right directory. --~--~-~--~~~---~--~~ 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

Ashampoo WinOptimizer is an easy-to-use suite of tools for maintaining and optim

2007-04-16 Thread helen hl
Ashampoo WinOptimizer is an easy-to-use suite of tools for maintaining and optimizing your Microsoft Windows® computer. It keeps your Windows® installation free of unnecessary garbage and running smoothly while other computers just get slower and slower.Download: Daha hızlı, akıllı ve kolay -

Re: etag and 404.

2007-04-16 Thread cactus
> I think the behaviour is correct though, why do you want to redefine it ? If the behavior is indeed correct, then I don't think I need to redefine it. It just seemed odd to return a 'not-modified' response to a query for a page that did not exist. Apache, when configured with mod_expires,

Re: Saving an object takes a long time

2007-04-16 Thread Chris Moffitt
Thanks for all the suggestions. I'm going to try to work on some of them this evening and see where it gets me. I'll be sure to let the group know if I have any "aha" moments that might help others. -Chris --~--~-~--~~~---~--~~ You received this message because

Re: Django Manage.py Error After Fresh Linux Install

2007-04-16 Thread johnny
I created a link in python/site-packages/django that actually points to the /home/me/django_src/django. I copied my project from windows into linux. I will delete *.pyc files and try it. --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: django comparison

2007-04-16 Thread Julio Nobrega
Hi Harris, Django is a framework where you can build a CMS, it doesn't come with this behaviour after installed. You're going to have to make a "Model" for "Article", code the functions to retrieve them, build each display page (the html), etc... The comparision can't really be made,

django comparison

2007-04-16 Thread M Harris
hi folks, I have a client wishing to go with Django as a content management solution (safe web hosting) and would like to implement the server with MySql. I am new to Django, but am familiar with python. I am also familiar with joomla (formerly mambo), and I would like

Woooooooooooooooooow The Best Music Search Engine

2007-04-16 Thread [EMAIL PROTECTED]
http://www.freemp3sky.com --~--~-~--~~~---~--~~ 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

Re: Super long response times/load times: Looking for some guidance on alleviating the issue

2007-04-16 Thread Roboto
ahh =P I'll try. I'm running with Grokthis.net as server right now, and I'm relatively new to understanding apache, I'll see what I can do. On Apr 16, 9:52 am, "Jay Parlar" <[EMAIL PROTECTED]> wrote: > On 4/16/07, Roboto <[EMAIL PROTECTED]> wrote: > > > > > serving directly from apache. > >

Re: Django Manage.py Error After Fresh Linux Install

2007-04-16 Thread Paul Rauch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 johnny schrieb: > I am not sure how to fix this. I reinstalled linux and now manage.py > has an import problem. Does this mean I have to add django to $PATH? > > My ERROR: > > [EMAIL PROTECTED] mysite]$ python manage.py runserver > Traceback

Re: Super long response times/load times: Looking for some guidance on alleviating the issue

2007-04-16 Thread Jay Parlar
On 4/16/07, Roboto <[EMAIL PROTECTED]> wrote: > > serving directly from apache. Well, I'm out of ideas then :) Probably, you should start putting up some of your more relevant config information (Apache config files), because you haven't given too much information to go on. Jay P.

Re: Super long response times/load times: Looking for some guidance on alleviating the issue

2007-04-16 Thread Roboto
serving directly from apache. On Apr 16, 8:25 am, "Jay Parlar" <[EMAIL PROTECTED]> wrote: > On 4/16/07, Roboto <[EMAIL PROTECTED]> wrote: > > > > > Hey Jay, yeah, I noticed somethign similar to that affect as well. It > > seems like it does some sort of caching or something, and if it hasn't >

Django Manage.py Error After Fresh Linux Install

2007-04-16 Thread johnny
I am not sure how to fix this. I reinstalled linux and now manage.py has an import problem. Does this mean I have to add django to $PATH? My ERROR: [EMAIL PROTECTED] mysite]$ python manage.py runserver Traceback (most recent call last): File "manage.py", line 2, in ? from

Re: Super long response times/load times: Looking for some guidance on alleviating the issue

2007-04-16 Thread Jay Parlar
On 4/16/07, Roboto <[EMAIL PROTECTED]> wrote: > > Hey Jay, yeah, I noticed somethign similar to that affect as well. It > seems like it does some sort of caching or something, and if it hasn't > cached in a while it takes a while to load. I'm running mod_python, > so I'm often reseting the

Re: Super long response times/load times: Looking for some guidance on alleviating the issue

2007-04-16 Thread Roboto
Hey Jay, yeah, I noticed somethign similar to that affect as well. It seems like it does some sort of caching or something, and if it hasn't cached in a while it takes a while to load. I'm running mod_python, so I'm often reseting the server so that my code changes go through. As for serving

Re: a way to find out which page (as determined by the paginator) that a specifc object occurs on?

2007-04-16 Thread jeff
hi scanner, i hope i understood correct... i have an newsitem apps with comments, the comments are paginated by 50. this is my get_absolute_url() for the comments: def get_absolute_url(self): comment_ids = [c.id for c in self.newsitem.comment_set.iterator()]

Re: etag and 404.

2007-04-16 Thread Atilla
> When I enable etags, django is sending back an etag on 404 pages. > When a client does a subsequent request for the same nonexistent > page, a 304 response is sent back, because the page has not changed > (based on the etag). > > When I disable etags, multiple requests for a non existent page

Re: new forms - processing the form without rebuilding the entire view

2007-04-16 Thread Tipan
Thanks xav, I thought that the answer might involve both caching and Ajax but I wasn't sure how. I'm not familiar with either so I'll need to go through the documentation. Do you know where I can find some good examples of using these? Tim --~--~-~--~~~---~--~~

Re: temp tables

2007-04-16 Thread Atilla
> Is there a way to force the db connection to stay open if you are > excecuting raw sql that is creating a temp table? When the connection > closes...the temp tables go away. > Temp tables are meant to be temporary. You can't guarantee, even with persistent db-connection pooling that the same

Re: Saving an object takes a long time

2007-04-16 Thread oggie rob
> The actual code is here - http://www.satchmoproject.com/trac/browser/satchmo/trunk/satchmo/shop... and the save function starts at line 150. I had a look and was wondering about the self.clean_data['other_field'] references within various clean_x methods. I thought, perhaps cyclic references