Re: newforms-admin replacement for core=True in inline models?

2008-02-01 Thread Karen Tracey
On Feb 1, 2008 7:52 PM, NickJ <[EMAIL PROTECTED]> wrote: > > Thanks for the response. So what code do I need to add so that, when > creating a new object, the admin doesnt try to create related fields > that are left entirely blank? I still see core=True as an option, but > it no longer does anyth

Re: Heads-down transaction-processing apps on Django

2008-02-01 Thread Tim Chase
>> Not quite as much flexibility here. HTML defines accelerator >> keys which are browser-specific (sometimes Alt+letter, sometimes >> control+letter, or other combos). > > This is perhaps the only disappointing news from your experiences. I've found this isn't quite so important as long as the

Re: FckEditor vs TinyMCE

2008-02-01 Thread Andres Vargas - zodman
im use meteora http://meteora.astrata.com.mx and work excelente for my djangoadmin interface. http://meteora.astrata.com.mx/demo/editor Cull escribió: > Thanks Jay, > > That's a huge help. Do you know if there's any code for doing text > versioning? We don't need a full blow wiki or CMS, but

DB query filter on member relations

2008-02-01 Thread [EMAIL PROTECTED]
I have a Model with two fields, a url and a title. If no title is given, it is initialized as the url (or at least the first 200 characters of the url). Is there a way to filter a DB query to get the rows that weren't initialized with a title? Something like MyModel.objects.filter(url__contain

Re: Newbie sqlite3 dbshell confusion

2008-02-01 Thread Eduardo - IdNotFound
On Feb 1, 2008 10:03 AM, bobhaugen <[EMAIL PROTECTED]> wrote: > > On Jan 31, 10:38 am, Jeff Anderson <[EMAIL PROTECTED]> wrote: > > My personal recommendation is to remove 0.96 and > > use django-svn. > > Ok, I did that. Or tried to do that, anyway. > > 1. Removed 0.96.1. > 2. did: svn co http://c

Re: Django on MacOS X Leopard

2008-02-01 Thread Shinmaikeru
It might be wise to consider separating the Python environment from Mac's Python using MacPorts. I have a recipe for installing a Django dev environ on Intel Tiger at: http://shinmaikeru.blogspot.com/. I am relatively new to Mac and Python (and Django, of course), but this was the only way to get

Re: newforms-admin replacement for core=True in inline models?

2008-02-01 Thread NickJ
Thanks for the response. So what code do I need to add so that, when creating a new object, the admin doesnt try to create related fields that are left entirely blank? I still see core=True as an option, but it no longer does anything, and I still dont understand what the solution is or will be.

Re: Conditional admin template inheritance

2008-02-01 Thread Aaron Fay
Hi again, Found the answer in the documentation (right in front of my face...) Aaron Aaron Fay wrote: > Hi List :) > > I want to be able to include some javascript on a specific automated > admin page, is there a way to just include my custom template block if > I'm editing a specific model?

Re: Heads-down transaction-processing apps on Django

2008-02-01 Thread Michael Hipp
Tim Chase wrote: Tim, thanks for taking time to respond in so much depth. You've given me enough encouragement to think we can move forward. I'm *really* tired of thick-client GUI development. >> - Data entry people use lots of F-keys, Ctrl-keys and Alt-keys to make >> things happen on the scr

Re: newforms-admin replacement for core=True in inline models?

2008-02-01 Thread Russell Keith-Magee
On Feb 2, 2008 4:32 AM, NickJ <[EMAIL PROTECTED]> wrote: > > I wanted to bump this up, because if there is no solution I think this > is an issue which needs to be rectified before it is merged to trunk. There is a solution - it just hasn't been documented yet. The oldforms 'core=True' approach

Re: Complex relationship for user profile

2008-02-01 Thread Aaron Fay
Hi Peter, I did a little more digging, and I'm not sure if my answer is in option 1 or 2... I am just using the automatic admin interface for my model at this point, with Django configured to use AUTH_PROFILE_MODULE = 'myapp.myuserprofile'.  Is it safe to assume either model is saved first,

Conditional admin template inheritance

2008-02-01 Thread Aaron Fay
Hi List :) I want to be able to include some javascript on a specific automated admin page, is there a way to just include my custom template block if I'm editing a specific model? I really like the automated admin forms, but it may be that I just have to sit down and write custom templates..

Re: Stylesheet Inheritance

2008-02-01 Thread quizkiwi
Thank you both! I was using the reference in the base template, but was missing that first /. I appreciate you time. On Feb 1, 1:18 pm, Brian Rosner <[EMAIL PROTECTED]> wrote: > > I am having trouble getting my stylesheet to appear in each html > > file. I have a base template that contains th

best solution for a tight model

2008-02-01 Thread SammyRulez
hi all I have a model made up of customers, project, works and invoices (sounds familiar? :-)) every project belongs to a customer, has many works. When I want to create a new invoice I would like to select a customer and a list of works that belongs to projects done for that customer and that

Re: Newbie trying to install django-trunk from svn on Ubuntu 7.10

2008-02-01 Thread bobhaugen
On Feb 1, 3:37 pm, Brian Rosner <[EMAIL PROTECTED]> wrote: > export PATH=/path/to/django/bin:$PATH Thank you thank you! That is what I was missing. > Also, it appears you are relying on a relative path. I would highly > recommend you adjust the PYTHONPATH and how you setup the PATH to use > an

Re: Newbie trying to install django-trunk from svn on Ubuntu 7.10

2008-02-01 Thread Brian Rosner
> With echo @PYTHONPATH > django-trunk:django-trunk/django/bin:django-trunk/django/bin/django- > admin.py > same error message. > Ok, there is a subtle difference that you are missing. PYTHONPATH and PATH. They are two completely different environment variables. PYTHONPATH is only for Python i

Re: Newbie trying to install django-trunk from svn on Ubuntu 7.10

2008-02-01 Thread bobhaugen
On Feb 1, 2:23 pm, Brian Rosner <[EMAIL PROTECTED]> wrote: > Okay, to be honest, pretend you never read that. The bottom line is > that Django only needs to be in your PYTHONPATH. By default Python > already has its site-packages directory on the PYTHONPATH which is > where this stems from. You ca

Re: how to speed up objects saving

2008-02-01 Thread Rajesh Dhawan
In addition to Ivan's suggestions above, consider disabling auto- commits and making manual transaction commits say every 100 records or so. http://www.djangoproject.com/documentation/transactions/ This will eliminate the overhead of a commit on every instance save. --~--~-~--~~-

Re: url tag and reverse()

2008-02-01 Thread Dj Gilcrease
On Feb 1, 2008 12:17 AM, Eric Abrahamsen <[EMAIL PROTECTED]> wrote: > Strange, I had thought that wasn't working, but I guess it must be. So > with that change this gets the right URL: > reverse('entry', > kwargs={'translatorName':'johndoe','entryName':'blogentry'}) > > But trying to use the entry

Re: Newbie trying to install django-trunk from svn on Ubuntu 7.10

2008-02-01 Thread Brian Rosner
On 2008-02-01 12:54:48 -0700, bobhaugen <[EMAIL PROTECTED]> said: > > Following http://www.djangoproject.com/documentation/install/ > > I'm stuck at the steps of setting up the symlinks to django. > Step 3. ln -s `pwd`/django-trunk/django SITE-PACKAGES-DIR/django > Step 4. ln -s `pwd`/django-tr

Re: Heads-down transaction-processing apps on Django

2008-02-01 Thread Tim Chase
> - Lots of data entry yes...we've got some data-entry folks that are using one of the apps I've written, pulling information off paper phone-bills (for those we can't get electronically) > - What about data entry into a web form. Data entry people use 'Enter' > to move between fields, not Ta

Newbie trying to install django-trunk from svn on Ubuntu 7.10

2008-02-01 Thread bobhaugen
Following http://www.djangoproject.com/documentation/install/ I'm stuck at the steps of setting up the symlinks to django. Step 3. ln -s `pwd`/django-trunk/django SITE-PACKAGES-DIR/django Step 4. ln -s `pwd`/django-trunk/django/bin/django-admin.py /usr/local/ bin One possible problem: not thinki

Re: newforms-admin replacement for core=True in inline models?

2008-02-01 Thread NickJ
I wanted to bump this up, because if there is no solution I think this is an issue which needs to be rectified before it is merged to trunk. As Felix noted, without core=True support, anything listed as in-line *has to be created when you create the parent object. e.g. if a Pizza can have 1+ toppi

Re: FckEditor vs TinyMCE

2008-02-01 Thread Cull
Thanks Jay, That's a huge help. Do you know if there's any code for doing text versioning? We don't need a full blow wiki or CMS, but we do want to add some versioning for our "notes." Any leads on this? On Feb 1, 1:38 pm, Jay Klehr <[EMAIL PROTECTED]> wrote: > It's certainly possible to im

Re: ForeignKey displaying related values

2008-02-01 Thread Rajesh Dhawan
Hi, > I am new to django, please excuse any naivity. Welcome to Django :) > I would like to list > child and related parent records from the scenario below. Although > quite happily displaying ChildFile records, I can't seem to display > any ParentFile records. > > models.py > class ParentFile(

Heads-down transaction-processing apps on Django

2008-02-01 Thread Michael Hipp
Sorry for posting such a nebulous question... Is anyone using Django web apps as heads-down transaction processing applications that are heavy in the areas of: - Lots of data entry - Lots of "instant, right now" demands like POS A few - slightly more specific - issues: - What about data e

Re: when following along in the django book, i get a 'name 'django' is not defined' error when accessing the admin page (sorry if this is a double post)

2008-02-01 Thread Rajesh Dhawan
Hi, On Feb 1, 12:43 pm, djrocks <[EMAIL PROTECTED]> wrote: > Hi, > I think there is a simple answer to this, but I was unable to find > it.  While following along in the django book, i did the steps > necessary to activate the admin page, including uncommenting the admin > url in urls.py.  But wh

Re: FckEditor vs TinyMCE

2008-02-01 Thread Jay Klehr
It's certainly possible to implement FCK as a JS based editor, no python code necessary. It'll simply act as a textarea replacement to the user, but will still post the source of the editor when the form is submitted. Here's the integration guide for doing it this way: http://docs.fckeditor.n

Re: Stylesheet Inheritance

2008-02-01 Thread Brian Rosner
> I am having trouble getting my stylesheet to appear in each html > file. I have a base template that contains the path to the css file. > Each page that extends the base template simply adds the path of the > css file on to its current uri to get the wrong location. Is there a > way to specif

Re: Stylesheet Inheritance

2008-02-01 Thread Albert Hopkins
On Fri, 2008-02-01 at 09:57 -0800, quizkiwi wrote: > I am having trouble getting my stylesheet to appear in each html > file. I have a base template that contains the path to the css file. > Each page that extends the base template simply adds the path of the > css file on to its current uri to

Re: newforms validator_list

2008-02-01 Thread Brian Rosner
> I understand the preferred method is to create a custom form Field, > and do validation in its clean() method. However, this appears to be > lacking in a couple ways. This can be accomplished at the form level by defining a clean_FIELD method to clean the data as you see fit. The only time yo

Re: Newbie sqlite3 dbshell confusion

2008-02-01 Thread bobhaugen
On Feb 1, 11:09 am, Brett Parker <[EMAIL PROTECTED]> wrote: > On 01 Feb 08:00, bobhaugen wrote: > > > > On Feb 1, 7:45 am, Brett Parker <[EMAIL PROTECTED]> wrote: > PYTHONPATH is just an environmental variable, often if you're not > already using it it'll be empty ;) You can check it's current v

Stylesheet Inheritance

2008-02-01 Thread quizkiwi
I am having trouble getting my stylesheet to appear in each html file. I have a base template that contains the path to the css file. Each page that extends the base template simply adds the path of the css file on to its current uri to get the wrong location. Is there a way to specify the css

FckEditor vs TinyMCE

2008-02-01 Thread Cull
We're just starting to consider text editing. What is our easiest path here? TinyMce or FckEditor. The latter has been our choice previously, but is there a post somewhere that discusses who to do it? I haven't been about to find more than bits and pieces. If not, what about Tiny? Tips appreci

when following along in the django book, i get a 'name 'django' is not defined' error when accessing the admin page (sorry if this is a double post)

2008-02-01 Thread djrocks
Hi, I think there is a simple answer to this, but I was unable to find it. While following along in the django book, i did the steps necessary to activate the admin page, including uncommenting the admin url in urls.py. But when I go to http://127.0.0.1:8000/admin/, I get the following error: N

Re: Flash and Django

2008-02-01 Thread Ivan Illarionov
http://djangoamf.sourceforge.jp/index.php?DjangoAMF_en On 1 фев, 18:33, "Ronaldo Z. Afonso" <[EMAIL PROTECTED]> wrote: > Hi, > > I'm new in Django and Web development and I just want to know if it's > possible to have a flash script showing elements that was retrieve from > a data base by django?

Re: Flash and Django

2008-02-01 Thread Peter Rowell
>I just want to know if it's > possible to have a flash script showing elements that was retrieve from > a data base by django? I'm not entirely sure what you are asking, but I think the answer is: Yes. Are you asking about the flash script calling a URL, getting data back and then displaying it

Re: Flash and Django

2008-02-01 Thread Eren Türkay
On 01 Feb 2008 Fri 17:33:50 Ronaldo Z. Afonso wrote: > Hi, > > I'm new in Django and Web development and I just want to know if it's > possible to have a flash script showing elements that was retrieve from > a data base by django? > Any link or documentation would be appreciated. > Thanks. > > Ro

Re: Newbie sqlite3 dbshell confusion

2008-02-01 Thread Brett Parker
On 01 Feb 08:00, bobhaugen wrote: > > Thanks again, Brett. > > On Feb 1, 7:45 am, Brett Parker <[EMAIL PROTECTED]> wrote: > > If you're just wanting to run the latest trunk then you can just use an > > svn checkout and add that in to PYTHONPATH on the command line (you > > might also want to add

Re: Complex relationship for user profile

2008-02-01 Thread Aaron Fay
I'll try those, Peter, thanks for the response... Aaron Peter Rowell wrote: Failing a response to that one must mean I'm asking for something that is undoable. Uh, this isn't McDonald's. Slow/no response does not immediately equate to undoable. It more likely means that pe

Re: Complex relationship for user profile

2008-02-01 Thread Peter Rowell
> Failing a response to that one must mean I'm asking for something that > is undoable. Uh, this isn't McDonald's. Slow/no response does not immediately equate to undoable. It more likely means that people who might have answered the question were doing something else (watching the debate, coding

Flash and Django

2008-02-01 Thread Ronaldo Z. Afonso
Hi, I'm new in Django and Web development and I just want to know if it's possible to have a flash script showing elements that was retrieve from a data base by django? Any link or documentation would be appreciated. Thanks. Ronaldo. --~--~-~--~~~---~--~~ You

Re: Simultaneous edits

2008-02-01 Thread Michael Hipp
Filip, Thanks for your very informative explanations and ideas. I will be studying it closely. Thanks, Michael Filip Wasilewski wrote: > Hi Michael, > > On Jan 30, 6:25 pm, Michael Hipp <[EMAIL PROTECTED]> wrote: >> James Bennett wrote: >>> On Jan 30, 2008 9:18 AM, Michael Hipp <[EMAIL PROTEC

Re: Have get_profile() delegate to one of several profile models depending on type of user

2008-02-01 Thread Chris Pratt
Thanks for the responses everyone. My final approach to this issue has gone more along the lines of Ivan's response, though with a twist. I now have a generic UserProfile model which is returned by the get_profile() method. All this model stores is the foreign key to the user and a 'user_type'. I

Re: Complex relationship for user profile

2008-02-01 Thread Aaron Fay
Okay, Failing a response to that one must mean I'm asking for something that is undoable... could anyone provide an easy way to accomplish this by maybe extending the admin template or something? I'm convinced retrieving the data would be very simple, but is there a way to get it to save as

Re: how to speed up objects saving

2008-02-01 Thread Ivan Illarionov
> I'll try to redefine save methods in all the objects to see how much time it > saves You may want to redefine the __init__ methods as well (it's called when you create your objects before save), it adds overhead of two more signals that are probably unused and can be removed for speed. You ca

Re: Newbie sqlite3 dbshell confusion

2008-02-01 Thread bobhaugen
Thanks again, Brett. On Feb 1, 7:45 am, Brett Parker <[EMAIL PROTECTED]> wrote: > If you're just wanting to run the latest trunk then you can just use an > svn checkout and add that in to PYTHONPATH on the command line (you > might also want to add /bin to your PATH to get > django-admin.py there

Re: how to speed up objects saving

2008-02-01 Thread Alex M.
Thanks a lot for the advice I'll try to redefine save methods in all the objects to see how much time it saves Alex Ivan Illarionov wrote: > > > You have two options: > 1. Execute raw SQL 'INSERT' queries > 2. Override the Model.save() or create new save_fast() method in your > Model class

ForeignKey displaying related values

2008-02-01 Thread Eamon
Hello all, I am new to django, please excuse any naivity. I would like to list child and related parent records from the scenario below. Although quite happily displaying ChildFile records, I can't seem to display any ParentFile records. models.py class ParentFile(models.Model): recnum = mo

Ruyan e-cigarette e-cigarettes v8 How to eliminate harm from second cigarette

2008-02-01 Thread Karlcan
As a former smoker, I know first hand how hard it is to quit smoking. My many efforts to stop failed until I was truly ready to quit. Whatever works is fair game in my book. The new e-cigarette, available mainly in China and Europe right now, may be just the answer for many who smoke not only for

Re: newforms file-upload troubleshooting

2008-02-01 Thread birkin
Clarification: in the above two 'Relevant info' paragraphs, when I note that "the file name appears in the table's 'name' field", by 'file name' I'm referring to the optional user-supplied title of the file (i.e. 'picture of our house') as opposed to the 'filename' (i.e. 'house.png'). /birkin --~

Re: Newbie sqlite3 dbshell confusion

2008-02-01 Thread Brett Parker
On 01 Feb 05:33, bobhaugen wrote: > > Brett, > > Thanks for the info on the Ubuntu 0.96 package. I really appreciate > the replies from you, Jeff and Ramiro. Sorry to be so clueless, I'm > new to Linux and Python as well as Django. (I know it's a bad idea to > adopt more than one new technolo

Re: Looking for a security/encryption programmer for small contract

2008-02-01 Thread Tim Chase
> Emanuele, your said : As for safety, nothing is safer than OTP, but > are we sure that your customer > is able to go to great lengths to distribute long key streams over a > perfectly safe channel to the sales representatives? > > Isn't the encrypted string secure? > > The method to send the s

Re: allow user to update his record

2008-02-01 Thread Carl Karsten
Carl Karsten wrote: > Is there a built in way for users to update their own user record? > > I currently have a page that displays user data to any other user. I was > hoping > to re-use that for allowing a user to edit his own. > > If it matters, I am useing a user_profile as described: > ht

Re: Newbie sqlite3 dbshell confusion

2008-02-01 Thread bobhaugen
Brett, Thanks for the info on the Ubuntu 0.96 package. I really appreciate the replies from you, Jeff and Ramiro. Sorry to be so clueless, I'm new to Linux and Python as well as Django. (I know it's a bad idea to adopt more than one new technology at a time, but I got no choice, gotta plunge i

Re: sudo under django or better solutions?

2008-02-01 Thread Tim Chase
> mm... sudo is a much more fine grained way of granting permission. I don't > really like do give all power to a web application. > > What I would have liked was a sort of sudo module, so execute certain > *configured* funcions with more power. Another option might be a long-running process (L

Re: Image upload in user's directory

2008-02-01 Thread Pigletto
On 1 Lut, 11:35, django_user <[EMAIL PROTECTED]> wrote: > Thanks it worked.. :) Nice to hear that :) -- Maciej Wisniowski --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, s

Re: Simultaneous edits

2008-02-01 Thread Filip Wasilewski
Hi Michael, On Jan 30, 6:25 pm, Michael Hipp <[EMAIL PROTECTED]> wrote: > James Bennett wrote: > > On Jan 30, 2008 9:18 AM, Michael Hipp <[EMAIL PROTECTED]> wrote: > >> Does Django have any built-in way to handle or prevent simultaneous, > >> incompatible edits to a database record? > > > No, tha

Re: My Django under Vista also lags

2008-02-01 Thread [EMAIL PROTECTED]
That's it ;-) now everthing is lightning fast. Thank you *.sebastian On 31 Jan., 04:32, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On Jan 31, 2008 12:09 PM, [EMAIL PROTECTED] > > <[EMAIL PROTECTED]> wrote: > > > But I don't have ZoneAlarm - maybe it's a Python problem. The > > rendering

Re: Newbie sqlite3 dbshell confusion

2008-02-01 Thread Brett Parker
On 31 Jan 11:24, bobhaugen wrote: > > On Jan 31, 10:38 am, Jeff Anderson <[EMAIL PROTECTED]> wrote: > > The link you pasted assumes you are using the development version, which > > has some differences. My personal recommendation is to remove 0.96 and > > use django-svn. > > You are correct. I

صور وأشرطه جنس أجنبيه

2008-02-01 Thread thwg
sex sex sex أكبر موقع سكس عربي sex sex sex أكبر موقع سكس عربي خليجي عروض افلام الأن بالمجاتي http://www.groups-goole.l7n6rb.com/sex-free.html أكبر موقع جنسي عربي افلام مجانيه 100% http://sex.66rb.net/sex.htm http://www.l7n6rb.com أكبر المواقع الجنسيه http://www.66rb.net/e3lan/e3lan.html زواج مسيار

sex sex sex أكبر موقع سكس عربي sex sex sex أكبر موقع سكس عربي خليجي

2008-02-01 Thread thwg
sex sex sex أكبر موقع سكس عربي sex sex sex أكبر موقع سكس عربي خليجي عروض افلام الأن بالمجاتي http://www.groups-goole.l7n6rb.com/sex-free.html أكبر موقع جنسي عربي افلام مجانيه 100% http://sex.66rb.net/sex.htm http://www.l7n6rb.com أكبر المواقع الجنسيه http://www.66rb.net/e3lan/e3lan.html زواج مسيار

Re: how to speed up objects saving

2008-02-01 Thread Ivan Illarionov
You have two options: 1. Execute raw SQL 'INSERT' queries 2. Override the Model.save() or create new save_fast() method in your Model class. The main speed eaters in Model.save() are dispatcher.send() calls - so if you copy/paste the content of save method from Django code without dispatcher.send

Re: Newbie sqlite3 dbshell confusion

2008-02-01 Thread bobhaugen
On Jan 31, 10:38 am, Jeff Anderson <[EMAIL PROTECTED]> wrote: > My personal recommendation is to remove 0.96 and > use django-svn. Ok, I did that. Or tried to do that, anyway. 1. Removed 0.96.1. 2. did: svn co http://code.djangoproject.com/svn/django/trunk/ django- trunk 3. did: sudo ln -s /djan

Re: Django on MacOS X Leopard

2008-02-01 Thread Graham Dumpleton
On Feb 1, 9:25 pm, Eric Abrahamsen <[EMAIL PROTECTED]> wrote: > On Feb 1, 5:47 pm, omat <[EMAIL PROTECTED]> wrote: > > > I am using the built-in Python that ships with Leopard. Unfortunately > > I don't know what created the extra site-packages under /System/ > > Library/.../lib/python2.5/ > > I d

Re: How to attach multiple images to a blog post?

2008-02-01 Thread [EMAIL PROTECTED]
Just for the record: http://code.djangoproject.com/ticket/2413 http://code.djangoproject.com/ticket/2534 http://code.djangoproject.com/ticket/3297 On Jan 31, 6:23 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hello, > I'm trying to write simple blog tool but I ran into some problems. I

Re: Image upload in user's directory

2008-02-01 Thread django_user
Thanks it worked.. :) On Feb 1, 2:15 pm, django_user <[EMAIL PROTECTED]> wrote: > Thanks Maciej, It should work. > > On Feb 1, 1:30 pm, Pigletto <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > I am using the following in my Image model: > > > file = models.ImageField(upload_to='/%y/%m/%d') > > > > I

Re: Django on MacOS X Leopard

2008-02-01 Thread Eric Abrahamsen
On Feb 1, 5:47 pm, omat <[EMAIL PROTECTED]> wrote: > I am using the built-in Python that ships with Leopard. Unfortunately > I don't know what created the extra site-packages under /System/ > Library/.../lib/python2.5/ I don't think that's quite right - the /System/Library/etc/etc version seems t

Re: form for display, not edit

2008-02-01 Thread koenb
I also have something similar: I created a bunch of display widgets (displaytextinput, displaytextarea, displayselect, displayselectmultiple etc.), which override the render method of their parents and created a subclass of forms.ModelForm for this, which has a display_only argument on the __init_

Re: Persistent data (other than sessions)

2008-02-01 Thread Dan Fairs
> Is there anyway I can make g persistent? In other words, I want to > build it once, and then search that copy for each additional request. > If this thing doesn't change, then you could build it once and then stick it in a module-level variable. Something like: final_graph = None def graph_

how to speed up objects saving

2008-02-01 Thread Alex M.
Hello, I have a problem: on my website I periodically need to transfer some data from a DB, to the Django DB of the website (I currently use MySQL) what i do in my view is to call some SQL queries on the "from" database, make some calculations and rearrangements on the data to transfer, then c

Using a drop down list as widget for filter in admin

2008-02-01 Thread Julien
Hello there, The list_filter meta attribute lets you add filters in the admin interface. It's great, but the problem is that the field I'm filtering (a ForeignKey) has thousands of values, so I get thousands of links put in the right end side of the page. Is it possible to have a drop down list

Re: form for display, not edit

2008-02-01 Thread Steven Armstrong
Carl Karsten wrote on 02/01/08 01:34: > newforms is great for creating forms. I need something similar to generate a > display form from a model. > > I looked at subclassing form, but what I would need to override is in the > widgets. which is probably why my hope isn't a good one. but for w

Re: Django on MacOS X Leopard

2008-02-01 Thread omat
I am using the built-in Python that ships with Leopard. Unfortunately I don't know what created the extra site-packages under /System/ Library/.../lib/python2.5/ I had some trouble with Eclipse-carbon installation, I removed it and installed EasyEclipse for python. Maybe this brought the duplicat

Re: sudo under django or better solutions?

2008-02-01 Thread David Reynolds
On 31 Jan 2008, at 5:27 pm, sandro dentella wrote: > i'd like to make an application that should execute commands with > permission that are not normally for www-data (eg: create user). Of > course > I know I could use sudo and execute the command via subprocess or > similar. But it happ

Re: *Idea-Share* How to secure auth

2008-02-01 Thread Steven Armstrong
Ravi Kumar wrote on 01/31/08 12:07: > On Jan 31, 2008 2:49 PM, Steven Armstrong <[EMAIL PROTECTED]> wrote: > >> Maybe something like this in your apache config? >> >> RedirectMatch permanent /(login|securepage) https://www.example.com/$1/ >> >> > One idea is to redirect user login to HTTPS in sam

Re: Image upload in user's directory

2008-02-01 Thread django_user
Thanks Maciej, It should work. On Feb 1, 1:30 pm, Pigletto <[EMAIL PROTECTED]> wrote: > > Hi, > > I am using the following in my Image model: > > file = models.ImageField(upload_to='/%y/%m/%d') > > > I want every image to be uploaded in the users directory like '// > > %y/%m/%d' instead of all fi

Re: SVN7049 - bug with development server ?

2008-02-01 Thread Nicolas Steinmetz
Jarek Zgoda a écrit : > I see this error frequently when using Firefox. Never saw this with > Opera, IE or Safari. I confirm it's with Firefox. I do not have this with konqueror. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

Re: Image upload in user's directory

2008-02-01 Thread Pigletto
> Hi, > I am using the following in my Image model: > file = models.ImageField(upload_to='/%y/%m/%d') > > I want every image to be uploaded in the users directory like '// > %y/%m/%d' instead of all files in default location. > > Is it possible ? Try: http://www.djangosnippets.org/snippets/531/ -

Re: url tag and reverse()

2008-02-01 Thread Eric Abrahamsen
> Have you tried this: > (?Pjohndoe|janedoe) Strange, I had thought that wasn't working, but I guess it must be. So with that change this gets the right URL: reverse('entry', kwargs={'translatorName':'johndoe','entryName':'blogentry'}) But trying to use the entry view, which requires two argumen

Re: SVN7049 - bug with development server ?

2008-02-01 Thread Jarek Zgoda
Nicolas Steinmetz napisał(a): > On my Debian Lenny box, with Python 2.5.1, I have the following error > the first time I generate a page. When I refresh the page, I have the > normal output (ie listing css, html, images files) > > > Traceback (most recent call last): >File > "/usr/lib/py

Re: Image upload in user's directory

2008-02-01 Thread James Bennett
On Feb 1, 2008 12:57 AM, django_user <[EMAIL PROTECTED]> wrote: > I want every image to be uploaded in the users directory like '// > %y/%m/%d' instead of all files in default location. There is no built-in automatic solution for this. However, like many things which are not built-in or automatic