Re: Markdown Encoding Problem

2009-06-02 Thread Waylan Limberg
se kinds of problems. [1]: http://pypi.python.org/pypi/Markdown Waylan Limberg --~--~-~--~~~---~--~~ 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: Aggregating Ignores Slicing?

2009-03-04 Thread Waylan Limberg
On Mar 3, 8:55 am, Ross wrote: > I have started using aggregation, but it seems to ignore any slicing I > do on a QuerySet before calling aggregate. This is what I'm doing: > > Product.objects.order_by("-price")[:100].values("price").aggregate(Max > ("price"), Min("price")) > > I want the maximum

Authenticate Trac against Django users.

2007-12-20 Thread Waylan Limberg
I've worked up the beginnings of a Trac plugin that authenticates against Django users. I've since determined that I'm not likely to use it. So, is anyone interested in using and/or maintaining it? If so, I'll throw it up on trac-hacks.org. The basic functionality works. I can login to my django

Re: Deploying multiple sites on one computer using SSL

2007-03-21 Thread Waylan Limberg
On Wed, 21 Mar 2007 18:19:21 -0400, Dan Goldner <[EMAIL PROTECTED]> wrote: [snip] > > httpd.conf: > > > ServerName projects.mycompany.com > SetHandler python-program > PythonInterpPerDirective On > > # Turn Off for production, On for dev: > PythonAutoReload On > PythonDebug On > >

Re: newforms and output of required fields

2007-03-20 Thread Waylan Limberg
widget works only with the field itself. So, what does I need to do > get a custom class on all labels of my required fields? > > - A. > Ticket #3512 addresses this issue. I'd suggest trying the latest patch just uploaded the other d

Re: A custom label on a newforms Field doesn't get passed trought pretty_name

2007-03-19 Thread Waylan Limberg
wercase, then that is possable. Whatever you type in your code is exactly how it will appear. That is complete customization. Pretty-name is just a shortcut for lazy programmers (we all are) when the default behavior is good enough. -- Waylan Limberg [EMAIL PROTECTED] --~--~-~-

Re: python 2.4 v 2.5 and DJANGO_SETTINGS_MODULE

2007-02-19 Thread Waylan Limberg
ect only. For example, mod_python has a `SetEnv` directive where the DJANGO_SETTINGS_MODULE` can be defined for a specific project. For more, I suggest reading the docs[1]. [1]: http://www.djangoproject.com/documentation/settings/ > > Any input related to the above topics would be g

Re: SCGIMount != '/'

2007-02-13 Thread Waylan Limberg
Sure, it's not likely that you'll have 'admin' in a lot of urls, but I think that illustrates the problem. You need to be able to match from the front of the url. If I recall correctly, 'REQUEST_URI' includes the proctal and domain and I wouldn't want to incl

Re: Directory structure

2007-02-12 Thread Waylan Limberg
look at the source for djangoproject.com [1] and you'll see what I mean. Of course, if each app is completely independent of each other, it's not such a big deal, especially if the developer/designer is one person. That's why you can use the settings to se

Re: Newforms: Can I do these?

2007-02-11 Thread Waylan Limberg
On Sun, 11 Feb 2007 17:43:44 -0500, johnny <[EMAIL PROTECTED]> wrote: > > Can I create the following in newforms: > > forms.DateTimeField yes > forms.IntegerField yes > forms.FloatField yes > forms.TextField try forms.CharField > forms.LargeTextField Not directly, but you can assign the

Re: changing maxlength html attribute

2007-02-09 Thread Waylan Limberg
e replaced with max_length everywhere when oldforms are dropped. As it'll be a backward-incompatible change it won't happen until after 0.96 though. -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subs

Re: Use a simple query string.

2007-02-05 Thread Waylan Limberg
On 2/5/07, Waylan Limberg <[EMAIL PROTECTED]> wrote: > On 2/4/07, Jason <[EMAIL PROTECTED]> wrote: > > > > Can anyone help with my super simple query string problem > > > > I'm simply trying to get www.mysite.com/uptodate?build=123 parsed. The &g

Re: Use a simple query string.

2007-02-05 Thread Waylan Limberg
you access the query through request.GET def uptodate(request): if request.method == 'GET': build = request.GET.get('build', '123') You could also just do: build = request.get['build'] But by using

Re: textarea - autoamtic line break

2007-02-02 Thread Waylan Limberg
de, post-submittal. I do that with one > > >> of my own forms (in order to fit the text in a box in a pdf). > > > > > Why write your own? > > > > > <http://docs.python.org/lib/module-textwrap.html> > > > > hey cool - just what i wanted at the

Re: Validation discrepancies between admin and newforms

2007-01-31 Thread Waylan Limberg
ndled as an IntegerField in newforms (thus validation fails > on dashes). > > Shouldn't the validation be centralized and occur only in one place? Or is > this a wanted behaviour, since the admin is a contributed app, and not > part of django core? > > Thanks, > -- >

Re: newbie strange behavior

2007-01-26 Thread Waylan Limberg
just using the server for development then you can add MaxRequestsPerChild 1 to your config file to force Apache to reload everything for each request. Just don't do that on a production server. -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received

Re: Shell question (simple)

2007-01-25 Thread Waylan Limberg
e complex that this, I'll write up a sample script that prints out the results and just rerun it after editing. That's generally easier in the long run, especially if I want to make some changes to the test code. -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~--

Re: video uploads (like you tube)

2007-01-24 Thread Waylan Limberg
/video-blogging-using-django-and-flashtm-video-flv/56 -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to d

Re: a password field?

2007-01-24 Thread Waylan Limberg
Whoops, sent that too soon. On 1/24/07, Waylan Limberg <[EMAIL PROTECTED]> wrote: > On 1/24/07, medhat <[EMAIL PROTECTED]> wrote: > > > > Hi all, > > > > Ok, here is a question for anybody who might have a quick answer (since > > I can't find

Re: a password field?

2007-01-24 Thread Waylan Limberg
question.) > Well, if your using newforms, you want the `PasswordInput -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Re: newforms: are FloatField and HiddenField missed yet ?

2007-01-24 Thread Waylan Limberg
On 1/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Does anyone else have thoughts about a FloatField? > See this ticket: http://code.djangoproject.com/ticket/3238 -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You receiv

Re: order_by not working with foreign keys:

2007-01-24 Thread Waylan Limberg
On 1/24/07, Bram - Smartelectronix <[EMAIL PROTECTED]> wrote: > > Waylan Limberg wrote: > > On 1/24/07, Bram - Smartelectronix <[EMAIL PROTECTED]> wrote: > >> Book.objects.all().select_related() > >> .order_by('-bookshop_bookstat.avg

Re: order_by not working with foreign keys:

2007-01-24 Thread Waylan Limberg
kshop_bookstat__avg_rating')[0:10] -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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

Re: Validation on Client Side? Django support only server side validation

2007-01-16 Thread Waylan Limberg
On 1/16/07, johnny <[EMAIL PROTECTED]> wrote: Django support only server side validation. Dose it support validation on Client Side? I would like to push it on client, to keep my server load light. Any client side processing would be done with javascript. However, you must always remember th

Re: newforms : how to display as_ul from views.py

2007-01-15 Thread Waylan Limberg
c = Context({'form': form, }) return HttpResponse(t.render(c)) I can make the template behave the way I want to using CSS. But that is not the idea... > -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You receiv

Re: Evaluation of urls.py in mod_python

2007-01-11 Thread Waylan Limberg
e__gte=now) > } > This will force the value of datetime.now to be evaluated only at run time. In other words, the value will actually represent the current time when the request is made. -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received

Re: Importing models from outside applications

2007-01-10 Thread Waylan Limberg
with db connection info should do the trick. Depending on how you plan to run your app, you can either permenantly set the DJANGO_SETTINGS_MODULE environment variable via the OS or in you python code. In your python code this should do the trick ( where myproject is on your pythonpath): import o

Re: Django made a mistake by not serving static file ?

2007-01-10 Thread Waylan Limberg
and as your still behind https (again, note the *s*) you're good and only need one certificate as everything is behind one domain. If your using Fcgi a few extra tricks with mod_rewrite (or your server's equivalent) should get you the s

Re: Underscore in CharField definition

2007-01-09 Thread Waylan Limberg
See line 5 of that file: from django.utils.translation import gettext_lazy as _ _('some text') is a call to the function gettext_lazy passing in 'some text' -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You re

Re: Removing SQL From Templates

2007-01-09 Thread Waylan Limberg
hen I suggest removing those calls from the template. Seems to me more like an issue of *when* the SQL queries are executed and select_related takes care of that. [1]: http://www.djangoproject.com/documentation/db_api/#select-related -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~-

Re: where does the old manipulator go?

2007-01-05 Thread Waylan Limberg
he form is redisplayed with error messages and pre-populated with the errant data) -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: What's the best way to learn newforms?

2006-12-31 Thread Waylan Limberg
On 12/31/06, Waylan Limberg <[EMAIL PROTECTED]> wrote: On 12/31/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > Regarding your deleted comment: Comments on the documentation pages > are intended to be suggestions and corrections for the docs themselves > -- not te

Re: rendering multiple dictionaries?

2006-12-31 Thread Waylan Limberg
t. [1]: http://www.djangoproject.com/documentation/templates_python/#subclassing-context-requestcontext -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" g

Re: What's the best way to learn newforms?

2006-12-31 Thread Waylan Limberg
mments form to a comments policy would help avoid this confusion. Just a suggestion. -- ---- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Problem with custom forms and related objects

2006-12-31 Thread Waylan Limberg
nd help with development by reporting bugs. I suppose that if you were stuck in an older version, you could work up your own patch, but seeing you're running the latest trunk, that seems unlikely. -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---

Re: Newforms clean_data

2006-12-29 Thread Waylan Limberg
call the validation. However, that could be attributed to the current lack of documentation (a problem that will no doubt be addressed soon) than anything else. And once I got the logic worked out in my view, the current implementation certainly made more sense and was less magic.

Re: Newforms clean_data

2006-12-29 Thread Waylan Limberg
l_form.is_valid() and contact_form.is_valid() : u.first_name = personal_form.clean_data['first_name'] -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D

Re: What's the best way to learn newforms?

2006-12-29 Thread Waylan Limberg
my form to use 'initial' values before I read about it here on the list. [1] http://code.djangoproject.com/browser/django/trunk/tests/regressiontests/forms/tests.py [2] http://code.djangoproject.com/log/django/trunk/django/newforms?limit=100&mode=stop_on_copy&format=rss [3

Re: Screencast: Django + Aspen = Stephane (was Re: pure-HTTP deployment?)

2006-12-21 Thread Waylan Limberg
ncast, I might look more closely. The way I see it, the screencast is just to wet our appetite for more. Unfortunately there isn't more AFAICT. -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Is there an easy to "humanize" a list?

2006-12-20 Thread Waylan Limberg
On 12/20/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: Waylan Limberg wrote: > Not that we need another way but this would work as well, and it > doesn't need special cases for one and two item lists but does insert > the "and" (unlike most of the solutions offere

Re: Is there an easy to "humanize" a list?

2006-12-20 Thread Waylan Limberg
t;and" (unlike most of the solutions offered): def humanize_list(list): return ", and".join(map(str, ", ".join(map(str, list)).rsplit(',',1))) -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this me

Re: Strange django-admin.py behaviour

2006-12-20 Thread Waylan Limberg
uot; as an executable, which meant that I'd just call "django-admin --version" from aywhere in the filesystem and it used to work before the update.] Anyone able to shed some light on it? Thanks, Cam > -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~--

Re: Noob: is there a complete library reference somewhere?

2006-12-18 Thread Waylan Limberg
a raw listing of > available modules, objects, attributes, etc, with just the bare > minimum text for each to explain what it is. There's always pydoc: http://docs.python.org/lib/module-pydoc.html -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~--

Re: Switching branches (was "Schema Evolution code")

2006-12-15 Thread Waylan Limberg
On 12/15/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 12/15/06, Waylan Limberg <[EMAIL PROTECTED]> wrote: > > No mention of the cross-platform path files? I would say they are > > easier to edit (comment/uncomment a line in a file) than symlink and > &g

Re: Paths in Python 2.5

2006-12-15 Thread Waylan Limberg
e > 4-5th attempt, most simply vanishing. (replies seem to be reliable) > > Please forgive my frustration It would seem that Python's most frustrating , and yet least documented feature for newcomers is the path. Once you get past that it'll get easier. -- Waylan Limber

Re: Switching branches (was "Schema Evolution code")

2006-12-15 Thread Waylan Limberg
://bob.pythonmac.org/archives/2005/02/06/using-pth-files-for-python-development/ -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post t

Re: Help with get absolute url

2006-12-14 Thread Waylan Limberg
rything is working right. -- ---- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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

Re: manage.py - "test" not a known action - how do I do unittests?

2006-12-14 Thread Waylan Limberg
b > > Anything in site-packages is automatically added to your path. That's a python feature - and the best place for third part packages. I would suggest moving/deleting that egg. Until you do, you'll (almost) always get that version of django. -- Waylan Limberg [EMAIL PROTECT

Re: manage.py - "test" not a known action - how do I do unittests?

2006-12-13 Thread Waylan Limberg
rsion of Django on your system. My guess is you have multiple copies and its using the wrong one. ./manage.py --version should return `0.96-pre` not 0.95 Check your Pythonpath to make sure it's pointing at the right Django source. -- Waylan Limberg [EMAIL PROTECTED] --~--~

Re: Problem setting up a separate media server

2006-12-13 Thread Waylan Limberg
On 12/13/06, Tipan <[EMAIL PROTECTED]> wrote: > > > > On Dec 13, 1:58 pm, "Waylan Limberg" <[EMAIL PROTECTED]> wrote: > > On 12/13/06, Tipan <[EMAIL PROTECTED]> wrote: > > > > http://192.168.1.9:3000/gobites.jpg";> > > &g

Re: Problem setting up a separate media server

2006-12-13 Thread Waylan Limberg
atic server (port 80) which then proxies any non-static requests on to the server running Django (on some random port). That would avoid the above problem. -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are

Re: Help with get absolute url

2006-12-13 Thread Waylan Limberg
See: http://www.b-list.org/weblog/2006/11/16/django-tips-get-most-out-generic-views -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Auto generate url patterns

2006-12-08 Thread Waylan Limberg
a HttpResponce 3. return Http404 if there is no matching url in db. Remember views are just normal python code so you can do pretty much anything you want as long as you eventually return an httpresponce -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~--

Re: Django and mod_python issues

2006-12-05 Thread Waylan Limberg
.path" Actually, you may want to include both lines. That way, `myproject.settings` will still work and you will be able to `import myapp` instead of `import myproject.myapp` making your apps more portable across projects. -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~--

Re: [importError] No module name py. Newby

2006-12-05 Thread Waylan Limberg
27;s not it, post your urls.py file here so we can see what may be causing the problem. > > > The path to d:\webdev\python is just fine and the welcome screen > displays just fine. > > > > > -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~---

Re: Apache ErrorDocument Question.

2006-12-01 Thread Waylan Limberg
Paul Childs wrote: > It looks like I am going down the wrong path. I think that what I > observed was by design since Django is handling the request. > > I think the question should be... > > How do I handle the 413 error within Django? > > Any help would be greatly appreciated. > > You'll like

Re: How should I store credit cards for offline processing

2006-12-01 Thread Waylan Limberg
Noah wrote: > It's only for a couple weeks or so until actual online processing > without storing the cards is implemented. It's also fairly likley there > won't be a single order taken IMO... > At the very least make sure you fully disclose that to any potential customers up front. Of course,

Re: Opera & caching

2006-11-29 Thread Waylan Limberg
ther-headers > > I don't use Django framework. > > Do you have some advice? > > > Thank you > Regards > > Michal > > > > > -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message be

Re: What is __init__.py for?

2006-11-19 Thread Waylan Limberg
> This is a Python thing, not just a Django thing. A quick search turned up this explanation: "The __init__.py files are required to make Python treat the directories as containing packages..." For more detail, read the rest here: http://www.python.org/doc/2.1.3/tut/node8.html#SECT

Re: Will django work with Apache 1.3 and FastCGI?

2006-11-17 Thread Waylan Limberg
On 11/17/06, walterbyrd <[EMAIL PROTECTED]> wrote: > > > gabor wrote: > > > > yes, django does work with apache 1.3 and fastcgi. > > > Thanks. Do you know if django will work with regular CGI? See this: http://code.djangoproject.com/wiki/ServerArrangements

Re: Acces to model object inside model

2006-11-17 Thread Waylan Limberg
your example you want to access "table wide" data. That would be were Model Managers come in. [1]: http://www.djangoproject.com/documentation/model_api/#id6 [2]: http://www.djangoproject.com/documentation/model_api/#managers -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~--

Re: Hiding directories from Django?

2006-11-15 Thread Waylan Limberg
Off > > Add a location for each dir that you do not want served by django. You should be doing this for media already. See this page: http://www.djangoproject.com/documentation/modpython/#serving-media-files So, for the forum dir do: SetHandler None > Many thanks! > > > > > -- ---

Re: Re: Django / Python and daylight saving time

2006-11-14 Thread Waylan Limberg
nvironment variable on Windows; I'll dig a bit > through old tickets tonight and see if I can find anything relevant. > > > -- > "May the forces of evil become confused on the way to your house." > -- George Carlin > > > > -- Waylan Limberg [EMAIL

Re: newbie startup question about ImportError on Windows with Apache/mod_python

2006-11-14 Thread Waylan Limberg
> > I really want to start learning Django/Python because I like the > structure. If only it installed on Windows as easily as RoR! Hopefully > this will be better with version 1.0. (I really don't want to learn > Ruby... even with Rails.) > > Any thoughts for this wanna

Re: Template Loader for PHP files

2006-11-08 Thread Waylan Limberg
r php templates. [1]: http://www.djangoproject.com/documentation/templates_python/#loading-templates [2]: http://www.djangoproject.com/documentation/templates_python/#loader-types [3]: http://www.djangoproject.com/documentation/templates_python/#the-template-dirs-setting -- Waylan L

Re: Bizarre form-mail thing

2006-11-03 Thread Waylan Limberg
he "quick example" ... > > patrick > > Am 03.11.2006 um 21:04 schrieb [EMAIL PROTECTED]: > > > > > Not following you Patrick. Why does 'to' have to be a list? I've got a > > single-recipient thing here. > > > > > > > >

Re: Please whitelist me!!!

2006-11-03 Thread Waylan Limberg
ango-developers/browse_thread/thread/73adcd35547d150 -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-u

Re: Forms trouble: Extra object ID appended to form action URLs

2006-11-03 Thread Waylan Limberg
because the request never gets past the > 404. > My guess is that your use of get_object_or_404 is covering the real error. Try commenting out that line and accessing your object directly ( I'm guessing something like this: o=MyObject.objects.get(pk=object_id) ) and see what errors

Re: Sharing models between apps

2006-10-30 Thread Waylan Limberg
class Rating(models.Model): photo = models.ForeignKey(Photo) # the rest of your model ... I'm not sure exactly what you have in mind, so a many-to-many or one-to-one field may be more appropriate there, but that should get you started. -- Waylan Limberg [EMAIL PR

Re: AJAX

2006-10-30 Thread Waylan Limberg
http://www.b-list.org/weblog/2006/07/02/django-and-ajax And for some examples see the wiki and these articles: http://www.b-list.org/weblog/2006/07/31/django-tips-simple-ajax-example-part-1 http://www.b-list.org/weblog/2006/08/05/django-tips-simple-ajax-ex

Re: directed graph in default admin

2006-10-27 Thread Waylan Limberg
just may be a coincidence of a poorly written example in which case you can ignore me. -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To pos

Re: status of authentication updates?

2006-10-25 Thread Waylan Limberg
re to offer feedback - both good and bad. -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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

Re: Help with List_display in Admin class

2006-10-23 Thread Waylan Limberg
=('self.fullname','city_address','postcode') > pass > > Just understand that you can no longer sort by that column in admin. -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message

Re: Import issue using signals.py

2006-10-19 Thread Waylan Limberg
I've resorted to > putting the "update_review_average" into the models.py - which has > created a new set of problems (see new post). > > As a newbie, I'm struggling to make much headway - guess it's not my > day! > > MerMer > > > > > --

Re: JSON serialization and non-model classes

2006-10-18 Thread Waylan Limberg
to the > JavaScript client. > > So, if anybody can tell me whether it's possible to create a "custom" > datastructure and serialize that over the wire as a JSON string, I'd > appreciate it very much. Within your view, create your "custom" datastructure

Re: Choosing a format for built-in comments

2006-10-16 Thread Waylan Limberg
o source, you won't overwrite your changes. -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us

Re: Choosing a format for built-in comments

2006-10-12 Thread Waylan Limberg
I > simply implement this? I'm actually a Django newbie, so don't blame me > if the answer is trivial. First add a field to your model with the choices of formats available. Then, in your template, use if statements to check which format was selected and display the comment

Re: writing templatetag in database?

2006-10-12 Thread Waylan Limberg
ag > for my sidebar templatetags within the db (that´s kind of strange). Thats correct. Any load tags do not carry over from the parent template when included. That behavior is by design. > > thanks, You're welcome -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~-

Re: Still really struggling with JOINS

2006-10-11 Thread Waylan Limberg
e this... > > > > I just whipped up something based on your model definition excerpts and > it works perfectly with: > > Product.objects.filter(productword__fk_word__value__exact='thomas').distinc­t() > Are you sure you use

Re: writing templatetag in database?

2006-10-10 Thread Waylan Limberg
On 10/10/06, Waylan Limberg <[EMAIL PROTECTED]> wrote: [snip] > Although, I'm not sure how you would pass the > current user to the loader. Just rethinking my answer. I would probably go with a custom templatetag instead. You already have the text of the sidebar template (f

Re: writing templatetag in database?

2006-10-10 Thread Waylan Limberg
et/632 [2]: http://groups.google.com/group/django-users/browse_thread/thread/28a15de5843711d8 -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To p

Re: Django newb and SAP

2006-10-10 Thread Waylan Limberg
filters as well. [1]: http://www.djangoproject.com/documentation/templates/#timesince [2]: http://www.djangoproject.com/documentation/add_ons/#humanize -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subsc

Re: Django and Ajax

2006-10-10 Thread Waylan Limberg
find various solutions posted in the wiki [1]. But the best (most complete) writeup I've seen is by James Bennet [2] & [3]. [1]: http://code.djangoproject.com/ [2]: http://www.b-list.org/weblog/2006/07/31/django-tips-simple-ajax-example-part-1 [3]: http://www.b-list.org/weblog/2006/

Re: django - kit

2006-10-09 Thread Waylan Limberg
ango with lighttpd: > I have to install: > 1 - python > 2 - lighttpd > 3 - flup > 4 - django > > then I have to do all the configuration work to make them happy togheter! ;) > > What I'm searching is a tool or a script or also some direction to > build this "p

Re: Can I pre-populate fields in the admin interface?

2006-10-06 Thread Waylan Limberg
s. > > Can I do it? If so, how? > http://www.djangoproject.com/documentation/model_api/#default -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group

Re: how could i weakly protect comments

2006-10-04 Thread Waylan Limberg
eblog/2006/07/16/django-tips-hacking-freecomment -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-u

Re: Support for db declaration of "on cascade delete"?

2006-10-04 Thread Waylan Limberg
n/#sql-appname-appname > > I'm developing an application that is mostly using Django to touch my > DB, but that defines some SQL stored-procedures for manipulation of some > of its data by other clients. I'd like the db-level "on cascade delete" > defined fo

Re: Use my own template system?

2006-10-04 Thread Waylan Limberg
answers are general enough to apply to any templating system. In fact, my answer above basicly paraphrases a couple paragraphs from that thread. [1]: http://groups.google.com/group/django-users/browse_thread/thread/2e5746bdd3ef3efe/ -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~-

Re: global template tags

2006-10-04 Thread Waylan Limberg
stContext object to it? > > This was just answered the other day: http://groups.google.com/group/django-users/browse_thread/thread/49e9669c64e353b2/ -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are s

Re: contrib comment system

2006-10-03 Thread Waylan Limberg
cking-freecomment On 10/3/06, Onno Timmerman <[EMAIL PROTECTED]> wrote: > > Is there somewhere some docs on the comment system in the contrib. > > Onno > -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because

Re: Re: Cannot get Many to Many Relationship To work - "name" not defined error message

2006-10-03 Thread Waylan Limberg
m time to time on the list. Of course, this page [1] already provides a decent list, but perhaps a list more specific to the skills needed for Django would be helpful as well. Although, is there really any difference in the skills needed? Maybe not. [1]: http://www.python.org/doc/ --

Re: Need help understanding Custom Views

2006-10-02 Thread Waylan Limberg
ely will work, > manipulating the data between the two from within a view because I > don't know how. I've been working on it today...still...little progess. You should probably get the code that submits the data working first. Try something similar to the examples provided abov

Re: Need help understanding Custom Views

2006-10-02 Thread Waylan Limberg
nderstand the "Hello World!" example, but not the PHP connection > one...it's the response part that I'm having trouble with. > Do you mean that you do not understand how to pass the data to the template for display, or something else? -- Waylan Limberg [EMAIL

Re: Confused: staff / active users

2006-09-27 Thread Waylan Limberg
figure that out. the "non-active" user stuff applies here as well. Hope that helps clear the fog. :-) -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django u

Re: Project Layout When Using Multiple Sites, Revisited

2006-09-25 Thread Waylan Limberg
from myproject.commonsettings import * Of course, this assumes the file myproject/commonsettings.py -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Re: [OT] Python based syntax highlighter for HTML?

2006-09-25 Thread Waylan Limberg
nscript/ [6]: http://www.andre-simon.de/ [7]: http://www.swig.org/ [8]: http://www.andre-simon.de/dokuwiki/doku.php?id=en:swig [9]: http://www.freewisdom.org/projects/python-markdown/ [10]: http://www.dalkescientific.com/writings/diary/archive/2005/04/12/wrapping_command_line_programs.html

Re: Python 2.5 anyone

2006-09-21 Thread Waylan Limberg
new sqlite3 wrapper, see [2]. [1]: http://code.djangoproject.com/ticket/2772 [2]: http://docs.python.org/dev/whatsnew/modules.html#SECTION000144 -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you a

Re: How to make django use psycopg2 as the default engine?

2006-09-19 Thread Waylan Limberg
some compatibility issues in various cases. You may want to search the list for specifics. -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To p

Re: Portlet like features

2006-09-19 Thread Waylan Limberg
wisted ? > See this [1] wikipage for a list of various solutions (twisted among them) that could give you a multi-threaded webserver. [1]: http://code.djangoproject.com/wiki/ServerArrangements -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You re

Re: Problem with INSTALLED_APPS setting

2006-09-18 Thread Waylan Limberg
On 9/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Waylan Limberg wrote: > > First, you only point to the app, not the models in your app. Second, > > you need to start from a place that is on your pythonpath. If liger is > > on your pythonpath, then j

  1   2   3   >