sending pickled data to other users

2008-05-29 Thread stuntgoat
I generate forms based on a modelform that references primary keys from different models in my app. A nested tuple is used to reference these primary keys; the modelform can reference these primary keys along with other values submitted from the form. I want to send pickled data of a nested tupl

Re: problem with installing Django

2008-05-29 Thread Arki
10x! On May 27, 5:05 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Tue, May 27, 2008 at 5:14 AM, Arki <[EMAIL PROTECTED]> wrote: > > > hi, i'm new to web frameworks, (but have several years of experience > > in c,c++) > > I followed the "How to install Django" guide, i'm working under > > Wi

Help with request encoding (again)

2008-05-29 Thread John M
I've run into some more trouble with what I think is an encoding issue? I am writting a bittorrent tracker, and one of the GET parameters that is passed is called info_hash, which is a lengthy / escaped hex string, for example: GET /announce?info_hash=%EByXm%C5%7EmfD%D8%9A%91%D4%F7%C7%86%C7%D18%

Re: Sydney - Django Contracts - Mobile/Web Dev

2008-05-29 Thread Ben Ford
Hi Glen, Have you tried posting this on djangogigs.com..? You might get a wider readership there :-) Ben 2008/5/29 Wunderkind <[EMAIL PROTECTED]>: > > Hi, > > A client of mine located in North Sydney is looking for a couple of > contractors who have experience developing in Django and who will

Re: Use variables inside an 'include' tag (and/or: how to set a variable in a template)

2008-05-29 Thread Berco Beute
Inclusion tags sound good, but I'm not sure how it could solve my problem. In my template I would like to use an inclusion tag this way: ###template {% showTag 'tagName' %} ###inclusion tag @register.inclusion_tag('tag.html') def showTag(tagname): #... ###tag.html bla But ho

Re: list index out or range,getting rss feed urls out of db

2008-05-29 Thread sebastian stephenson
well umm. can I add urls though the admin interface? On 28 May 2008, at 19:42, Eric Abrahamsen wrote: > > What I was originally suggesting you do (which of course might not > turn out to be the best solution) is use feedparser to read feed urls, > and save those feeds into your database. That way

Re: list index out or range,getting rss feed urls out of db

2008-05-29 Thread Eric Abrahamsen
Sure. Add instances of your Feed class in the admin. Then in your standalone script, the one that runs under your regular django environment, do this: from ubermicro.shows.models import Feed feeds = Feed.objects.all() for feed in feeds: f = feedparser.parse(feed.link) for item in f

Session logout behaviour

2008-05-29 Thread Louis Cordier
>From http://www.djangoproject.com/documentation/sessions/ it follows, Clearing the session table = ... To understand this problem, consider what happens when a user uses a session. When a user logs in, Django adds a row to the django_session database table. Django updates this ro

Re: Session logout behaviour

2008-05-29 Thread Scott Moonen
Louis, there is some value in retaining the session past logout. The decision of what session data to keep/destroy is best left to the application. For any application that allows both anonymous and authenticated access, any site settings that you are able to set as an anonymous user (e.g., font

time and attendance management system

2008-05-29 Thread sesh
i want to make time and attendance management system but how i make data base for employees for thisits realy argent --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, sen

time and attendance management system

2008-05-29 Thread sesh
hi...related to the same problem i also have to designe forms,reports and tables for ma data base ...will plz guide me thAnks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Re: list index out or range,getting rss feed urls out of db

2008-05-29 Thread sebastian stephenson
great thats helpful thanks On 29 May 2008, at 10:29, Eric Abrahamsen wrote: > > Sure. Add instances of your Feed class in the admin. Then in your > standalone script, the one that runs under your regular django > environment, do this: > > from ubermicro.shows.models import Feed > > feeds = Feed.o

Re: put columns in rows

2008-05-29 Thread Alessandro Ronchi
Tim Chase ha scritto: >> I want to show my query results in rows instead of columns in >> an html page, but I don't know if it's possible in templates, >> because of >> 12 >> 34 >> structure >> >> how can I do? > > I've solved this in the past by creating this filter: > > ===

Re: time and attendance management system

2008-05-29 Thread Guillaume Lederrey
Your question is very general, so it is difficult to give you a meaningful answer ... If you give us a much more precise description of your problem, or if you ask much more specific questions, you might get a useful answer. Here is a probably completely off-topic answer : You will make your emp

[Latest Funny Video] Why you should have insurance -- www.unlimitedfun.net

2008-05-29 Thread UnlimitedFun
Superb Video... Why you should have insurance By  UnlimitedFun --~--~-~--~~~---~--~~ 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 un

[Latest Funny Video] Why you should have insurance -- www.unlimitedfun.net

2008-05-29 Thread UnlimitedFun
Superb Video... Why you should have insurance By  UnlimitedFun --~--~-~--~~~---~--~~ 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 un

[Latest Funny Video] Insurance Ad -- www.unlimitedfun.net

2008-05-29 Thread UnlimitedFun
Superb Video... Insurance Ad By  UnlimitedFun --~--~-~--~~~---~--~~ 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 th

[Latest Funny Video] Woman changing Tyre -- www.unlimitedfun.net

2008-05-29 Thread UnlimitedFun
Superb Video... Woman changing Tyre By  UnlimitedFun --~--~-~--~~~---~--~~ 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

[Latest Funny Video] Woman changing Tyre -- www.unlimitedfun.net

2008-05-29 Thread UnlimitedFun
Superb Video... Woman changing Tyre By  UnlimitedFun --~--~-~--~~~---~--~~ 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

[Latest Funny Video] Insurance Ad -- www.unlimitedfun.net

2008-05-29 Thread UnlimitedFun
Superb Video... Insurance Ad By  UnlimitedFun --~--~-~--~~~---~--~~ 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 th

[Latest Funny Video] Little dancer -- www.unlimitedfun.net

2008-05-29 Thread UnlimitedFun
Superb Video... Little dancer By  UnlimitedFun --~--~-~--~~~---~--~~ 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 t

[Latest Funny Video] Little dancer -- www.unlimitedfun.net

2008-05-29 Thread UnlimitedFun
Superb Video... Little dancer By  UnlimitedFun --~--~-~--~~~---~--~~ 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 t

[Latest Funny Video] Apple i-Phone -- www.unlimitedfun.net

2008-05-29 Thread UnlimitedFun
Superb Video... Apple i-Phone By  UnlimitedFun --~--~-~--~~~---~--~~ 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 t

[Latest Funny Video] Apple i-Phone -- www.unlimitedfun.net

2008-05-29 Thread UnlimitedFun
Superb Video... Apple i-Phone By  UnlimitedFun --~--~-~--~~~---~--~~ 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 t

[Best 100 Funny Videos] Sometimes Comedy leads to Tragedy -- www.unlimitedfun.net

2008-05-29 Thread UnlimitedFun
Superb Video... Sometimes Comedy leads to Tragedy By  UnlimitedFun --~--~-~--~~~---~--~~ 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 T

[Best 100 Funny Videos] Sometimes Comedy leads to Tragedy -- www.unlimitedfun.net

2008-05-29 Thread UnlimitedFun
Superb Video... Sometimes Comedy leads to Tragedy By  UnlimitedFun --~--~-~--~~~---~--~~ 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 T

[Best 100 Funny Videos] Yuvi's 666666 -- www.unlimitedfun.net

2008-05-29 Thread UnlimitedFun
Superb Video... Yuvi's 66 By  UnlimitedFun --~--~-~--~~~---~--~~ 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 t

[Best 100 Funny Videos] Yuvi's 666666 -- www.unlimitedfun.net

2008-05-29 Thread UnlimitedFun
Superb Video... Yuvi's 66 By  UnlimitedFun --~--~-~--~~~---~--~~ 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 t

[Best 100 Funny Videos] Super fly -- www.unlimitedfun.net

2008-05-29 Thread UnlimitedFun
Superb Video... Super fly By  UnlimitedFun --~--~-~--~~~---~--~~ 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

[Best 100 Funny Videos] Super fly -- www.unlimitedfun.net

2008-05-29 Thread UnlimitedFun
Superb Video... Super fly By  UnlimitedFun --~--~-~--~~~---~--~~ 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

Re: Use variables inside an 'include' tag (and/or: how to set a variable in a template)

2008-05-29 Thread Berco Beute
I can surely pass the path variable into the context from within my view, but the view doesn't know which filename to include. So in the template, I would still have to combine path and filename when creating an include tag such as: {% include "dir/tag.html" %} But how can I combine the path 'di

Re: Error while importing URLconf '{{ project_name }}.urls'...

2008-05-29 Thread nib
Karen, Thanks for your reply. First, I am new to this and I did not make any change to the install per the tutorial I referenced above. Now, to your suggestion. This is my urls.py file: from django.conf.urls.defaults import * urlpatterns = patterns('', # Example: # (r'^CSP/', include('

Re: Help with request encoding (again)

2008-05-29 Thread Karen Tracey
On Thu, May 29, 2008 at 3:54 AM, John M <[EMAIL PROTECTED]> wrote: > > I've run into some more trouble with what I think is an encoding > issue? > > I am writting a bittorrent tracker, and one of the GET parameters that > is passed is called info_hash, which is a lengthy / escaped hex > string, fo

Re: time and attendance management system

2008-05-29 Thread Tim Chase
> hi...related to the same problem i also have to designe > forms,reports and tables for ma data base ...will plz guide me It's a fairly trivial process so I will guide you: 1) get a server (I recommend Debian GNU/Linux) 2) install the following: Python Django a web-server such as Apac

Re: time and attendance management system

2008-05-29 Thread Eric Wertman
This should go in an FAQ somewhere. I really like it. On Thu, May 29, 2008 at 10:06 AM, Tim Chase <[EMAIL PROTECTED]> wrote: > >> hi...related to the same problem i also have to designe >> forms,reports and tables for ma data base ...will plz guide me > > It's a fairly trivial process so I will

Re: Just getting started

2008-05-29 Thread Eric Wertman
This is an interesting and I think pretty common problem. There are a lot of potential solutions, depending. Personally, I would design the field app separately, and define a strict export format for it. This way, you can feed it back in later when you can in just about any way you choose (via

how to config the Mnemosyn

2008-05-29 Thread Qiang
anyone can tell me how to config the follow settings in Mnenosyn,the personal wiki. if i put the Mnemosyne in the folder : D:/Mnemosyne MNEMOSYNE_SETTINGS[ 'path' ] = 'mnemosyne' MNEMOSYNE_SETTINGS[ 'media_url'] = MEDIA_URL i am so confused about that. thanks the Mnemosyne:http://mnemosyne.simon

Re: Help with request encoding (again)

2008-05-29 Thread John M
Karen, Thanks for the response, but I'm unable to unquote the strings as django does it automatically for me when I get the GET list entries. I've tried to run it from django, insert an assert false and give you the answer Here's the URL that was entered: http://127.0.0.1:8000/announce/?info_ha

Just getting started

2008-05-29 Thread jfinke
Hi everyone, I am just getting started in Django. I have run through most of the tutorial at this point. I played some with TG back when it was getting started, so I am familiar with MVC. I just got irritated that they were constantly changing stuff. I have a project in mind and I was wonderi

Re: Error while importing URLconf '{{ project_name }}.urls'...

2008-05-29 Thread Marco Buttu
On Thu, 2008-05-29 at 06:56 -0700, nib wrote: > As you can see there is not reference to {{ project_name }}.urls in > this file, there is a reference in settings.py, I changed it to: > ROOT_URLCONF = 'CSP.urls' > > but now I get the same error as above but with this reference: > Error while impo

Re: Just getting started

2008-05-29 Thread Richard Dahl
I have been working on an app that enables the completion of IT security assessments. A version of it that I used 2 years ago did allow remote completion of the assessments and I faced this same problem. I was not comfortable using the django development server locally (primarily because of the s

Re: Error while importing URLconf '{{ project_name }}.urls'...

2008-05-29 Thread nib
it is ROOT_URLCONF = 'csp.urls' in the settings.py file. Caps locks must have been on when I typed those 3 letters. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

Sorl Thumbnail, automatically create in admin

2008-05-29 Thread Josh.MIPS
I am working on integrating django with a legacy PHP application. Saving images, and thumbnails through the admin interface is an essential part of the project I am working on. Sorl-thumbnail (as I understand) only creates thumbnails once they are called from within a template, but because of the

Sex video!

2008-05-29 Thread IamSEXY
http://rozrywka.yeba.pl/show.php?id=1945 http://rozrywka.yeba.pl/show.php?id=2081 --~--~-~--~~~---~--~~ 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.co

Re: Help with request encoding (again)

2008-05-29 Thread Karen Tracey
On Thu, May 29, 2008 at 10:16 AM, John M <[EMAIL PROTECTED]> wrote: > > Karen, > > Thanks for the response, but I'm unable to unquote the strings as > django does it automatically for me when I get the GET list entries. > Oh right, sigh, Django has already helpfully done the un-qoting and convert

Re: Just getting started

2008-05-29 Thread jfinke
Interesting ideas guys. Thanks for the insight! The google gears idea sounds interesting... But, like you said, you are pretty much dropping django. I don't know how big of a deal that is? What type of customization on the back end needs to take place to take the advantage of GG. Richard, thi

Re: Error while importing URLconf '{{ project_name }}.urls'...

2008-05-29 Thread Karen Tracey
On Thu, May 29, 2008 at 11:15 AM, nib <[EMAIL PROTECTED]> wrote: > > it is ROOT_URLCONF = 'csp.urls' in the settings.py file. Caps locks > must have been on when I typed those 3 letters. > And is your directory lowercase 'csp' as well? Case matters. I'm confused how your settings file had: RO

WebFaction memories

2008-05-29 Thread didier rano
Hi all, I am trying to evaluate to migrate from Site5 hosting to WebFaction. I have some problems with Site5 to compile some third-parties tools like scipy (subversion) and dependances. But I don't have ideas about memories size with WebFaction. In shared hosting, it is possible to use from 86 Mb

Re: put columns in rows

2008-05-29 Thread Tim Chase
>> Hope this helps, >> >> -tim >> >> [1] >> http://www.djangoproject.com/documentation/templates_python/#writing-custom-template-filters > > I have two questions. > > 1) I cannot find where must I write the register of the filter Details on creating your own filters are at the writing-custom-t

Re: time and attendance management system

2008-05-29 Thread Guillaume Lederrey
I'm afraid you missed step 7 : 7) profit ! 2008/5/29 Tim Chase <[EMAIL PROTECTED]>: > >> hi...related to the same problem i also have to designe >> forms,reports and tables for ma data base ...will plz guide me > > It's a fairly trivial process so I will guide you: > > 1) get a server (I recomme

Re: Getting mod_python working

2008-05-29 Thread Jeff Gentry
Hi there ... In case anyone comes across this in the future, I solved the problem. libpq wasn't getting picked up by the process, all's well now. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" gr

get_or_create() error on synchronous calls from multiple instances

2008-05-29 Thread Brent Noorda
The get_or_create() or convenience method is doing this behavior: 1) try: 2) return self.get(), False 3) except self.model.DoesNotExist: 4) . . . 5) obj = self.model(...) 6) obj.save() 7) return obj, True But what if (on a heavy system with many clients) the recor

I cannot get Django to process files.

2008-05-29 Thread Eric
I simply cannot get this to work. I am attempting to run Python/Django on Apache/Windows. When I run the mpinfo it shows the mod_python service is available, but i cannot even view the most simple example shown in the online book (current_datetime view). I am using the basic installation (ie my p

Re: Help with request encoding (again)

2008-05-29 Thread John M
Ill give that a try, but seems like I'm working against the framework doesn't it? I could swear I was able to set the encoding, GET the fields I wanted and then do it another way, but I need to move on in my coding, I hope this works. J On May 29, 9:00 am, "Karen Tracey" <[EMAIL PROTECTED]> wro

Re: WebFaction memories

2008-05-29 Thread Ray Cote
At 12:38 PM -0400 5/29/08, didier rano wrote: >Hi all, > >I am trying to evaluate to migrate from Site5 hosting to WebFaction. >I have some problems with Site5 to compile some third-parties tools >like scipy (subversion) and dependances. > >But I don't have ideas about memories size with WebFact

Re: WebFaction memories

2008-05-29 Thread didier rano
Thanks a lot. WebFaction seems to be a valuable django hosting. Someone have some experiences to compile scipy and dependances on WebFaction hosting ? 2008/5/29, Ray Cote <[EMAIL PROTECTED]>: > > At 12:38 PM -0400 5/29/08, didier rano wrote: > >> Hi all, >> >> I am trying to evaluate to migrate

Re: get_or_create() error on synchronous calls from multiple instances

2008-05-29 Thread Karen Tracey
On Thu, May 29, 2008 at 1:39 PM, Brent Noorda <[EMAIL PROTECTED]> wrote: > The get_or_create() or convenience method is doing this behavior: > > 1) try: > 2) return self.get(), False > 3) except self.model.DoesNotExist: > 4) . . . > 5) obj = self.model(...) > 6) obj.sav

i18n issues.

2008-05-29 Thread Jack M.
Hello, all. Forgive me as I'm still fairly new to django, but I'm having some issues getting i18n running, and I can't seem to find any help in the online docs. I've read chapter 18 (i18n) of djangobook.com, and chapter 10 relating to RequestContext. I've also read the docs on djangoproject.com

Re: I cannot get Django to process files.

2008-05-29 Thread Karen Tracey
On Thu, May 29, 2008 at 1:40 PM, Eric <[EMAIL PROTECTED]> wrote: > > I simply cannot get this to work. I am attempting to run Python/Django > on Apache/Windows. When I run the mpinfo it shows the mod_python > service is available, but i cannot even view the most simple example > shown in the onlin

order_by foreign key problem

2008-05-29 Thread robstar
Hey guys, I read through some of the threads here, but still can't get this simple scenario to work.. DB name: gcdb class Item(models.Model): hits= models.IntegerField(default=0) class Gear(models.Model): generic_info= models.OneToOneField(Item) Should this work?? res

Re: Help with request encoding (again)

2008-05-29 Thread Karen Tracey
On Thu, May 29, 2008 at 1:16 PM, John M <[EMAIL PROTECTED]> wrote: > Ill give that a try, but seems like I'm working against the framework > doesn't it? > Nah, working against the framework would be rooting around in undocumented internal data structures to get the data you are looking for. HttpR

Re: Django and Comma-Formatting Numbers

2008-05-29 Thread David
I had need of commas in floating-point numbers, and slightly modified humanize.py with a floatcomma function: def floatcomma(value): """ Converts a float to a string containing commas every three digits. For example, 3000.65 becomes '3,000.65' and -45000.00 becomes '-45,000.00'. "

Re: I cannot get Django to process files.

2008-05-29 Thread Eric
Wow. That fixed it. Thank you! I didn't realize I was so close. I obviously have a bit to learn about Django (and Apache). This should help get me started. On May 29, 10:56 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Thu, May 29, 2008 at 1:40 PM, Eric <[EMAIL PROTECTED]> wrote: > > > I s

Re: Error while importing URLconf '{{ project_name }}.urls'...

2008-05-29 Thread nib
OK, I put ROOT_URLCONF = {{ project_name }}.urls back in the c: \python25\Lib\site-packages\django\conf\project_template\settings.py file. I then create a new package - jrl. I then tried to access the admin site and I got a DATABASE_ENGINE not set error. I set the DATABASE_ENGINE to 'SQLite3' and

Re: Help with request encoding (again)

2008-05-29 Thread John M
Well, either way, thank you so much for helping me on this. The more I dive into the framework and more so, Python, the more I know i've made the right choice. John On May 29, 11:15 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Thu, May 29, 2008 at 1:16 PM, John M <[EMAIL PROTECTED]> wrote

Re: Django and Comma-Formatting Numbers

2008-05-29 Thread James Bennett
On Thu, May 29, 2008 at 1:15 PM, David <[EMAIL PROTECTED]> wrote: > I had need of commas in floating-point numbers, and slightly modified > humanize.py with a floatcomma function: > > def floatcomma(value): >""" >Converts a float to a string containing commas every three digits. >For e

Re: Error while importing URLconf '{{ project_name }}.urls'...

2008-05-29 Thread Karen Tracey
On Thu, May 29, 2008 at 2:23 PM, nib <[EMAIL PROTECTED]> wrote: > OK, I put ROOT_URLCONF = {{ project_name }}.urls back in the c: > \python25\Lib\site-packages\django\conf\project_template\settings.py > file. Er...this is the settings file you've been editing? This one is not intended to be edi

ModelChoiceField, Cascading Selections

2008-05-29 Thread Adi
I have a form that has three fields 1. State 2. League 3. School The model for League has a foreign Key into the model for State The model for School has a foreign Key into the model for League The user is supposed to chose the state first (which is USStateField), then the list of League is supp

Re: ModelChoiceField, Cascading Selections

2008-05-29 Thread Richard Dahl
Two options I can think of quickly: 1. in the __init__ of the form, see if a value has been passed in for the League and School and only if there is none, create the queryset as described. 2. Do not use a model form to create the initial form, just use a simple template and the javascript you have

Re: order_by foreign key problem

2008-05-29 Thread Richard Dahl
http://www.djangoproject.com/documentation/db-api/ contains the info you want. Try this: Gear.objects.select_related().order_by('generic_info__hits') you could also set the order_by in the Meta of Item to hits and then you could just do: Gear.objects.select_related().order_by('generic_info') ht

Re: WebFaction memories

2008-05-29 Thread Pigletto
> Someone have some experiences to compile scipy and dependances on WebFaction > hosting ? For me, the biggest problem at Webfaction (but not only there) is limited memory size. But if you have so small traffic then 85 MB of memory should be enough, especially if you set up your django with mod_ws

local import or not for django apps?

2008-05-29 Thread Milan Andric
http://code.google.com/p/django-survey/issues/detail?id=9&can=1 Anyone happen to have a strong opinion on this? Should django applications use local imports or package based imports? Sorry if this has been mulled over a million times. pasting conversation here: Comment 2 by doug.napoleone, To

Re: Use variables inside an 'include' tag (and/or: how to set a variable in a template)

2008-05-29 Thread Johannes Dollinger
You could use a filter: @register.filter(name='concat') def concat(value, arg): return "%s%s" % (value, arg) and then {% include dir|concat:"/tag.html" %}. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Re: Some strange "cache" behavior

2008-05-29 Thread Fabien
Hello >> I've tried with never_cache, but it doesn't work. The strange thing is >> that today, I've added a new blog post, which was immediately visible >> from the post list and post details. But some hours later it >> disappears until I restart Apache. I really don't understand where the >> pro

Creating a request object + middleware benefits

2008-05-29 Thread Peter
I'm looking for a quick and simple way to create a request object - as it would be received by a specific view - for some very basic testing. Additionally, I want this object to have all the added attributes from the middleware modules e.g. request.user. I tried this: (1) I looked at django.htt

Re: order_by foreign key problem

2008-05-29 Thread robstar
Oops, I had the ' ' in there somewhere in all my different iterations of trying to make this work .. so the query works, but I can't access the object in the template, or from the shell for that matter. Does something change by doing this type of query? On the shell: >>> gear = Gear.objects.se

Re: order_by foreign key problem

2008-05-29 Thread robstar
Oops, I had the ' ' in there somewhere in all my different iterations of trying to make this work .. so the query works, but I can't access the object in the template, or from the shell for that matter. Does something change by doing this type of query? On the shell: >>> gear = Gear.objects.se

Re: order_by foreign key problem

2008-05-29 Thread Richard Dahl
I am not sure what is going on, however I wonder if it has something to do with the OneToOne relationship, I do not use onetoone myself but notice in the following from the db-api documentation: Note that the select_related() QuerySet method recursively prepopulates the cache of all one-to-many re

Modelform FileField

2008-05-29 Thread Bruce Dockeray
I have a modelform bound to a table. One of the fields in the table is a FileField. I able to upload files using the modelform and this works well. Once i have uploaded a file if i look at the database record using the modelform the FileField continues to display as a file upload widget a

Re: i18n issues.

2008-05-29 Thread Ramiro Morales
Jack, On Thu, May 29, 2008 at 2:51 PM, Jack M. <[EMAIL PROTECTED]> wrote: > > [...] > > Used make-message.py -l sp to generate the Spanish language files. Why are you using "sp" for Spanish?. You should be using "es" as that's the two-letter code for the spanish language used both by the gettex

Re: order_by foreign key problem

2008-05-29 Thread Johannes Dollinger
> Should this work?? > > results = Gear.objects.select_related().order_by(generic_info__hits) Quotes are missing: Gear.objects.select_related().order_by('generic_info__hits') --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: local import or not for django apps?

2008-05-29 Thread Gregor Müllegger
I also think that apps should live in somewhere in your python path. But if you can use Python 2.5 for your django projects you could also write imports in the following style. from . import spam This imports the module "spam" from the folder the sourcefile lives in. It's much cooler than ju

Re: order_by foreign key problem

2008-05-29 Thread Johannes Dollinger
Wah, nevermind .. Am 30.05.2008 um 01:27 schrieb Johannes Dollinger: > >> Should this work?? >> >> results = Gear.objects.select_related().order_by >> (generic_info__hits) > > Quotes are missing: > > Gear.objects.select_related().order_by('generic_info__hits') > > > > > > > --~--~-

Re: time and attendance management system

2008-05-29 Thread Graham Dumpleton
No, step 2.5 is needed. Ask on Django list why you can't get it working, especially where you couldn't be bothered to read the instructions properly. ;-) On May 30, 3:23 am, "Guillaume Lederrey" <[EMAIL PROTECTED]> wrote: > I'm afraid you missed step 7 : > > 7) profit ! > > 2008/5/29 Tim Chase <

Re: Sorl Thumbnail, automatically create in admin

2008-05-29 Thread Andrew Myers
On May 29, 11:29 am, "Josh.MIPS" <[EMAIL PROTECTED]> wrote: > Does anyone know a way to force Sorl to create > the thumbnails as soon as an object is saved in the admin interface, > rather than waiting until a thumbnail is needed in a template? You could override the model's save() method to have

Re: WebFaction memories

2008-05-29 Thread Eric Abrahamsen
A single django app running under mod_python seems to use about 20-30MB of memory no matter what, but I think that number holds pretty steady unless you're really getting a lot of traffic (and memcached will save your life no matter what). I'm running several small- to medium-sized sites o

hi

2008-05-29 Thread a7lahm
للحصول على وزن مثالي في يوم واحد ادخل هنا http://www.antya7la.com/vb/t26066.html خبر مؤسف ومؤلم اتمنى الدخووول http://www.antya7la.com/vb/t26168.html اختاري لون الصبغ اللي اناسبح ( السايت عجيب) للنساء فقط http://www.antya7la.com/vb/t26211.html السلسلة الوثائقية الشيقة Walking with Dinosaurs كا

Re: Help with request encoding (again)

2008-05-29 Thread John M
On May 29, 9:00 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Thu, May 29, 2008 at 10:16 AM, John M <[EMAIL PROTECTED]> wrote: > > > Karen, > > > Thanks for the response, but I'm unable to unquote the strings as > > django does it automatically for me when I get the GET list entries. > > Oh

Re: Help with request encoding (again)

2008-05-29 Thread John M
Well, I thought it was working, but alas, now it's not, let me give you the latest... GET /announce/?uploaded=0&compact=1&numwant=80&info_hash=%EF%BF%BDm%EF %BF%BDmfD%D8%9A%EF%BF%BD%EF%BF%BD%C7%86%EF%BF%BD8%EF%BF %BD&event=started&downloaded=0&key=yoolrpcyku&corrupt=0&peer_id=- TR1210-exbira35le7

Re: Help with request encoding (again)

2008-05-29 Thread Karen Tracey
On Thu, May 29, 2008 at 11:52 PM, John M <[EMAIL PROTECTED]> wrote: > > Well, I thought it was working, but alas, now it's not, let me give > you the latest... > > GET /announce/?uploaded=0&compact=1&numwant=80&info_hash=%EF%BF%BDm%EF > %BF%BDmfD%D8%9A%EF%BF%BD%EF%BF%BD%C7%86%EF%BF%BD8%EF%BF > %BD

How to get child model' name from parent obj in Multi-table inheritance

2008-05-29 Thread Davide.D
Multi-table inheritance model example === class Person(models.Model): name = models.CharField(maxlength=10) height = models.SmallInteger() class Man(Person): job = models.CharField(maxlength=20) class Woman(Person): ma

Re: How to get child model' name from parent obj in Multi-table inheritance

2008-05-29 Thread Davide.D
Simplify the question: I got a "person", and how to know the "person" is a "man" or a "woman" ? --~--~-~--~~~---~--~~ 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@

Problem State/City Relations

2008-05-29 Thread mimito
I have a form that has two fields (ModelChoiceField) 1. State 2. City City and State from Spain. How do to display only the cities of the state selected? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django user

Re: How to get child model' name from parent obj in Multi-table inheritance

2008-05-29 Thread [EMAIL PROTECTED]
Guess and test using try; except; statements. Alternatively, you could add a type field to Person() and overide the save fields on Man and Woman to set the type field correctly. On May 30, 1:38 am, "Davide.D" <[EMAIL PROTECTED]> wrote: > Simplify the question: > > I got a "person", and how to kn

Still a bug with OR lookups?

2008-05-29 Thread Julien
Hi, A while ago I stumbled on a bug with OR lookups, but Malcolm had apparently fixed it in the queryset-refactor branch [1]. However I've just got a similar issue. Is that still a bug or am I mis-using it? Here's my model: class Contact(models.Model): requesting_user = models.ForeignKey(Us