Re: URL prefix in applications and templates.

2007-03-27 Thread Michael
In the mean-time, another method which seems to be used by the admin interface is to create your own template tag (using simple_tag). If you take a look at the template tag used by the admin interface to create the {{ admin_media_prefix }} tag, it might give you some tips: For your issue, I

Re: tracking per-object-permissions branch, merging in from trunk, and fixing problems, adding features.

2007-03-27 Thread Michael Best
On 3/23/07, Scanner <[EMAIL PROTECTED]> wrote: > > On Mar 22, 5:50 pm, "Matthew Flanagan" <[EMAIL PROTECTED]> wrote: > > I'm definitely interested in the results. Why don't you apply to get > > check-in permissions on the per-object-permissions branch? That way it > > can be accessible to the

Resumes CV's / Positive vs. Negative Thinking Free Informational Site

2007-03-27 Thread rawebadvert
This Website is designed for you to learn how to write a resume on your own. Hiring someone to do a resume is not enough learn how to do it on your own. If you do hire someone to help you write a resume this will help you guide the resume writer to put in the correct information for you to

Re: Get function name after....

2007-03-27 Thread Mario Gonzalez
On Mar 27, 10:26 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > That's way I _need_ the function name :-( > > Understod. There are lots of similar cases where making sure you get the > real function name is useful. So, it's something that will be solved > soon-ish. You just can't have

Re: Get function name after....

2007-03-27 Thread Malcolm Tredinnick
On Wed, 2007-03-28 at 02:22 +, Mario Gonzalez wrote: > On Mar 27, 9:09 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> > wrote: > > > > This is a known mini-problem and something we need to / will sort out > > prior to 1.0. There are a *lot* of places in Django that wrap views up > > and then

Re: Does django provide a parse_FOO_display? ie. get_FOO_display reverted.

2007-03-27 Thread Malcolm Tredinnick
On Tue, 2007-03-27 at 19:11 -0700, Alex Dong wrote: > Hi Folks, > > I'm wondering are there any "parse_FOO_display" method for the django > models? > > For example: {{{ > class Transaction(models.Model): > STATUS = ( > (1, 'Canceled_Reversal'), > (2, 'Completed'),

Re: Get function name after....

2007-03-27 Thread Mario Gonzalez
On Mar 27, 9:09 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > This is a known mini-problem and something we need to / will sort out > prior to 1.0. There are a *lot* of places in Django that wrap views up > and then expose them to the world. Once you get used to the idiom, it's > not a

Re: URL prefix in applications and templates.

2007-03-27 Thread James Bennett
On 3/27/07, Michael Lake <[EMAIL PROTECTED]> wrote: > So my question is if some consensus has developed or is there a 'proper' > method for > dealing with this? The "url" template tag is the solution to this; instead of giving it a URL, you give it the name of a view, and it looks through the

Does django provide a parse_FOO_display? ie. get_FOO_display reverted.

2007-03-27 Thread Alex Dong
Hi Folks, I'm wondering are there any "parse_FOO_display" method for the django models? For example: {{{ class Transaction(models.Model): STATUS = ( (1, 'Canceled_Reversal'), (2, 'Completed'), (3, 'Pending'), (4, 'Refunded'), (5,

Re: Multiple Django installations on the same Apache with mod_python

2007-03-27 Thread Jeremy Dunck
On 3/18/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > SetHandler python-program ... > > SetHandler python-program The usual way to do this is to have virtual hosts and use the same root URL on both. Otherwise, consider having separate ROOT_URLCONF's for each to factor

Re: Does the server have to restarted when you make a change to the code?

2007-03-27 Thread Kenneth Gonsalves
On 28-Mar-07, at 12:43 AM, James Bennett wrote: > There are some workarounds: mod_python, for example, supports a > "PythonAutoReload" directive which, if turned on, will tell mod_python > to check the modification date of files and reload them. However, this > again imposes a performance

Re: relative "extends" syntax in templates?

2007-03-27 Thread Malcolm Tredinnick
On Tue, 2007-03-27 at 17:13 -0500, Tim Chase wrote: > I have a directory structure like > > app/templates/{various top-level templates} > app/templates/help/help_base.html > app/templates/help/particular_help.html > > In particular_help.html I have to use > > {% extends "help/help_base.html"

Re: Does the server have to restarted when you make a change to the code?

2007-03-27 Thread Kenneth Gonsalves
On 28-Mar-07, at 12:35 AM, David Zhou wrote: >> Is that post correct? You have to restart the server whenever you >> make >> a change to the django code? > > I haven't needed to do so for template changes. I dunno about other > parts. you have to do so for changes in code - changes in

Re: Forms vs. Models: Redundant?

2007-03-27 Thread Malcolm Tredinnick
On Tue, 2007-03-27 at 11:18 -0700, Ben Stahl wrote: > Aren't you duplicating information with the newforms, violating the > DRY principle? What I mean is, aren't we separately creating most or > all of the same fields for a form as for the model whose data will be > bound to the form? Why can't a

Re: Get function name after....

2007-03-27 Thread Mario Gonzalez
On Mar 27, 3:24 pm, "Mario Gonzalez" <[EMAIL PROTECTED]> wrote: > On Mar 27, 2:10 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > > > 'resolve' returns the actual callable function in all cases, so if you > > want the string name of the function you might want to access its > > '__name__'

URL prefix in applications and templates.

2007-03-27 Thread Michael Lake
Hi all Like other posts on this group I am trying to work out the best approach for an app that has a development version at / and a production version at /proteomics/pls/ My templates contain href="/detail/{{ some_variable }}" which works in test but I dont want to have to change them all

Re: Problem with order_with_respect_to and self

2007-03-27 Thread Anderson Santos Silva
Hello Malcoml. Here the copy and paste of the error: FieldDoesNotExist at /animallib/ Section has no field named 'self' Request Method: GET Request URL: http://utopia-design.net/animallib/ Exception Type: FieldDoesNotExist Exception Value: Section has no

Re: django admin ordering by last modified

2007-03-27 Thread damacy
hello there, thanks for your help. by the way, i've been wondering what it means by '...regardless of how many fields are in "ordering" the admin site uses only the first field'. the "first field" in my example is the 'lastname' although it does not seem the data are ordered by the field.

Re: Problem with get_current_user via middleware - SOLVED

2007-03-27 Thread Gilhad
> > As I did some other experiments, it seems to me, that there are > > TWO '_thread_locals' objects, one filled in 'process_request' (which > > has 'user' attribute set) and another one in 'get_current_user' which > > does not. The problem was in the fact, that i had import

Re: newbie - deploy error

2007-03-27 Thread Frank Rocco
Can't I have a deploy like ASP or PHP apps that use the same port and use a different directory for each app? Thanks Frank On Mar 27, 2007, at 5:30 PM, risomt wrote: > > You have both virtual hosts connecting on the same port - switch > mysite3 to something like :8081 and it should work > >

Re: Does the server have to restarted when you make a change to the code?

2007-03-27 Thread Graham Dumpleton
On Mar 28, 5:13 am, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 3/27/07, walterbyrd <[EMAIL PROTECTED]> wrote: > > > Is that post correct? You have to restart the server whenever you make > > a change to the django code? > > For templates, no. For changes to the actual Python code in use,

relative "extends" syntax in templates?

2007-03-27 Thread Tim Chase
I have a directory structure like app/templates/{various top-level templates} app/templates/help/help_base.html app/templates/help/particular_help.html In particular_help.html I have to use {% extends "help/help_base.html" %} rather than a relative {% extends "help_base.html" %} Is

Re: populating choice in newForm instance

2007-03-27 Thread tyman26
I guess a simpler quesiton would be: How can I populate a text box dynamically with information from the post from the same form? Or is there maybe another way to accomplish this possibly with a custom inclusion tag? Any help would be much appreciated. There must be some easier way to do

Re: newbie - deploy error

2007-03-27 Thread risomt
You have both virtual hosts connecting on the same port - switch mysite3 to something like :8081 and it should work On Mar 27, 5:11 pm, "Frank" <[EMAIL PROTECTED]> wrote: > mysite works > mysite3 gives me a 404 error > I guess I still have something wrong. > > Thanks > Frank > > NameVirtualHost

Re: limit_choice_to option for related Model

2007-03-27 Thread MerMer
Scratch that. Couldn''t see the wood for the trees. I was simply missing the comma after Promotion. MerMer On Mar 27, 10:34 pm, Merric Mercer <[EMAIL PROTECTED]> wrote: > Can somebody provide some guidance for how to use limit_choices in a > Model. I am trying to > only display the records

Re: newbie - deploy error

2007-03-27 Thread Frank
mysite works mysite3 gives me a 404 error I guess I still have something wrong. Thanks Frank NameVirtualHost * ServerName mysite SetHandler python-program PythonPath "['C:\djangoapps'] + sys.path" PythonHandler django.core.handlers.modpython SetEnv

Re: Forms vs. Models: Redundant?

2007-03-27 Thread Adrian Holovaty
On 3/27/07, TaMeR <[EMAIL PROTECTED]> wrote: > I been trying to figure this out too. > In the admin site the forms show up automatically and if you set > something like auto_now_add=True then the field is > hidden which is nice. Why can't this be implemented on the frontend as > well? Patience,

Re: Does the server have to restarted when you make a change to the code?

2007-03-27 Thread Adrian Holovaty
On 3/27/07, walterbyrd <[EMAIL PROTECTED]> wrote: > Is that post correct? You have to restart the server whenever you make > a change to the django code? It depends on the deployment strategy you use. If you use mod_python efficiently, yes, you'll have to restart Apache between code changes. If

limit_choice_to option for related Model

2007-03-27 Thread Merric Mercer
Can somebody provide some guidance for how to use limit_choices in a Model. I am trying to only display the records in the related field that contain 4. I've tried a number of ways but keep getting a syntax error. MerMer promotion=models.OneToOneField(Promotion limit_choices_to={

Re: Storing milliseconds

2007-03-27 Thread Jeremy Dunck
On 3/27/07, Jonas Maurus <[EMAIL PROTECTED]> wrote: > > On Mar 27, 7:58 pm, "jeffhg58" <[EMAIL PROTECTED]> wrote: .. > > in the database. I am using a datetime field and when I insert the > > record the milliseconds is being truncated. > > I find that strange, because Postgres doesn't natively

Re: Displaying Related Data

2007-03-27 Thread Paul G. Barnes
That did the trick! Thanks! On 3/26/07 5:11 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > You are so close! this is a very common question. > > you want something like: > {% for school_emp in School.schoolpersonel_set.all %} > > But passing in the Model class 'School' is

Re: Retrieving a subset from a query....

2007-03-27 Thread [EMAIL PROTECTED]
Nevermind...figured it out: users = Loan.objects.filter(lender_id=lender_id).values("borrower_id").distinct() On Mar 27, 3:43 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I have a table that is something like the following > > loan_id > lender_id > borrower_id > ...other loan

Re: newbie - deploy error

2007-03-27 Thread risomt
Heres what I have: SetHandler python-program PythonHandler django.core.handlers.modpython PythonPath "sys.path + ['C:/web/html/projects/']" SetEnv DJANGO_SETTINGS_MODULE mysite.settings PythonDebug On With: DocumentRoot "C:/web/" If you dont correctly set the python path

Re: newbie - deploy error

2007-03-27 Thread Greg Donald
On 3/27/07, Frank <[EMAIL PROTECTED]> wrote: > > Do I still need to so the Location setting in httpd.conf? > > > SetHandler python-program > PythonPath "['C:\djangoapps'] + sys.path" > PythonHandler django.core.handlers.modpython > SetEnv DJANGO_SETTINGS_MODULE mysite.settings > PythonDebug On >

Models as separate files and doctest

2007-03-27 Thread [EMAIL PROTECTED]
Hi all, I've taken over a project with a lot of models (112) so I've split them into separate files to maintain my sanity (project/app/models/ ModelName.py, etc.) and everything works well...except doctest. My doctests were working with the all-models-in-one-file setup but aren't anymore--unit

Re: newbie - deploy error

2007-03-27 Thread Frank
Do I still need to so the Location setting in httpd.conf? SetHandler python-program PythonPath "['C:\djangoapps'] + sys.path" PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE mysite.settings PythonDebug On Thanks Frank - Original Message - From: <[EMAIL

Re: Dynamically List By Category

2007-03-27 Thread RajeshD
On Mar 23, 9:26 pm, "makebelieve" <[EMAIL PROTECTED]> wrote: > Ok, from a previous post I've found that the best way to list items by > a category is to use _set: > > {% for c in categories %} > {{ c }} > {% for i in c.item_set.all %} > {{ v }} > {% endfor %} >

Re: newbie - deploy error

2007-03-27 Thread [EMAIL PROTECTED]
Generally I run multiple multiple django instances on different ports - however the same should work within a location or folder (I think). Just make sure the SetEnv reflects the other application: SetEnv DJANGO_SETTINGS_MODULE myapp.settings SetEnv DJANGO_SETTINGS_MODULE myapp2.settings Sample

Re: DB Super Model (ahem)

2007-03-27 Thread dballanc
In addition to what Kyle said I've also noticed I had to 'pop' custom kwargs before passing to the super since it isn't expecting them. try: t = kwargs.pop('title') except: ... call super ... do stuff. On Mar 27, 10:20 am, "Kyle Fox" <[EMAIL PROTECTED]> wrote: > This is just a guess, but

Re: newbie - deploy error

2007-03-27 Thread frocco
I managed to get this working with these settings: SetHandler python-program PythonPath "['C:\djangoapps'] + sys.path" PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE mysite.settings PythonDebug On I still need to be able to do http://localhost/app1

populating choice in newForm instance

2007-03-27 Thread tyman26
I have a form with 2 select boxes that I load into a template. Initially the "mailing country" choice is loaded with all available countries and the "mailing states" is empty because a country hasn't been selected yet. When a user selects a "mailing country" choice, I want all the states from

Re: Forms vs. Models: Redundant?

2007-03-27 Thread dballanc
I thought the same thing at first, and ended up making my own class that bound the forms and models together (a little like form_for_model, but handles multiple 1-1 models). I thought it would save me a lot of time, but looking back I've only been able to use it on a few forms. I think the

Re: Storing milliseconds

2007-03-27 Thread Jonas Maurus
On Mar 27, 7:58 pm, "jeffhg58" <[EMAIL PROTECTED]> wrote: > I am using a postgresql database and was wondering if anyone knew how > to store milliseconds > in the database. I am using a datetime field and when I insert the > record the milliseconds is being truncated. > > Thanks, > Jeff I find

Re: Get function name after....

2007-03-27 Thread Mario Gonzalez
On Mar 27, 3:24 pm, "Mario Gonzalez" <[EMAIL PROTECTED]> wrote: > On Mar 27, 2:10 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > > > Are you using any decorators on these views? > > no, I'm not using any decorators. Now I found some weird for me return HttpResponse(str(

Re: Need to bypass login decorator

2007-03-27 Thread James Bennett
On 3/27/07, Orin <[EMAIL PROTECTED]> wrote: > I'm coding dtests for django views. I'm using mock object as django > request, but don't know how to emulate user session (session id). > Because of login decorator I can't access the other parts of my > function. The built-in Django test client can

Download Free Daily Horoscope Toolbar!

2007-03-27 Thread pritu
Download Free Daily Horoscope Toolbar! - http://surl.in/HLFDH238206SVRAKSX-g --~--~-~--~~~---~--~~ 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

Retrieving a subset from a query....

2007-03-27 Thread [EMAIL PROTECTED]
I have a table that is something like the following loan_id lender_id borrower_id ...other loan information I have a query that is by lender_id loans = Loans.objects.filter(lender_id=lender_id) My question is...from those loans...how do I retrieve a list of the unique borrowers? For example

Re: Get function name after....

2007-03-27 Thread Mario Gonzalez
On Mar 27, 2:13 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > Also, keep in mind that writing a 'process_view' method instead will > give you access to the view function the URL resolved to, and will > execute *before* the view function is actually called. That might be I changed and I've

Re: Session support

2007-03-27 Thread RajeshD
On Mar 27, 11:00 am, "SlavaSh" <[EMAIL PROTECTED]> wrote: > Is it any way to use session (django) on browsers without cookie > support ? No. See the following for why not: http://www.djangoproject.com/documentation/sessions/#session-ids-in-urls

Re: Does the server have to restarted when you make a change to the code?

2007-03-27 Thread David Zhou
On Mar 27, 2007, at 2:24 PM, walterbyrd wrote: > > I found this post on another forum: > >>> I'd fallen in love with Django, but there were deployment issues, >>> namely that the server has to be restarted every time you make a >>> change to the code (this was a big deal for my hosting

Re: Get function name after....

2007-03-27 Thread Mario Gonzalez
On Mar 27, 2:10 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > > 'resolve' returns the actual callable function in all cases, so if you > want the string name of the function you might want to access its > '__name__' attribute. > > Are you using any decorators on these views? > no, I'm not

Re: Does the server have to restarted when you make a change to the code?

2007-03-27 Thread James Bennett
On 3/27/07, walterbyrd <[EMAIL PROTECTED]> wrote: > Is that post correct? You have to restart the server whenever you make > a change to the django code? For templates, no. For changes to the actual Python code in use, generally yes. The reason for this is that, under both mod_python and

Re: Forms vs. Models: Redundant?

2007-03-27 Thread Tim Chase
>> django.newforms.models.form_for_model >> django.newforms.models.form_for_instance > > Is there a example use for this somewhere? I am new ... You can find some demo code at http://www.djangosnippets.org/tags/form_for_model/ And as always, it's just Python, so you can read the code in

Re: newbie - deploy error

2007-03-27 Thread frocco
I forgot to say I am on Windows XP On Mar 27, 2:36 pm, "frocco" <[EMAIL PROTECTED]> wrote: > Hello, > > I am new to Python and dJango. > I am trying to get the tutorial gtd to run on Apache. > I installed mod_python and placed gtd directory into htdocs directory. > I do not understand how to

Re: Forms vs. Models: Redundant?

2007-03-27 Thread TaMeR
On Mar 27, 2:36 pm, Tim Chase <[EMAIL PROTECTED]> wrote: > django.newforms.models.form_for_model > django.newforms.models.form_for_instance Is there a example use for this somewhere? I am new ... --~--~-~--~~~---~--~~ You received this message because you are

Re: Does the server have to restarted when you make a change to the code?

2007-03-27 Thread TaMeR
For some changes I do have to restart the server but I haven't figured out which once yet --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

newbie - deploy error

2007-03-27 Thread frocco
Hello, I am new to Python and dJango. I am trying to get the tutorial gtd to run on Apache. I installed mod_python and placed gtd directory into htdocs directory. I do not understand how to resolve this. I goal is to run multiple apps in apache. ecample: http://localhost/app1

Re: Forms vs. Models: Redundant?

2007-03-27 Thread TaMeR
I been trying to figure this out too. In the admin site the forms show up automatically and if you set something like auto_now_add=True then the field is hidden which is nice. Why can't this be implemented on the frontend as well? --~--~-~--~~~---~--~~ You

Re: Forms vs. Models: Redundant?

2007-03-27 Thread Tim Chase
> Why can't a form be instantiated automatically when passed a > model (maybe with flags for which fields are enabled)? Or > better yet, bind the form to a model (or model instance), You mean like: django.newforms.models.form_for_model django.newforms.models.form_for_instance I'm not sure

Does the server have to restarted when you make a change to the code?

2007-03-27 Thread walterbyrd
I found this post on another forum: >>I'd fallen in love with Django, but there were deployment issues, namely that >>the server has to be restarted every time you make a change to the code (this >>was a big deal for my hosting provider).<< http://snook.ca/archives/php/cakephp_initial/ Is

Forms vs. Models: Redundant?

2007-03-27 Thread Ben Stahl
Aren't you duplicating information with the newforms, violating the DRY principle? What I mean is, aren't we separately creating most or all of the same fields for a form as for the model whose data will be bound to the form? Why can't a form be instantiated automatically when passed a model

Re: Debugging Django: print statements?

2007-03-27 Thread TaMeR
Hello coders, I found this debug tool for Django at djangosnippets.org and was wondering if I could get some help for that. Even know I have DEBUG = True and TEMPLATE_DEBUG = DEBUG set in the Django Settting.py in my template this: {% if debug %} or this: {% if DEBUG %} is not set at all.

Re: Get function name after....

2007-03-27 Thread James Bennett
On 3/27/07, Mario Gonzalez <[EMAIL PROTECTED]> wrote: > class AuthorizedMiddleware(object): > > def process_request(self, request): > return HttpResponse(str( resolve(request.path)[0].__name__ )) Also, keep in mind that writing a 'process_view' method instead will give you access to

Re: huge number of SQL queries doing get_profile( )...

2007-03-27 Thread [EMAIL PROTECTED]
I ran into this problem as well. Specificly I changed the default __str__ on user objects to use data in the profile extension and made other changes for the BIO/etc. In the end I came up with the same solution it looks like you have. I used a cache to cache the value. I went so farr as to use

Re: Get function name after....

2007-03-27 Thread James Bennett
On 3/27/07, Mario Gonzalez <[EMAIL PROTECTED]> wrote: > however always I've got a "_wrapped_view" name. Is there a way to > find out, for example if my request.path is one/ to get app_one.idex > as a string? 'resolve' returns the actual callable function in all cases, so if you want the string

Storing milliseconds

2007-03-27 Thread jeffhg58
I am using a postgresql database and was wondering if anyone knew how to store milliseconds in the database. I am using a datetime field and when I insert the record the milliseconds is being truncated. Thanks, Jeff --~--~-~--~~~---~--~~ You received this

Get function name after....

2007-03-27 Thread Mario Gonzalez
Hello, I'm trying to know the callback name after a resolve process from django.conf import settings from django.http import HttpResponse from django.core.urlresolvers import resolve class AuthorizedMiddleware(object): def process_request(self, request): return HttpResponse(str(

Re: any django host in UK?

2007-03-27 Thread Cam McVey
Hi Kamil, Does the servers need to be in the UK or just the company? Webfaction (www.webfaction.com) is a UK-based company but the servers are based in the USA. EXCELLENT host, by the way -- really have their head around Django (and other types of) hosting. Regards, Cam On 3/27/07, kamil

Re: huge number of SQL queries doing get_profile( )...

2007-03-27 Thread Bram - Smartelectronix
Bram - Smartelectronix wrote: > 2. in the profile I'm generating some data, for example, the user's > avatar filename will use self.user.username to create the avatars path, > which will do yet another query (select ... from auth_user)! Replying -partly- to my own message, this slightly lowers

any django host in UK?

2007-03-27 Thread kamil
Hi. Somebody knows if is there any hosting provider in UK who supports django? thanx. Kamil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

huge number of SQL queries doing get_profile( )...

2007-03-27 Thread Bram - Smartelectronix
Hello everyone, I've noticed that when I look at the queries output of my app, I'm getting a LOT of repeating queries and a lot of queries that aren't needed at all. For example, I have a list of users, ordered by a certain property and paginated: qs =

Re: DB Super Model (ahem)

2007-03-27 Thread Kyle Fox
This is just a guess, but could it be because you're calling .save() (defined in models.Model) before calling __init__() on the superclass? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Database migration

2007-03-27 Thread [EMAIL PROTECTED]
Thanks... I think I can handle that. If not, I can always roll it back. On Mar 26, 6:36 pm, "Honza Král" <[EMAIL PROTECTED]> wrote: > On 3/27/07, Jonas Maurus <[EMAIL PROTECTED]> wrote: > > > > > > > On Mar 26, 11:10 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > > wrote: > > > I apologize for

Session support

2007-03-27 Thread SlavaSh
Is it any way to use session (django) on browsers without cookie support ? --~--~-~--~~~---~--~~ 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

How to use xmlrpclib Server with django unit testing

2007-03-27 Thread meledictas
I have tested using xmlrpclib and got connection refused. Thank --~--~-~--~~~---~--~~ 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: filters/sql

2007-03-27 Thread RajeshD
> I can do pretty much any part of the filtering by itself and it works, > just not all together like I need it. What's the correct way to do > this sort of a query/filter? 1. What does your model for Message look like? 2. Where in your code are you trying to add more filtering? In a view?

Re: Nested Sets for trees - any models been made before?

2007-03-27 Thread Jonas Maurus
On Mar 27, 2:10 pm, "Nathan Harmston" <[EMAIL PROTECTED]> wrote: > HI, > > Currently I am trying to store a "tree" in a database and want to use Nested > Sets in order to do this. I was wondering if this exists within Django atm > or if there are plans to add it in the future or has someone

DB Super Model (ahem)

2007-03-27 Thread Tom Smith
I'd like to be able to "catch" when creating a new object... fix a few things up then let the normal thing happen... for example... class myObj(models.model): def __init__(self, **kwargs): t = kwargs['title'] t =

Re: Nested Sets for trees - any models been made before?

2007-03-27 Thread Steven Armstrong
Nathan Harmston wrote on 03/27/07 14:10: > HI, > > Currently I am trying to store a "tree" in a database and want to use Nested > Sets in order to do this. I was wondering if this exists within Django atm > or if there are plans to add it in the future or has someone developed it on > the side?

Re: Nested Sets for trees - any models been made before?

2007-03-27 Thread Atilla
> Currently I am trying to store a "tree" in a database and want to use Nested > Sets in order to do this. I was wondering if this exists within Django atm > or if there are plans to add it in the future or has someone developed it on > the side? If the answer to these questions is "NO", is there

Nested Sets for trees - any models been made before?

2007-03-27 Thread Nathan Harmston
HI, Currently I am trying to store a "tree" in a database and want to use Nested Sets in order to do this. I was wondering if this exists within Django atm or if there are plans to add it in the future or has someone developed it on the side? If the answer to these questions is "NO", is there a

Re: fcgi - issues

2007-03-27 Thread Atilla
On 26/03/07, David M. Besonen <[EMAIL PROTECTED]> wrote: > > are there any issues/caveats/problems around using django + fcgi? > > i'm guessing there might things to be wary of, given that > mod_python appears more prominently in the installation > instructions. > > > thanks, > david I am using

Re: Illegal mix of collations

2007-03-27 Thread Atilla
On 26/03/07, Gerard M <[EMAIL PROTECTED]> wrote: > > Hello dear django comunnity, Im having a bad time with my database in > MySQL the problem is that when I try to store a word with some "rare" > characters like á é í and many others, django shows this message to > me > > OperationalError at

Re: django admin ordering by last modified

2007-03-27 Thread Gilhad
On Tuesday 27 March 2007 04:28, damacy wrote: > hi, there. > > i have a problem with the django admin site. > > i have a table called 'players' which consists of the following > fields; > 'lastname', 'firstname' and 'lastmodified'. > and i have defined the ordering of the table by > ordering =

Re: Problem with get_current_user via middleware

2007-03-27 Thread Gilhad
On Tuesday 27 March 2007 10:28, Gilhad wrote: > > the default value is a callable, its not a value... I use exactly this > > and it work very well for me... > > I agree that there is duplicity (why specify a default if you override > > it in save() ), but that shouldn't matter > > The idea is,

Re: Problem with get_current_user via middleware

2007-03-27 Thread Gilhad
> > the default value is a callable, its not a value... I use exactly this > and it work very well for me... > I agree that there is duplicity (why specify a default if you override > it in save() ), but that shouldn't matter The idea is, that new object 'Vykon' came prefilled, but in the admin

Re: newbie on django 0.96

2007-03-27 Thread johna
Joe Thanks for the info. I'm going to redo the tutorial and see where I get. John On Mar 27, 4:33 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > < > match the new templates and context variables. Change the template > > call from polls/detail.html to polls/poll_detail.html, and pass

Re: newbie on django 0.96

2007-03-27 Thread johna
Thanks for the time to reply. I installed django by copyong the packahe into site-packages. The w2k box uses ntfs and is just a local pc. No network setup except internet connection. I think what I will do is start clean and redo the tuturial. I'm still not too clear about what to pass for the

clearing related manager cache

2007-03-27 Thread shaunc
In a many-to-one relationship (ie reverse of ForeignKey), an instance has a related manager that (apparently) caches its relatees, at least in some circumstances. Is it possible to clear this cache? This would be useful in the following scenario: class Foo( Model ): pass class Bar( Model