Re: How to build manipulator fields in dynamic way?
hi Jaroslaw, I guess you're trying to implement multipage forms. here is the basic ideas: 1. set a 'step' flag in your view function for determine the current step the user is doing 2. use the form manipulator.fields.append(forms.) to dynamically create form's layout base on 'step' 3. while processing to the next step, you could save the form elements' values in two ways as you like: (1) save them in the session/cookie (2) save them by put them into next step form's hidden elements' value 4. in the final step, you do the actual db saving. HTH :) --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
How to build manipulator fields in dynamic way?
How to create manipulator fields in more dynamic way? For example I have the form, where only one combobox field is displayed in the begining. After submit, another combobox will be displayed. But its content depends on previous choice... How to do it if I have to define all fields in the constructor? (it is executed only once): class Test(forms.Manipulator): def __init__(self): self.fields = ( forms.SelectField(field_name='first', choices=[(1,1), (2,2)]), forms.SelectField(field_name='second', choices=[what_todo]), ) --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Will Complex URLs Slow Things Down?
3. "(?i)pattern" matches "PATTERN" --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Will Complex URLs Slow Things Down?
I'm trying to match emails in my urls.py by doing the following (which was taken from core.validators: (?P[A-Z0-9._%-][+A-Z0-9._%-]*@(?:[A-Z0-9-]+\.)+[A-Z]{2,4}) I have a few questions, though. 1. If the url pattern is too complex, will it slow anything down? 2. I'm assuming this matches the url after it has been urldecoded? 3. how do I tell that to re.IGNORECASE? thanks and I hope that's not too many questions to ask --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Tagging app
On Friday 26 May 2006 22:37, Jacob Kaplan-Moss wrote: > Looking forward to seeing your code, OK, you can now get it here: http://files.lukeplant.fastmail.fm/public/python/lp_tagging_app_0.1.zip or here, using bzr: bzr branch http://files.lukeplant.fastmail.fm/public/python/lukeplant_me_uk/ Let me know if there are still any Python 2.4-isms, or any other problems obviously. A README is included. Luke -- "The first ten million years were the worst. And the second ten million, they were the worst too. The third ten million, I didn't enjoy at all. After that I went into a bit of a decline." (Marvin the paranoid android) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
How to validate CheckboxField?
I am using Django SVN. How to validate tthe form which consists of two CheckboxField fields. The rule is: the form is validated if ANY of those fields is checked. My manipulator is: from django import forms class TestManipulator(forms.Manipulator): def __init__(self): self.fields = ( forms.CheckboxField(field_name='first'), forms.CheckboxField(field_name='second'), ) The problem is, I have no access to validators parameter: forms.CheckboxField(field_name='first', validators=[myvalidator]) because (as I found in django/forms/__init__.py file) the constructor has only 'field_name' and 'checked_by_default'. I know that I can use CheckboxSelectMultipleField, e.g. forms.CheckboxSelectMultipleField( field_name='options', choices=[('1', '2'), ('first', 'second')], validator_list=[validators.isNotEmpty]), ) but generated html code is not acceptable for me, because I do not want to have ... list. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Q behavior with filter() and exclude()
On Friday 26 May 2006 18:57, Doug Van Horn wrote: > I posted this here to: > http://www.djangoproject.com/documentation/db_api/ > > It seems that when you pass a Q() object into .filter() or > .exclude(), you end up with the same results. That is, the context > of the method, filter or exclude, is ignored when it receives a Q > object. Thanks for catching this, I've added a test and fixed this now. Luke -- "The first ten million years were the worst. And the second ten million, they were the worst too. The third ten million, I didn't enjoy at all. After that I went into a bit of a decline." (Marvin the paranoid android) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: I need instructions in best way to use django under IIS shared hosting (Python is installed)
Ok, I'm in something now... I look to the rails guys how install ruby on rails under IIS. I get this: http://made-of-stone.blogspot.com/2006/01/rails-on-iis-revisited.html And with http://urlrewriter.net/index.php/using/installation/windows-server-2003 I was able to get close... I install FastCGI for windows and configure the fcgi file this way: from flup.server.fcgi_fork import WSGIServer #from flup.server.fcgi import WSGIServer from flup.middleware.gzip import GzipMiddleware from django.core.handlers.wsgi import WSGIHandler sys.path.insert(0, 'E:\\Proyectos\\Python\\jhonWeb\\') os.environ['DJANGO_SETTINGS_MODULE'] = 'jhonWeb.settings' handler = WSGIHandler() handler = GzipMiddleware(handler) WSGIServer(handler).run() I try to the default way in django site I setup the urlrewrite like this: And I get: The virtual path '/jhonWeb.fcgi' maps to another application, which is not allowed I allow the fastcgi.dll for .fcgi files and configure the registry. I follow the steps of the ruby on rails info I point before. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Related tags ala del.icio.us
On 5/26/06, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > > I would do something like this: > > def related_tags(tag_name): > return > Tag.objects.filter(paper__tag__name__exact=tag_name).exclude(name__exact=tag_name).distinct() > > Filter expression reads like "all tags that linked to any papers that > linked to this tag". Exclude and distinct should be self-explanatory. > > Note that with this Tag architecture the search is constrained to only > specific model (Paper in this case). If you have these same tags linked > to another models you won't have them as "related". But this what one > wants usually anyway. > Ahh, that's perfect. Is there any way I could use this with the 'object_list' generic view, or will I just have to roll my own view to get this one going? It's easy enough to do a view for it, but it *feels* like there'd be a way to pass some 'extra_context' to 'object_list', such that it can dynamically build QuerySets. Maybe if I could pass arguments to a callable in 'extra_context' Jay P. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: use admin info in non-admin page
On Friday 26 May 2006 14:34, tsnyder wrote: > Hi all, > > I'd like to add a "last modified on" bit to one of the pages generated by > django. I have noticed that the admin app keeps track of all the changes > that are made. Is it possible to access that information and display it on > one of my pages? > > Thanks, > > Tamara Hi Tamara, I was wondering this the other day. I just tried it and the following worked for me (from the python command line): cd /path/to/project/dir python manage.py shell from django.contrib.admin.models import LogEntry logs = LogEntry.objects.all() len(logs) dir(logs[0]) logs[0].__dict__ logs[0].action_time logs[0].action_time.strftime('%Y-%M-%d') Have fun! Eric. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Django Google Summer of Code & Merquery
Hi, I just read this post about the Google Summer of Code: http://groups.google.com/group/django-ecommerce/browse_thread/thread/a6af863a3df0f128 I think that post should have been on the django users list. I saw that Google sponsors Merquery - Text Indexing & Search Engine Abstraction Layer for Python by Brian Beck, mentored by Jacob Kaplan-Moss. I've built a search query parser with the Pyparsing module (http://pyparsing.wikispaces.com/), it's included in the Pyparsing examples. It parses user input (with an implicit AND, explicit AND, OR, quotes etc.) into something you can use to calculate the search results (I did this with Python sets, but you could do it anyway you like). If you like it, you can use it ofcourse (BSD license). Cheers, Rudolph --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Tagging app
Hey Luke -- Looks great; I've personally been working on something similar but it looks like you'll beat me to it :) I've also been slowing adding generic relationship support, and I'd really like to get a look at your GenericForeignKey class; chances are it would simplify a good deal of code I've written. I am, by the way, +1 on including a standard tagging app ("django.contrib.tags"?) in Django. I think it would be super-user. Looking forward to seeing your code, Jacob --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
use admin info in non-admin page
Hi all, I'd like to add a "last modified on" bit to one of the pages generated by django. I have noticed that the admin app keeps track of all the changes that are made. Is it possible to access that information and display it on one of my pages? Thanks, Tamara --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: select multiple in many to many fields not usable for long lists
I actually have mine set in a way that you can put type=CheckBox or type=SelectBox as an argument in the model definition. Let me know if you need the code. Ivan --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: select multiple in many to many fields not usable for long lists
cpaciba bolshoe I will try this, of course it breaks the original code but I guess it's the only way --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Member logins and member management
OK, so it sounds like the default would be to use the normal auth system. Are there any tips on doing things like member lists and such as part of the public website for logged in users. Can I just tie into the existing Users model? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
JOB: Come work for World Online!
Howdy folks -- We're hiring a designer/developer/project manager here at World Online (where Django was first developed). If you want to work for the best web development team anywhere in the world, you need to drop us a line. My co-worker Jeff has (many) more details at http:// www2.jeffcroft.com/2006/may/26/designer-wanted/, and the official job description is at http://www.lawrence.com/jobs/ designer_developer_project_manager/. If you want to know more after reading the above feel free to email me; instructions on applying for the job are at both links above. Jacob --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: I need instructions in best way to use django under IIS shared hosting (Python is installed)
Ok, fair points. I think that using python in a pure CGI setup is responsible in part of the lack of performance here. Because that, I'm looking how use fastcgi and/or wsgi here. Also, I don't see how the common setup of map .py extension for cgi can help with django (how can execure django/home? how load the settings?) I have FastCGI installed under IIS... I have a couple of WSGI solutions too., but I don't figure how can use that... :( --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Member logins and member management
On 5/26/06, Rob Hudson <[EMAIL PROTECTED]> wrote: > > I've built a small website for a club with Django trunk so far and it's > working very well. I'm ready to start thinking about member management > -- user account creation, logins, member list and details pages, etc. > > IIRC, there was some mention of a new auth system. Is the auth system > documented here: > http://www.djangoproject.com/documentation/authentication/ > the right thing for what I'm shooting for? Is there a new one on the > horizon I should hold out for and if so, how can I help test/contribute > to it? Or is this something that requires some of the built-in auth > stuff but needs some app of my own? The new auth stuff will probably only help if you need to use LDAP or some other user source. Here are links to the branch and the docs: http://code.djangoproject.com/browser/django/branches/multi-auth http://code.djangoproject.com/browser/django/branches/multi-auth/docs/authentication.txt Joseph --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Q behavior with filter() and exclude()
I posted this here to: http://www.djangoproject.com/documentation/db_api/ It seems that when you pass a Q() object into .filter() or .exclude(), you end up with the same results. That is, the context of the method, filter or exclude, is ignored when it receives a Q object. For example: In [1]: from django.db.models import Q In [2]: from django.contrib.auth.models import User In [3]: q = Q(username__exact='dvh') In [4]: User.objects.filter(q) Out[4]: [] In [5]: User.objects.exclude(q) Out[5]: [] In [6]: from django.db.models.query import QNot In [7]: q = QNot(username__exact='dvh') In [8]: User.objects.filter(q) Out[8]: [] In [9]: User.objects.exclude(q) Out[9]: [] (I have a user.username == 'dvh' in an sqlite3 database) I don't know if this is a feature, bug, or quirk, or obvious behavior, but I thought it was worthwhile to post it here as it tripped me up. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: SQL Unions with QuerySets?
Thanks! I ended up seeing that after my original post. I knew I was missing something. Unfortunately that behavior does exactly what you would expect, one query, yielding mixed results. In other words, if I search for 'zo' my results would be ordered ['Bozo', 'Zorro']. I'd like for the results to be more 'relevant'. That is, ['Zorro', 'Bozo'], based on the assumption that people typically search by typing in the beginning of some word. For now I'll end up adding lists together. Not efficient, but it'll be okay in the short term. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: What server configuration to use
I'm running my Django blog (http://davidavraamides.net) on Fedora under VMWare GSX 3.1. I have it configured for 256M (the physical box has 1GB). There is another Fedora guest running phpBB similarly configured. My typical load across all VMs is about 3%. It works great. Both are running Apache + MySQL. -Dave --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Please help this newbie
Salvage wrote: > I understand when you say I cant build those sites without having > programing skills but are there no modules that are already pre-built > like print this article, comment on this article, send by email, most > popular etc. That one can call with some django tags or something like > that? Forgive me if i sound so *not knowledgeable*. In a lot of those > news sites, I have seen, I can notice some things they have in common, > like podcasts, vodcasts, video files as well as those things I > mentioned above. Are there prebuilt modules or scripts that can be > called with the django tags into templates? Please indulge this newbie > a little. :-) I guess it kind of depends on what type of news sites you mean. The ones I thought you meant were ones built with Django like lawrence.com, which have a lot of programming behind them. There are other Django sites that require less programming, and their are prebuilt modules to help out with that e.g. the 'comments' app in contrib allows you to plug commenting onto a site easily. Have a search for Wilson Miners and Jeff Crofts recent blogs about the things you can do with relatively little programming using Django. Still other news sites (I'm not thinking of Django ones) are built using specialised CMS applications, that come out of the box with a lot of the features you mentioned, with point and click interfaces for turning these things on, but usually at the expense of flexibility, a kind of much of a muchness feel, and sometimes feature bloat that makes it hard to actually do simple things. Picking the right starting point for building your site is really important. To use the analogy of construction work, a pre-built CMS is like a fully built house where all you have to do is do the decorating and move the furniture around. Django is a foundation, some wall sections (and a few complete drop in rooms) and a set of amazing power tools that allow you to build a house in record time. I personally find that the pre-built house style is great until you want to move a wall or or change the wiring, at which point it will be a total pain, whereas Django's approach is ideal for me. However, if you are not really a programmer, the pre-built house style might be more appropriate. Luke --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
new to django, and have some questions
Greetings, (scroll down to CLIFFNOTES for the short version) Here at my company, we're using python and Zope, though several of the developers have been going on about how great Django is. I'm a systems administrator by profession, and a php/mysql developer who has been toying with dojo as hobby. I have a good understanding of development and programming using various languages like C, Java, Perl, PHP, *nix shell scripting, and a little Windows VB Scripting. I've decided I might go ahead and give Python a try, for a couple a reasons - learn a new language, one which is used here so I can better support our developers - I've got an idea for a large project, that in order to keep it clean I'm going to need to use some sort of framework. I've taken a couple stabs at it in php and repeatedly run into the "code bloat" problem. - As a sysadmin I'm somewhat of a security nazi. I'm one of three people who do the security reviews on our developers here, and generally the main one as I have the most web application building experience. Code built on Django is pretty secure right out of the box from what I've heard. One question I've been trying to get answered before I start messing around with the project is input validation. Specifically html. I'm looking at making heavy use of the Dojo Editor in my project. But there's a lot of html I'm going to want filtered, if not excluded altogether. There's some great tools out the for php that do this, I was wondering what functionality for this sort of thing exists in Django, or is available to plug into Django? I did search google, and google groups for an answer to this but haven't found anything solid, so that's why I am posting here. CLIFFNOTES: - Hobbyist programmer/professions sysadmin looking at giving django a try, with the dojo toolkit, and is curious as to what kind of html input validation tools are currently available for parsing input from the dojo editor. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Please help this newbie
Thanks Luke for your reply. I use a VPS so I guess mod_python can be installed cause I have root access. I am happy to hear that I can integrate the templates that i want. I understand when you say I cant build those sites without having programing skills but are there no modules that are already pre-built like print this article, comment on this article, send by email, most popular etc. That one can call with some django tags or something like that? Forgive me if i sound so *not knowledgeable*. In a lot of those news sites, I have seen, I can notice some things they have in common, like podcasts, vodcasts, video files as well as those things I mentioned above. Are there prebuilt modules or scripts that can be called with the django tags into templates? Please indulge this newbie a little. :-) Thanks a lot --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Choice Listings in Admin based on a previous Choice
I'm building an application that has the following structure: Category Subcategory I'm using 'choices' in the category object to display 14 categories. I'd like to base the Subcategory choices on the selection to the Category choice. Is there a simple way to do this? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Member logins and member management
On 5/26/06, Rob Hudson <[EMAIL PROTECTED]> wrote: > IIRC, there was some mention of a new auth system. Is the auth system > documented here: The multi-auth branch, currently under development, is meant to make it easier to drop in something other than the Django auth database for authentication (e.g., you could hook up to LDAP instead). It includes an extension to the auth system docs which you can read here: http://code.djangoproject.com/browser/django/branches/multi-auth/docs/authentication.txt#L677 -- "May the forces of evil become confused on the way to your house." -- George Carlin --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: html input tag width corresponding to CharFields always fixed
[EMAIL PROTECTED] wrote: > for a field defined as > spot =models.CharField(maxlength=250), > or band =models.CharField(maxlength=2), > > the input field in forms always has a fixed width. how to change that > ? Add length=. Like so: formfields.TextField(field_name="address_line1", maxlength=80, length=50), John --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Member logins and member management
I've built a small website for a club with Django trunk so far and it's working very well. I'm ready to start thinking about member management -- user account creation, logins, member list and details pages, etc. IIRC, there was some mention of a new auth system. Is the auth system documented here: http://www.djangoproject.com/documentation/authentication/ the right thing for what I'm shooting for? Is there a new one on the horizon I should hold out for and if so, how can I help test/contribute to it? Or is this something that requires some of the built-in auth stuff but needs some app of my own? Thanks for any help, Rob --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: SQLite concurrent access to database
Consider a django SQLite DB for each of the machines or have a central "collection" server running somewhere that the various individual agents can talk to - a REST, XML-RPC, or so API. -joe On 5/22/06, Kilian CAVALOTTI <[EMAIL PROTECTED]> wrote: On Sunday 21 May 2006 21:26, Graham King wrote:> Kilian,>> I does indeed say here that SQLite can handle concurrent transaction,> by queuing them up:>> http://www.sqlite.org/faq.html#q7>> You're not using an NFS share are you ? Apparently that would break it.Gosh, it didn't cross my mind, but that's it, the database is accessed from aNFS share. Thanks for pointing this out. > Are you running the app / script on each users machine, or on a web> server they all access ?It's executed by cron, on each monitored host.> I hope I don't get into too much trouble for saying this, but for > multi-user production systems (i.e. web apps) MySQL or Postgres would be> a better choice. As the link above says they "support a higher level of> concurrency and allow multiple processes to be writing to the same > database at the same time. "Indeed. I just wanted to use SQLite to avoid the MySQLinstallation/setup/upgrade cycle, but if I can't find a way to configure myNFS mounts to allow better locking, I'd switch to MySQL. Thanks a lot,--Kilian CAVALOTTI Administrateur réseaux et systèmesUPMC / CNRS - LIP6 (C870)8, rue du Capitaine Scott Tel. : 01 44 27 88 5475015 Paris - France Fax. : 01 44 27 70 00 X-Google-Language: ENGLISH,UTF8Received: by 10.54.73.18 with SMTP id v18mr187201wra;Mon, 22 May 2006 01:26:17 -0700 (PDT)Return-Path: < [EMAIL PROTECTED]>Received: from isis.lip6.fr (isis.lip6.fr [132.227.60.2])by mx.googlegroups.com with ESMTP id v11si902074cwb.2006.05.22.01.26.16;Mon, 22 May 2006 01:26:17 -0700 (PDT)Received-SPF: pass (googlegroups.com: best guess record for domain of [EMAIL PROTECTED] designates 132.227.60.2 as permitted sender)Received: from poleia.lip6.fr ( poleia.lip6.fr [132.227.205.24]) by isis.lip6.fr (8.13.6/jtpda-5.4+mv) with ESMTP id k4M8Q3wn020229 ; Mon, 22 May 2006 10:26:03 +0200 X-pt: isis.lip6.frReceived: from spip.lip6.fr (mailia [127.0.0.1]) by poleia.lip6.fr (8.13.3/jtpda-5.4+CB) with ESMTP id k4M8Q2cd006328 ; Mon, 22 May 2006 10:26:02 +0200From: Kilian CAVALOTTI <[EMAIL PROTECTED]> Organization: LIP6To: django-users@googlegroups.comSubject: Re: SQLite concurrent access to databaseDate: Mon, 22 May 2006 10:26:07 +0200User-Agent: KMail/1.9.1 Cc: Graham King <[EMAIL PROTECTED]>References: <[EMAIL PROTECTED]> < [EMAIL PROTECTED]>In-Reply-To: <[EMAIL PROTECTED]>Mime-Version: 1.0 Content-Type: text/plain; charsetUTF-8Content-Transfer-Encoding: quoted-printableMessage-Id: <[EMAIL PROTECTED]> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (isis.lip6.fr [132.227.60.2]); Mon, 22 May 2006 10:26:03 +0200 (CEST)X-Scanned-By: isis.lip6.frOn Sunday 21 May 2006 21:26, Graham King wrote:> Kilian,>> I does indeed say here that SQLite can handle concurrent transaction,> by queuing them up: >> http://www.sqlite.org/faq.html#q7>> You're not using an NFS share are you ? Apparently that would break it.Gosh, it didn't cross my mind, but that's it, the database is accessed from a NFS share. Thanks for pointing this out.> Are you running the app / script on each users machine, or on a web> server they all access ?It's executed by cron, on each monitored host. > I hope I don't get into too much trouble for saying this, but for> multi-user production systems (i.e. web apps) MySQL or Postgres would be> a better choice. As the link above says they "support a higher level of > concurrency and allow multiple processes to be writing to the same> database at the same time. "Indeed. I just wanted to use SQLite to avoid the MySQLinstallation/setup/upgrade cycle, but if I can't find a way to configure my NFS mounts to allow better locking, I'd switch to MySQL.Thanks a lot,--Kilian CAVALOTTI Administrateur réseaux et systèmesUPMC / CNRS - LIP6 (C870)8, rue du Capitaine Scott Tel. : 01 44 27 88 54 75015 Paris - France Fax. : 01 44 27 70 00 --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: SQL Unions with QuerySets?
On May 26, 2006, at 10:34 AM, Doug Van Horn wrote: > Are there plans to provide & and | operators > on QuerySet objects? It seems like that'd be a pretty big > undertaking, > but pretty frickin sweet if done well /me steps out of time machine... See http://www.djangoproject.com/documentation/db_api/#complex- lookups-with-q-objects In your personal case:: qs = name_startswith | name_contains if len(input) >= 5: qs = qs | description_startswith | description_contains return qs[start:start+pagesize+1] This code does *one* query only. Jacob --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: SQL Unions with QuerySets?
I wish I could edit my post. I see that & and | do work. I posted to early. I think you can pretty much disregard my post. I'm probably going to have to get clever in joining up my data for 'relevence'. Sorry for the disturbance. I'll be sure to google better next time. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Templates parameters
Hi djangonauts, I'd like an advice on the following problem: I try to display a sorted list in a template, according to GET parameters. I'd like to use the 'dictsort' filter and the 'reversed' keyword, since I'd like to sort on values created in the view, which are not present in DB. Currently, I have: {% for l in list|dictsort:"name" %} ... {% endfor %} I can replace "name" by a variable, but I'd also like to replace 'reversed' by a variable, to be able to control the sort order from the GET payload. Is there a way to achieve this? Or another mean to control sort fields and order from GET for a list? In a more general way, it would be very convenient to be able to pass parameters to templates blocks, and to have sort of templates functions: I often use the same HTML blocks with a slight parameter changing (like class attribute), and I currently have to duplicate these redundant blocks. Which seems quite frustrating for a DRY framework. :) Thanks in advance, -- Kilian CAVALOTTI Administrateur réseaux et systèmes UPMC / CNRS - LIP6 (C870) 8, rue du Capitaine Scott Tel. : 01 44 27 88 54 75015 Paris - France Fax. : 01 44 27 70 00 --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
SQL Unions with QuerySets?
I thought I'd post this as I'm not seeing anything obvious in the documentation (that is to say, I cannot /find/ anything, not that it /isn't/ there in an obvious place). I'm making a particular object searchable from my customer UI. I will have a field titled: 'Quick Search' which will search the name and description of the table in question. I'd like the dataset to look like this: filter(name__istartswith=input) UNION filter(name__icontains=input).exclude(name__istartswith=input) if len(input) >= 5: UNION filter(description__istartswith=input) UNION filter(description__icontains=input).exclude(description__istartswith=input) The idea is to make the results somewhat relevant based on the fact that people typically know what something starts with, so that should be first. My approach right now is to do the following (presume logically named query set results): results = list(name_startswith) + list(name_contains) if len(input) >= 5: results += list(description_startswith) + list(description_contains) return results[start:start+pagesize+1] The problem with this is that the full result set is pulled into memory before the final result is used. I know I could be more clever around checking the total result sizes and not continuting, but that seems tricky when you want results 50..60. Is there any way to do sql UNION behavior through the APIs? Or INTERSECT for that matter? Or should I consider dropping into SQL mode and doing my own thing? Are there plans to provide & and | operators on QuerySet objects? It seems like that'd be a pretty big undertaking, but pretty frickin sweet if done well :-D. Anyway, just asking. Thanks! doug. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Please help this newbie
Salvage wrote: > I have never coded in python and even my knowledge of php is > limited(though I can install any script with php). But I see from the > news sites that are built with django, that it has all that i need for > newspaper/media sites. I want to know if I django can be installed in a > hostspace with just an ip like http://22.234.67/~newssite . So that i > can make all the mistakes, try to learn how to use before moving to > qualified domain names. You can use just an ip address, but you need to ensure that your host provider supports mod_python (assuming you are going to use mod_python and apache). > I also wish to know if I can use template > designs from dreamweaver or predesigned from templatemonster to > integrate into django. Yes, you can use any HTML based template. The Django templating language, that you will need to insert dynamic content, is easy to learn. > Please, the tool am using now for news site is limited compared to what > I see with the news sites built with django. Without some programming ability, you won't be able to create news sites like the ones you've seen. > Also how easy is it to use > after installation? Not sure what you mean. Django is not an out-of-the-box CMS - it is a tool for building that kind of web site. You do get the 'admin' interface out of the box, though, and this is very easy to use. Luke --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Problems with stepping with the tutorial
On Friday 26 May 2006 07:26, kender wrote: > /usr/lib/python2.3/site-packages/django/bin/django-admin.py > startproject new $ python Python 2.3.5 (#2, Aug 30 2005, 15:50:26) [GCC 4.0.2 20050821 (prerelease) (Debian 4.0.1-6)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import new >>> help(new) Help on module new: NAME new - Create new objects of various types. Deprecated. FILE /usr/lib/python2.3/new.py DESCRIPTION This module is no longer required except for backward compatibility. Objects of most types can now be created by calling the type object. In other words, use a different name than 'new' as that one is already taken. Have fun! Eric. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Problems with stepping with the tutorial
And, I use python2.3 to run manage.py, the same my django libs are installed to: ls -l `which python` lrwxr-xr-x 1 root root 9 2006-02-17 03:17 /usr/bin/python -> python2.3 --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Problems with stepping with the tutorial
Hey, I just try the tutorial I found on http://www.djangoproject.com/documentation/tutorial1/. This is what I do (after installing django from svn): * create new project (/usr/lib/python2.3/site-packages/django/bin/django-admin.py startproject new). It creates a directory 'new', containing the __init__.py, manage.py, settings.py and urls.py files * cd to new, and run python manage.py runserver. Just as tutorial says. Here's what I get: Traceback (most recent call last): File "manage.py", line 11, in ? execute_manager(settings) File "/usr/lib/python2.3/site-packages/django/core/management.py", line 1250, in execute_manager execute_from_command_line(action_mapping) File "/usr/lib/python2.3/site-packages/django/core/management.py", line 1171, in execute_from_command_line translation.activate('en-us') File "/usr/lib/python2.3/site-packages/django/utils/translation.py", line 195, in activate _active[currentThread()] = translation(language) File "/usr/lib/python2.3/site-packages/django/utils/translation.py", line 120, in translation if settings.SETTINGS_MODULE is not None: File "/usr/lib/python2.3/site-packages/django/conf/__init__.py", line 28, in __getattr__ self._import_settings() File "/usr/lib/python2.3/site-packages/django/conf/__init__.py", line 55, in _import_settings self._target = Settings(settings_module) File "/usr/lib/python2.3/site-packages/django/conf/__init__.py", line 83, in __init__ raise EnvironmentError, "Could not import settings '%s' (Is it on sys.path? Does it have syntax errors?): %s" % (self.SETTINGS_MODULE, e) EnvironmentError: Could not import settings 'new.settings' (Is it on sys.path? Does it have syntax errors?): No module named settings Seems something very diffrent from what is told in tutorial, and I didnt done any modifications to the files django-admin have created. Any ideas what do I do wrong/what should I do now? it's my first meeting with django, wanna try it and see if it fits my needs. Cheers, Kender --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
select multiple in many to many fields not usable for long lists
hello, the default html tag in forms for many to many fields is a select multiple. but this is very hard to use for long lists of 200 + items where the selected items are few. also once you click once in the select field (by accident say) all multiple selection is cancelled so that all the information is lost. is there an easy way to ask for a rendering with a list of checkbox rather than select multiple ? thanks --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Please help this newbie
I have never coded in python and even my knowledge of php is limited(though I can install any script with php). But I see from the news sites that are built with django, that it has all that i need for newspaper/media sites. I want to know if I django can be installed in a hostspace with just an ip like http://22.234.67/~newssite . So that i can make all the mistakes, try to learn how to use before moving to qualified domain names. I also wish to know if I can use template designs from dreamweaver or predesigned from templatemonster to integrate into django. Please, the tool am using now for news site is limited compared to what I see with the news sites built with django. Also how easy is it to use after installation? I also can pay a token for installation and a little tweaking(I really dont have much but am willing) when am ready to host in fully qualified domain. Please , someone should endeavour to help .Thanks --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
html input tag width corresponding to CharFields always fixed
Hello, for a field defined as spot =models.CharField(maxlength=250), or band =models.CharField(maxlength=2), the input field in forms always has a fixed width. how to change that ? thanks --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: 404 and 500 erros
Vladikio wrote: > I know errors 500 and 404 automatically use 404.html and 500.html ... >but is there a way to define a view that handles those errors ? > Yes. http://www.djangoproject.com/documentation/tutorial3/#write-a-404-page-not-found-view > For instance to send an email each time a 500 error happens ? > > In fact Django already does this by default when you set DEBUG = False in your settings. It sends email to people listed in ADMINS setting. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Slicing [-1] on objects.all()
Jay Parlar wrote: > Maybe a note should go into the db_api docs about -1 not working? I > did look at those docs before sending my original message, and didn't > see anything about that. I think it should throw an exception saying that negative indices are not supported (and even include a hint about reversing the ordering). I'll get that fixed that soon, thanks. Luke --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: What server configuration to use
PythonistL wrote: > I am going to setup a server to use it with Django. > I am going to use: Trustix Linux (http://www.trustix.org) > mod_Python with Apache > > Is 1GB memory enough? > > Regards, > L. > I'm running two Django sites (www.carriagereturn.org and www.mytimestream.com) on a virtual server with 160 Mb memory (Gentoo Linux). No problems. My biggest memory hog is MySQL (on the same box), which I should really tune to use less memory. So Apache / Django won't have any problems with memory. The only concern is if you plan to use in-memory caching, and how much memory you plan to give that. Having just read Milton's reply, I should point out my experience only applies to small / medium sites. The biggest site on my box gets 30 000 hits a day. Regards, Graham. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: views
Mary, If I'm understanding you correctly you can simply use the 'values' method of the DB-API to query the value of the field for all rows: >>> from danet.blog.models import Post >>> Post.objects.values('slug') [{'slug': 'yet-another-django-blog'}, {'slug': 'fun-at-home-and-zoes-first-birth day'}, {'slug': 'florida-feb-06'}, {'slug': 'probability-and-expectation'}, {'sl ug': 'author'}, {'slug': 'sample-article'}, {'slug': 'christmas-2004'}, {'slug': 'letters-to-eli'}, {'slug': 'snow-day-january-2005'}, {'slug': 'favorites'}, {' slug': 'encrypted-usb-backups'}, {'slug': 'aspnet-2'}, {'slug': 'code-highlighti ng'}, {'slug': 'multiple-main'}, {'slug': 'strcpy'}, {'slug': 'zoes-arrival'}, { 'slug': 'getting-nia'}] >>> This returns a list of dictionaries. You can just extract out the values with: >>> x = Post.objects.values('slug') >>> [d['slug'] for d in x] ['yet-another-django-blog', 'fun-at-home-and-zoes-first-birthday', 'florida-feb- 06', 'probability-and-expectation', 'author', 'sample-article', 'christmas-2004' , 'letters-to-eli', 'snow-day-january-2005', 'favorites', 'encrypted-usb-backups ', 'aspnet-2', 'code-highlighting', 'multiple-main', 'strcpy', 'zoes-arrival', ' getting-nia'] >>> If you want to get them in a certain order, or filter them first, then you can use the 'order_by' and 'filter' methods. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: What server configuration to use
you'll probably want to detail expected traffic levels On 5/26/06, PythonistL <[EMAIL PROTECTED]> wrote: > > I am going to setup a server to use it with Django. > I am going to use: Trustix Linux (http://www.trustix.org) > mod_Python with Apache > > Is 1GB memory enough? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
What server configuration to use
I am going to setup a server to use it with Django. I am going to use: Trustix Linux (http://www.trustix.org) mod_Python with Apache Is 1GB memory enough? Regards, L. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Tagging app
arthur debert wrote: > ps: how is the GenericForeignKey going to work? will it be imported > from the tagging app's package, or will it go into trunk? There is no guarantee that any of this stuff will go into trunk at all - the core django devs would obviously have to be for it first. But the GenericForeignKey class could be usefully part of the ContentTypes contrib app. However, one constraint of my current project is that I have models with string primary keys. I've got a simple 'mapper' system for dealing with this that GenericForeignKey uses, but I'm not sure if it is such a common case that it is worth the extra hassle - for example, the 'comments' contrib app does not handle this case AFAICS. Perhaps GenericForeignKeyInteger and GenericForeignKeyString could both be created - looking at the 'comments' contrib model, GenericForeignKeyInteger could be used to improve it - it would replace (or augment) the get_content_object() getter method with an attribute that handles both setting and getting. Luke --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Tagging app
Ivan Sagalaev wrote: > The single target means that one tag can't be used for different models? Yep, a single 'Tag' object is associated with just one target and one creator. However, you can easily tag different models and objects with the same bit of text. > I have chosen a different approach in my app: tags are basically just > text labels that are linked with models with ManyToMany. This allows to > do some interesting things. For example in my music exchange service I > have users with tags meaning their likings like "blues", "rock", > "hard-rock" so one can easily search both albums and artists with these > same tags. You can do the same thing with my code - a search for a specific text value will return Tags for different types of objects - the 'TagTarget' object and related methods address that specific need. One of the things that motivated my design was the ability to store creation dates - i.e. you can see exactly when you (or anyone else) tagged a specific item with a specific bit of text. Ian's solution goes further, and has various models, including a 'Bookmark' that allows more information to be stored, and other models that store summary information. I think the problem here is analagous to the multiplicity of Python web frameworks - Python/Django makes it so easy! I've chatted with Ian a bit, and while our different approaches cover the same ground, there are reasons I couldn't use his without modification and vice-versa. Perhaps we should set up some pages doing comparisons of the different approaches, including code that can be downloaded. If a clear 'winner' drops out i.e. a solution that will fit a lot of people, it could be suggested that it is put into contrib in Django. But there's no guarantee that will happen in any case, so it would be good to have somewhere central where people can compare and make use of this code. I'll try to tidy something up and release it tonight. It's got a reasonably amount of code doc, and I'll try to add some examples. Luke --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
404 and 500 erros
Hi, I know errors 500 and 404 automatically use 404.html and 500.html ... but is there a way to define a view that handles those errors ? For instance to send an email each time a 500 error happens ? Best, -- Vladikio --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Tagging app
Sounds great, I'd love to see this added. Regards, Jason --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---