Is Django thread safe?

2008-03-28 Thread Peter Rowell
ne (Django core developers?) reading this who can verify that Django is, in fact, thread safe and plays well under worker MPM? TIA, Peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Tutorial: Admin Template Customization

2008-03-28 Thread Peter Rowell
On Mar 28, 2:48 pm, Evert Rol <[EMAIL PROTECTED]> wrote: > locate uses a database which doesn't always get promptly updated. > Waiting a few hours (or perhaps days) will show the correct > base_site.html as well. So locate not finding this is not an issue here. If you are root on the machine, you

Re: Do I need two classes that are identical because I want to use two database tables?

2008-03-28 Thread Peter Rowell
pass class CurrentElectionResults(models.Model, ElectionResultsMethods): etc. class PassElectionResults(models.Model, ElectionResultsMethods): etc. HTH, Peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Access control

2008-03-29 Thread Peter Herndon
http://www.djangoproject.com/documentation/authentication/ On Sat, Mar 29, 2008 at 1:04 PM, Wilson Acha <[EMAIL PROTECTED]> wrote: > > Hello, django have any library that allows include a login and enable > restrict access to different parts of the application according to > roles and / or p

Re: Is Django thread safe?

2008-03-29 Thread Peter Rowell
perations that could pose a problem and suggest possible ways to handle them. Thanks again, Peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, se

Re: sql & cache problem? Am I crazy?

2008-04-03 Thread Peter Rowell
> Any light to understand/solve it? With any sort of suspected caching problem (and this certainly smells like one), Step 1 is always to disable caching, restart the server, and see if the problem magically goes away. If it does, you can put away the Xanax and start looking at where and how you

Re: Use django auth db for phpbb?

2008-04-06 Thread Peter Rowell
same file) for more specific info. It should be fairly straightforward to access and check this from your PHP code. HTH, Peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: Way to show recently updated items from multiple apps?

2008-04-07 Thread Peter Rowell
something like: mods = LogEntry.objects.filter(content_type=whatever).filter(action_time__gt=sometime) This gives you all objects of a given type (or types) that were modified after sometime. You'll need to tweak this, but it gives you the general idea. see django.contrib.admin.models.LogEntry for

app engine db backend project

2008-04-08 Thread Peter Baumgartner
Anybody interested in starting an app engine/big table db backend project? Should be interesting and might help pave the way for some other non-traditional databases like CouchDB or SimpleDB. While I'm not a database expert, I'm sure I can chip in. It seems like most of the basic functionality is

Re: middleware that works with Ajax

2008-04-08 Thread Peter Rowell
Claudio, Your question made me look at RJS (which I had never heard of before) and at some stuff I did for a recently completed site. I think a rev 0.1 of something like RJS could be done in a weekend. I'll email you in the next day or so with some thoughts. Cheers,

Re: Intial Data from Script

2008-04-08 Thread Peter Rowell
code goes here == HTH, Peter --~--~-~--~~~---~--~~ 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 u

Re: Whats wrong

2008-04-08 Thread Peter Rowell
te. Nicely done! Peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [

Re: app engine db backend project

2008-04-08 Thread Peter Baumgartner
n Tue, Apr 8, 2008 at 8:26 AM, Marty Alchin <[EMAIL PROTECTED]> wrote: > > > On Tue, Apr 8, 2008 at 10:21 AM, Peter Baumgartner <[EMAIL PROTECTED]> wrote: > > Anybody interested in starting an app engine/big table db backend > > project? Should be interestin

Re: app engine db backend project

2008-04-08 Thread Peter Baumgartner
Thanks Eric, One thing I'm struggling with is figuring out where to start coding :P All the other backends start by initializing a connection and then handling things through a cursor as far as I can tell. GQL doesn't really need any of this, so can I skip it altogether or should I emulate a cur

Re: Selecting Python version for mod_python

2008-04-09 Thread Peter Rowell
> This means that a python version has to be selected before the PythonPath > directive is processed. "Selected" is not quite the right way to think of it. mod_python has the Python interpreter linked in at build time, not run time. To change which version you have, you need to rebuild mod_python

Re: app engine db backend project

2008-04-10 Thread Peter Baumgartner
On Wed, Apr 9, 2008 at 1:24 PM, binaryj <[EMAIL PROTECTED]> wrote: > > i plan to help on doing this but right now i dont have the time and a > working app account to do this. I can get you developer access on an account when you have time, just let me know off list. --~--~-~--~~---

Troubles with JavaScript localization

2008-04-11 Thread Peter Melvyn
st on application level only? Thanks, Peter --~--~-~--~~~---~--~~ 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 grou

Re: Fedora Core 4 - Django-dev & Mysql

2008-04-14 Thread Peter Herndon
The immediate solution is to download the source and compile. A better solution, i.e. a prebuilt RPM, might be available from somewhere, I haven't searched. ---Peter On 4/14/08, martyn <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm using Fedora Core 4 and MySQL as

Is there a better way to strip CharFields?

2008-04-18 Thread Peter Rowell
I have an author who doesn't understand that a space is not nothing. He persists in *sometimes* putting a leading space at the beginning of a 'name' field. This name shows up in a ForeignKey drop down in the admin interface. As a result, we often end up with two records. He creates one named " Foo

Re: Does the ORM support eager fetches?

2008-04-18 Thread Peter Rowell
Take a look at select_related(), it may be of some help, depending on how you define "parent" and "child". http://www.djangoproject.com/documentation/db-api/#select-related "Returns a QuerySet that will automatically “follow” foreign-key relationships, selecting that additional related-object dat

Re: Best practices sending out http requests from within django code

2008-04-18 Thread Peter Rowell
> I've been using urllib2 very effectively - do be careful with it though I second this (both halves). Very easy to use. The only gotcha I encountered was making sure I correctly handled various failure modes for the connection. This was the backend credit card handshake for a membership site an

Re: Javascript GUI Editor that works with Django templates

2008-04-19 Thread Peter Rowell
> > gets butchered to > Just did a quick check with TinyMCE: Blank textarea, into HTML mode, entered your text, update, save-and- continue-editing, HTML mode. The only thing it did was wrap everything in , but I think that's a configurable behavior. I.e., ==>&

Re: Is there a better way to strip CharFields?

2008-04-19 Thread Peter Rowell
On Apr 18, 9:52 pm, "Rishabh Manocha" <[EMAIL PROTECTED]> wrote: > You could just write a clean_mycharfield() and just return > self.cleaned_data['mycharfield'].strip(). True. I guess what bothers me about that technique is that if the data is *not* passing through a Form you have subclassed, the

Re: best practice for creating featured field

2008-04-20 Thread Peter Rowell
y your DB directly using whatever tool you use -- command line, phpMyAdmin, or whatever. b. Do a ./manage.py reset . WARNING: this will drop the tables (and their data) for *all* of the models in the named app, and then create them anew with the current definitions. HTH, Peter --~--~-~-

Re: How to call a secure url?

2008-04-20 Thread Peter Rowell
This simplifies things for error handling. If the submission succeeds, we redirect to a success page (which is *not* in SSL mode). HTH, Peter Ps. If this gets mangled by google, let me know and I'll email it to you. You need a list in your settings file that has all of the paths that must

Re: Javascript GUI Editor that works with Django templates

2008-04-21 Thread Peter Melvyn
> My favorite is FCKeditor. Its formatting of source code is really > clean and semantic. I have come to hate TinyMCE because it jumbles > source code and uses too many tags at times. Try it out, you may like > it a lot. I've tried it and it seems it does not work with Opera... --~--~---

Re: Some weird. In production, imagen is redirected to images

2008-04-21 Thread Peter Rowell
*would* find /images and mod_speling might do the redirect for you. 4. Look at your URL handling in shared.multimedia.urls-image and see if there is anything that is conditional (intentionally or otherwise) on what server you are using. Good luck, Peter --~--~-~--~~~---~--~

Re: define a function in a model that calls itself from the db?

2008-04-21 Thread Peter Rowell
ly and some don't. HTH, Peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group,

Re: Authenticate

2008-04-21 Thread Peter Rowell
> Authentication works perfectly on the latter method. Why would one > work but not the other? Because they are two different models that are unrelated except for Userprofile having a ForeignKey to User. Just as with Userprofile, if you modify the User record you have to explicitly save() it. The

Re: define a function in a model that calls itself from the db?

2008-04-21 Thread Peter Rowell
brary), take a look at the taconite plugin. Home page: http://www.malsup.com/jquery/taconite/ It makes page mods almost trivial to do. HTH, Peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: filters should throw exceptions

2008-04-21 Thread Peter Rowell
he exception hit the fan. This is what I do for those real head scratchers. HTH, Peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: Formwizard Initial Data

2008-04-21 Thread Peter Rowell
> forms.ModelMultipleChoiceField(queryset=Submission.objects.all()) > > how can I make the queryset use Submission.objects.filter rather than > objects.all ? I have not used formtools, but just from looking at the above line I wonder if you tried: queryset=Submission.objects.filter(some_fiter_ar

Re: awareness of current view in template/site navigation

2008-04-21 Thread Peter Rowell
.gif);} and then in your HTML you have something like ... Peter --~--~-~--~~~---~--~~ 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

Re: Multiple views, multiple apps?

2008-04-21 Thread Peter Rowell
> This works but looks really ugly... Agreed. Is there some reason you can't use class Admin in your models? More than one person has observed that Django's auto-generated admin interface is its Killer App. It's integrated with the django.contrib.auth authentication app, and it's even customiza

Re: define a function in a model that calls itself from the db?

2008-04-21 Thread Peter Rowell
> I have the main page > that will display multiple sections that are each individuals apps. My first question is: do they update anything after the initial data fetch? If not, why not just build the page on the first GET (using template includes, etc.) and be done with it. > One obvious problem

Re: Question about sessions in the DB

2008-04-21 Thread Peter Rowell
od creates the record (and thus the key) as a side effect of the attempt to access a session record. It appears (untested) to be enough to reference "soap.request.session" to trigger the creation. I'm guessing this is to reduce accidental/incidental creation of mea

Re: DateField widget, ModelForm and javascript

2008-04-22 Thread Peter Melvyn
On 4/21/08, Rishabh Manocha <[EMAIL PROTECTED]> wrote: > I'd be interested in knowing how to get it to show up too (what JS/CSS > files need to be added, whether there is some setting we can use in > the python code itself or do we have to print out each field > independently and insert the a

Re: Paginator Help

2008-04-22 Thread Peter Melvyn
it tag_paginator.html And in your page (main_menu.html), you should "call" it like this: {% if is_paginated %} {% load paginator %}{% paginator 4 %} {% endif %} HTH, Peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Re: Javascript GUI Editor that works with Django templates

2008-04-22 Thread Peter Melvyn
> Since Opera is used by a very very small percentage of web users, > I don't think it would be a major problem in most use cases. My experience says the well behaved applications runs on IS6+, FF2+, Safari3+ and Opera9+ --~--~-~--~~~---~--~~ You received this m

Re: guidance on sub-classing models

2008-04-22 Thread Peter Rowell
> I need some guidance on sub-classing a model ... Actually, you can't subclass a model ... anymore / yet. Something like this existed prior to an momentous event called the Magic Removal Branch, which was before my time but appears to have been the Django equivalent of the Spanish Inquisition (i

Re: how do designers create content

2008-04-22 Thread Peter Rowell
To expand on what Kenneth just said: It really depends on the individuals involved. I love the work my primary designer does in Photoshop, but her HTML/CSS makes me cringe. I got her to stop using GoLive to create these Tables From Hell (multi- row/multi-col spans all over the place), but she is

Re: Django and Services

2008-05-02 Thread Peter Rowell
> The one catch that I see is that you still > have to go through all your views and make sure that you're now > passing in a request object, and if you miss any then you won't > necessarily know until you notice that your page is rendered funny. No problems, mate. :-) All Django views a) take a

Re: Templating patterns

2008-05-02 Thread Peter Rowell
> Is it posible to send the {{tag}} variable as a parameter from > another template (where i use the include tag) ? Unfortunately, no. There is another templating system, Jinja (http:// jinja.pocoo.org/), which looks a *lot* like Django templates. Jinja gives you full python expressions and macr

Re: Pass variable with HttpResponseRedirect

2008-05-03 Thread Peter Rowell
> How can I pass a variable with HttpResponseRedirect? I've tried: I suggest using the session. This allows you to have arbitraily complex error structures. E.g., session['errors'] = HttpResponseRedirect('to somewhere') then in your other view(s) do something like:

Newbie Data Model Question

2008-05-06 Thread Peter Bailey
etc --- --- - Thanks very much. Sorry if this is a dumb question - always fun being a newbie :-( Peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" gr

Re: Newbie Data Model Question

2008-05-06 Thread Peter Bailey
ating myself lol - most people don't seem to even ever have looked at assembler these days. I used to love it - 7 years of that after university) Oh, and of course C was always the bomb too :-) Thanks again, Peter On May 6, 12:46 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> w

Re: Newbie Data Model Question

2008-05-06 Thread Peter Bailey
hat the problem is? The code looks right to me. Thanks, Peter On May 6, 1:33 pm, Peter Bailey <[EMAIL PROTECTED]> wrote: > Thanks very much for your solution and reply alen. I'm learning the > ins and outs of python and django at the same time - fun adventure - > so far p

Re: Newbie Data Model Question

2008-05-06 Thread Peter Bailey
what a feeling, what a rush! Cheers On May 6, 2:34 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Tue, May 6, 2008 at 2:25 PM, Peter Bailey <[EMAIL PROTECTED]> wrote: > > > Hey alen. I have tried implementing this and it makes good sense as > > far as I

Re: Newbie Data Model Question

2008-05-06 Thread Peter Bailey
I was actually torn on whether to use subtypes or not. More complicated (bad) but better db space usage (good). I guess disk space is pretty cheap these days lol. Thanks again, Peter On May 6, 6:25 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Tue, May 6, 2008 at 3:01

Re: Why are my parameters gettings mangled?

2008-05-08 Thread Peter Rowell
Well, I'm not quite sure exactly what is being done to it, but it appears to happen at: = django/http/__init__.py: ... class QueryDict(MultiValueDict): ... def appendlist(self, key, value): self._assert_mutable() key = str_to_unicode(ke

Re: undetermined behaviour of manage.py

2008-05-11 Thread Peter Melvyn
On 5/11/08, phactor <[EMAIL PROTECTED]> wrote: > no keyword REFERENCES. Where is it? AFAIK, SQLite engine 'per se' does not support reference integrity, see: - http://www.sqlite.org/lang_createtable.html - http://www.sqlite.org/omitte

Secret Dating Tips

2008-05-14 Thread peter boeo
Secret Dating Tips for men and women http://www.webdatingtips.co.cc --~--~-~--~~~---~--~~ 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 unsubscri

Free Phone Call Worldwide

2008-05-14 Thread peter boeo
Free Phone Call Worldwide Phone family and friends for free Receive local rate telephone calls http://www.attphone.co.cc/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, se

Add column to generated ManyToMany table and access from admin

2008-05-16 Thread Peter Bailey
elcome. I don't mind using newer code, but I am unsure of the timelines for that branch to move into the trunk etc. Don't want to waste time learning code that will be obsolete, but do have some deadlines to meet (of course). Advice or pointers greatly appreciated, Peter --~--~

Re: Add column to generated ManyToMany table and access from admin

2008-05-16 Thread Peter Bailey
>survey = models.ForeignKey(Survey) >item = models.M2M(ItemOrder) >order = models.IntegerField() #Page Order >file_name = models.CharField(max_length=50) > > You can also add a 'unique_together' constraint to your meta class in > ItemOrder, if helpful. >

Re: Sorting a dict by value for template rendering

2008-05-16 Thread Peter Rowell
}} Value: {{item.1}} {% for %} HTH, Peter --~--~-~--~~~---~--~~ 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 g

Re: Any examples of django order-processing systems out there?

2008-05-17 Thread Peter Rowell
You might want to look at Satchmo. I think it's at 0.7 right now. http://groups.google.com/group/satchmo-users --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Add column to generated ManyToMany table and access from admin

2008-05-19 Thread Peter Bailey
Thanks Russ. On May 17, 4:26 am, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On Sat, May 17, 2008 at 2:19 AM, Peter Bailey <[EMAIL PROTECTED]> wrote: > > > However, I would really like to add a column to the join table, > > "order", so I c

Re: dynamic filtering (with jQuery)

2008-05-23 Thread Peter Rowell
ror, and give you that stack trace *and* all of the environment values that Django has. HTH, Peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send emai

Re: storing a list of arbitrary generic objects in a db field

2008-05-23 Thread Peter Rowell
> Thoughts on this approach? I do this all the time. I call them objrefs (Object References). My syntax is ..id. If the model_name is unique across the project (which is normally true), then .id is also accepted. I also allow for .id.. I have three apps I am getting ready to post that make stro

Re: How do I pass a value to a javascript function? (ie. lat and lng values to Google Maps)

2008-05-23 Thread Peter Rowell
your template, etc. Obviously you can do this in fewer lines, I was just trying to show the logical steps. If you have a bunch of these, you might consider a custom filter or tag for use in the template. {% map_url obj %} or {{obj|map_url}} I tend to use tags because you have more optio

Re: dynamic filtering (with jQuery)

2008-05-23 Thread Peter Rowell
]) The above covers all internal, non-routable IPs you might be coming from. Add more to taste. HTH, Peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this grou

Re: How do I pass a value to a javascript function? (ie. lat and lng values to Google Maps)

2008-05-23 Thread Peter Rowell
> I think you just want something like: > {% for p in precinct_list %} > point = new GLatLng({{p.precinct_lat}}, p.precinct_lng{}); > map.addOverlay(createMarker(point, "{{p}}")); > {% endfor %} Oops, brain fade on my part -- I didn't read your question carefully enough. Baxter is cor

Re: dynamic filtering (with jQuery)

2008-05-23 Thread Peter Rowell
> Firebug is where you will get django's errors, if you are using an async > call to django (AJAX, XHR, etc..) You are absolutely correct. That's the second post I've misread this morning. I got rear-ended pretty hard yesterday and I think my neurons aren't working too well today. Sigh. --~--~--

Re: ForeignKey, but not...

2008-05-25 Thread Peter Rowell
Thoughts, in no particular order: 1. What about your app is dependent on the uid/User? I.e., At what points in the app's use does the uid come into play? 2. Since there is a uid, where is it coming from? UNIX uid? Some other forum id? 3. Are there events in the life of a uid/User (creation, modif

Re: may be BUG. SyntaxError: non-keyword arg after keyword arg

2008-05-28 Thread Peter Rowell
> SyntaxError: non-keyword arg after keyword arg > > "operator__office=self.operator.office" WAS truncated to the > "operator__" in traceback... The ORM filter() method uses double underscore "__" in a magic way. See http://www.djangoproject.com/documentation/db-api/#filtering-objects --~--~-

Re: Navigation components

2008-06-02 Thread Peter Rowell
A site I finished a few months ago had a 4 level hierarchy. I created a Section model and all content classes had an FK to Section (including Section itself). E.g., Home Section A Section A.1 Article Video Audio Books (etc., etc.) Section A.2 (etc.) Secti

Setting a ManyToMany default

2008-06-03 Thread Peter Rowell
My current project is loaded with ManyToMany relationships. Most of them are not required and default to nothing. One of them, however, is required and there is a very clear default value I could use ... if I could only figure out how. Consider: class Varietal(models.Model): name = models.Char

Re: Navigation components

2008-06-03 Thread Peter Rowell
. } In the template: Tab1 nav stuff Tab2 nav stuff It was a small pain setting it up, but once you have it you don't care what the *&[EMAIL PROTECTED] designer comes up with! :-) HTH, Peter --~--~-~--~~~---~--~~ You received this message because you

Re: Dynamic choice on Model

2008-06-03 Thread Peter Rowell
> How can I cast this 2 values dictionary into a 2 values tuple? Why are you creating a dict here? Try something like this: choices = [] for i in range(100): choices.append( (i, i+1) ) SONGNO_CHOICES = choices Or more concisely: SONGNO_CHOICES= [ (i,i+1) for i in range(100) ] This gives you

Re: Setting a ManyToMany default

2008-06-04 Thread Peter Rowell
> How about writing your own constructor that takes an argument of type > and has a default value assigned there? I guess I don't understand where this constructor lives in the food chain. It can't exist prior to the first save() of the object because we don't have the id before that. I tried put

Re: Setting a ManyToMany default

2008-06-04 Thread Peter Rowell
> perhaps having an __init__ function in your Vineyard class could allow > you to set pinot noir as the default, unless it is passed another type > of wine. Conceptually, what you said is correct, but TDIITD (The Devil Is In The Details). I believe that the "correct" way to do this is to set def

Re: getting a problem while using templates

2008-06-04 Thread Peter Herndon
You need to set an environment variable DJANGO_SETTINGS_MODULE that points to your settings.py. Look up the documentation on settings for more detail. This isn't necessary when running the development server, IIRC, but becomes necessary when running under Apache/mod_python. On 6/4/08, Sandy <

Re: sessions, Internet Explorer cookies and domain forwarding

2008-06-05 Thread Peter Rowell
in the Django settings file to www.jouwadresboek.nl. See http://www.djangoproject.com/documentation/settings/#session-cookie-domain. HTH, Peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: sessions, Internet Explorer cookies and domain forwarding

2008-06-05 Thread Peter Rowell
Sigh, brain fart. impeded => embedded --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send emai

Re: forms - WTF

2008-06-05 Thread Peter Rowell
On Jun 5, 8:50 am, "Emily Rodgers" <[EMAIL PROTECTED]> wrote: > IMPORTANT NOTICE: The contents of this email and any attachments are > confidential and may also be privileged. If you are not the intended > recipient, please notify the sender immediately and do not disclose the > contents to an

Re: Caching question

2008-06-05 Thread Peter Rowell
> does per-view or template fragment caching override that? >From looking at django/middleware/cache.py, I would say that the view (and therefore the template) never get a chance to override. This check is done early in the request processing cycle, even before URL routing is performed.

Re: Caching question

2008-06-06 Thread Peter Rowell
@James: I'm a little confused. The docs (http://www.djangoproject.com/ documentation/middleware/#django-middleware-cache-cachemiddleware) say, and the code appears to support it, that if django.middleware.cache.CacheMiddleware in the MIDDLEWARE_CLASSES list, then caching is turned on for the whol

Re: Importing data from 'MS Access' .mdb files

2008-06-10 Thread Peter Herndon
Two possibilities come to mind. First, is the Python ADODBAPI module: http://sourceforge.net/projects/adodbapi Second, as an *extremely* useful tool for this sort of thing, may I suggest Navicat for MySQL on Windows? The Windows version allows you to import .mdb files and do data transfers dire

Re: truncate in mysql database

2008-06-11 Thread Peter Melvyn
angoproject.com/documentation/model-api/#executing-custom-sql BTW, did you read dox describing different behaveour of TRUNCATE command between different MySQL versions? HTH, Peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Django and Fliqz

2008-06-11 Thread Peter Herndon
he mailing lists for the various SOAP libraries. ---Peter On 6/10/08, AestheticMindStudios <[EMAIL PROTECTED]> wrote: > > I am building an application and am curious if anyone has done an > interface with Fliqz using Web Services Description Language - or if > this is automatica

Re: Django and Fliqz

2008-06-11 Thread Peter Herndon
nk there may be a Special Interest Group page for SOAP on python.org, though it is likely to be out of date. Good luck, and happy Googling, ---Peter On 6/11/08, AestheticMindStudios <[EMAIL PROTECTED]> wrote: > > Hi Peter, > > Thanks for your input - are the mailing lists

Re: Handling unknown data

2008-06-12 Thread Peter Rowell
mittedly this breaks any "normalization" of your data, but that's already happened by the variable shape of the results themselves. Besides, as someone (who?) said a while ago, normalization is for wimps. HTH, Peter --~--~-~--~~~---~--~~ You r

Re: Handling unknown data

2008-06-12 Thread Peter Herndon
quickly get really complex is an indicator that your data could stand some further thought -- how can your model be simplified? Of course, it could also just be an indicator that your problem domain really is complex... ---Peter, not the same one ;) On 6/12/08, Peter Rowell <[EMAIL PROTEC

Re: Session lost between two requests from the test client

2008-06-12 Thread Peter Rowell
> Would appreciate any help in this regards Try using Firefox and the Live HTTP Headers plugin. Start at the beginning and see what is being exchanged between browser and server. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Django HTML Editor

2008-06-14 Thread Peter Melvyn
you are on Windows, you can try www.pspad.com (it is not WYSIWYG) HTH, Peter --~--~-~--~~~---~--~~ 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@googl

Re: library import issue.

2008-06-16 Thread Peter Bengtsson
On Jun 16, 11:07 am, "James Matthews" <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to import a library that is in a non-standard location ~/opt/lib > (I am in a shared environment) and i added it to my "LD_LIBRARY_PATH" > however Django tells me it cannot find it and me a 500 error. > > In p

Trapping template errors

2008-06-16 Thread Peter Bengtsson
I have TEMPLATE_DEBUG on but if I write:: X{{ somethingthatdoesnotexits }}X The output is just XX and no error. How can I enable explicit rendering and raise errors on typos in the templates? --~--~-~--~~~---~--~~ You received this message because you are subsc

Re: redirect with post parameters

2008-06-17 Thread Peter Melvyn
this URL. Hence you cannot "forward" any post parameter without client side cooperation. You could pass some parameters in query part of URL and/or perhaps via cookie thoroughly built for particular URL. HTH, Peter --~--~-~--~~~---~--~~ You received t

insert row into ManyToManyField

2008-06-18 Thread Peter Bulychev
Hello. Is it possible to insert additional row into table, which corresponds to ManyToManyField? For instance, I have 'Countries' table, which possesses ManyToManyField 'borders'. My goal is to store border length for neighbor countries by inserting additional field 'length' into the 'borders' t

Re: Why PostgreSQL?

2008-06-18 Thread Peter Melvyn
I first made the Django choice, that I had made the jump to > postgres then. Unfortunatelly, we use Django application as a configuring/monitoring web based tool for large back-office application using MySQL as shared database, hence we cannot move PostgreSQL easily... Peter --~--~-~--

Some Django unit tests fail...

2008-06-19 Thread Peter Melvyn
handler(self, exc, value) File "C:\Python24\Lib\site-packages\MySQLdb\connections.py", line 35, in defaulterrorhandler raise errorclass, errorvalue OperationalError: (1267, "Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '=

Re: Some Django unit tests fail...

2008-06-19 Thread Peter Melvyn
CTER SET utf8 COLLATE utf8_xxx_ci; Should I create a ticket ;-) Peter --~--~-~--~~~---~--~~ 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: Mako templates with flatpages

2008-06-20 Thread Peter Rowell
> Is this possible? Short answer: No. (At least I can't see anyway to accomplish it.) On the other hand, the flatpages code is really quite straightforward. views.py is 46 lines and models.py is only 36 lines. Why not grab a copy, possibly rename it to avoid confusion, and hack away? --~--~---

Re: email this page

2008-06-21 Thread Peter Melvyn
not sure if implementation http://www.djangoproject.com/documentation/email/ is generic enough to compose such message and I am not skilled Pythoneer to know whether there is another library suitable for this task. HTH, Peter --~--~-~--~~~---~--~~ You received this message bec

Re: flatpage for 404

2008-06-21 Thread Peter Melvyn
e django to use my default.html template to display the 404 > and use the '/404/' flatpage which I created. Unfortunately I did not > find out how to configure this behaviour. Lookup django.conf.urls.defaults module how handler404 is defined and override it by assigning your view functi

Re: Any suggestions on encryption methodology?

2008-06-23 Thread Peter Melvyn
ne as a client and AS400 as a banking host. No decryption/reencryption in the middle. AFAIK, *reliable* solution is *always* built on specialized HW, e.g. http://www.thales-esecurity.com/solutions/Database_protection.shtml HTH, Peter --~--~-~--~~~---~--~~ You receiv

Re: Any suggestions on encryption methodology?

2008-06-23 Thread Peter Melvyn
an easy task - e.g. we fought with transaction log overflow etc... And another potential problem are SQL expressions referring encrypted data - to avoid full scan, you need encrypt a querying value before SQL command is executed to be able use indeces. Peter --~--~-~--~~

Re: How best to delete one of multiple records?

2008-06-23 Thread Peter Melvyn
record has checkbox and there is a single DELETE button Peter --~--~-~--~~~---~--~~ 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: How best to delete one of multiple records?

2008-06-23 Thread Peter Melvyn
f operations. Peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMA

<    1   2   3   4   5   6   7   8   9   10   >