Re: Open Linux Router

2007-07-26 Thread westymatt
It would be great to get some aide with the views/models stuff. I am currently developing the libraries. Your sysadmin skills will come in handy when developing the modules. Would you like to sign up at the forum, we will start up the mailing list probably tomorrow.

Re: newforms: common constraints

2007-07-26 Thread Doug B
Garg, hit enter too fast. Class MyForm(forms.Form): username = forms.CharField(max_length=12) def clean_username(self): username = self.clean_data['username'] if username == 'bob': raise ValidationError("Bob is not allowed here") return username If

Re: newforms: common constraints

2007-07-26 Thread Doug B
newforms does that, but it's up to you do take care of the details by either subclassing one of the existing fields like this snippet shows: http://www.djangosnippets.org/snippets/115/ Or by making a specially named method on the form definition like this: Class MyForm(forms.Form) username

Re: Open Linux Router

2007-07-26 Thread westymatt
Yeah its the webserver for olr not the public site. The django server seems like a good start, just add ssl and logging ect, and lots of security enhancements --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Open Linux Router

2007-07-26 Thread westymatt
We are going to develop its own web server probably based on django development server with enhancements + security enhancements. It will be like miniserver.pl in Webmin. A standalone webserver, so that we don't run into conflicts being hosted on apache and editing its confs ect. We are

Re: Open Linux Router

2007-07-26 Thread Graham Dumpleton
On Jul 27, 2:30 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Jul 27, 2:05 pm, westymatt <[EMAIL PROTECTED]> wrote: > > > Hi, I am one of the lead developers of Open Linux Router. Currently > > we are rewriting OLR in python/django. We are looking for developers > > who would like to

Re: Open Linux Router

2007-07-26 Thread Graham Dumpleton
On Jul 27, 2:05 pm, westymatt <[EMAIL PROTECTED]> wrote: > Hi, I am one of the lead developers of Open Linux Router. Currently > we are rewriting OLR in python/django. We are looking for developers > who would like to contribute to the project. Theres alot to be done >

Re: Open Linux Router

2007-07-26 Thread westymatt
We are developing a web interface to quagga/xorp, ssh, ftp, rsync, users/groups, apache, mysql, you know name it and the goal is to develop a module to configure it and install it if its not there. We went with a webmin design last time and we are now rewriting it in django/python. What skills

newforms: common constraints

2007-07-26 Thread james_027
Hi all, I may not well understand the purpose of newforms, or perhaps it is still in a very early alpha stage ... I am looking to implement some common constraints like mininum or maximum letter of character field then values for numerical field., range for numerical or date field. Thanks

Re: Open Linux Router

2007-07-26 Thread Justin Lilly
Hey. What sort of things will you need to accomplish with OLR's web interface? I'm interested, but not sure I have the necessary skills. -justin On 7/27/07, westymatt <[EMAIL PROTECTED]> wrote: > > > Hi, I am one of the lead developers of Open Linux Router. Currently > we are rewriting OLR

Re: How to prevent updating auto_now date field.

2007-07-26 Thread oggie rob
> Is it possible? > Or should I remove auto_now and update the date field whenever > updating the model? If you can't update to trunk, this would probably be your easiest solution. It should only be a few lines of code. -rob --~--~-~--~~~---~--~~ You received

Open Linux Router

2007-07-26 Thread westymatt
Hi, I am one of the lead developers of Open Linux Router. Currently we are rewriting OLR in python/django. We are looking for developers who would like to contribute to the project. Theres alot to be done templates/db/(independent web application server/olr-lib ect. If anyone is interested

Re: Confusion over CRUD generic views and newforms

2007-07-26 Thread Russell Keith-Magee
On 7/27/07, Matt <[EMAIL PROTECTED]> wrote: > > 3693 is marked as 'accepted' - does that mean that its changes are in > trunk? No - it means that this is a change that we want to make, but haven't yet. Usually it means that there isn't a patch available, or that the patch isn't correct. In this

Re: There's got to be a better way

2007-07-26 Thread [EMAIL PROTECTED]
> > I second the weirdness. I'd try tossing an > > assert False, len(future_events) > > immediately after the > > future_events = Event.objects.select_related().filter(...) > > statement to see what Django thinks it's bringing back for future > events. > > > It wasn't anything to do with

Re: How to pick a template based on the request object?

2007-07-26 Thread [EMAIL PROTECTED]
Just out of curiosity...why not use the same templates, and switch the css file you are referencing for a different look? On Jul 26, 1:53 pm, "Stefan Matthias Aust" <[EMAIL PROTECTED]> wrote: > I'm searching for the best way to "theme" an application. I'd like to > pick a template based on the

Re: How to prevent updating auto_now date field.

2007-07-26 Thread Russell Keith-Magee
On 7/27/07, Mambaragi <[EMAIL PROTECTED]> wrote: > > I have to prevent updating auto_nowed field for just one action. > > Is it possible? It is not possible in 0.96, but it is possible on trunk. A recently added feature allows you to call: instance.save(raw=True) which will prevent any field

How to prevent updating auto_now date field.

2007-07-26 Thread Mambaragi
Hello, Django 0.96, Python 2.5. I have a model which has an auto_now date field for checking update time. But as you know there will always be exceptions. I have to prevent updating auto_nowed field for just one action. Is it possible? Or should I remove auto_now and update the date field

Re: There's got to be a better way

2007-07-26 Thread Tim Chase
>> events = {} # or SortedDict if order matters >> + new_lists = 0 >> + appended_lists = 0 >> for event in future_events: # one DB hit here >> - region = event.club.region >> + region = str(event.club.region) >> +if region in events: >> + appended_lists += 1 >> +

Re: GSoC Update: [Check Constraints] New features and using it with Newforms.

2007-07-26 Thread Tim Chase
I'd say if >> constraints = ( >> ('check_foo', >> Check(field__gte=100) | Check(field__lte=42) >> ) >> ) > > This is supported. then adding this >> constraints = ( >> ('check_foo', >> Check(Q(field__gte=100) | Q(field__lte=42)) >> )

Re: SplitDateTimeField error

2007-07-26 Thread jeffhg58
Found out my problem. The form declaration should be SplitDateTimeField not DateTimeField Thanks, Jeff -- Original message -- From: jeffhg58 <[EMAIL PROTECTED]> > > I was wondering if anyone has experienced this problem before. > > I have a search screen where I

FYI: django-logging problem with latest dev version of Django (patch info included)

2007-07-26 Thread keithb
Using the latest Django revision (anything after the Unicode branch merge), if a view returns a page with any non-ASCII characters, you'll get an error in django-logging when it tries to rewrite the page. For more info and a patch, check out the django-logging ticket:

SplitDateTimeField error

2007-07-26 Thread jeffhg58
I was wondering if anyone has experienced this problem before. I have a search screen where I use a SplitDateTimeField widget. It seems that I get the following error when I do the is_valid function The error is TypeError at /resultsdb/ expected string or buffer Request Method: GET Request

Re: There's got to be a better way

2007-07-26 Thread [EMAIL PROTECTED]
On Jul 26, 4:17 pm, Tim Chase <[EMAIL PROTECTED]> wrote: > > AssertionError: {'Southeast': [], > > 'Northeast': > > [], 'Pacific': [ > show>], > > 'Southwest': []} > > [aside: please use edited-down inline posting conventions rather > than top-posting to make the conversation easier to follow] >

Re: Confusion over CRUD generic views and newforms

2007-07-26 Thread Matt
> The CRUD generic views are using oldforms AFAIK. Patches 3639 (http://code.djangoproject.com/ticket/3639) and 4636 (http://code.djangoproject.com/ticket/4236) seem to address this problem, but I've not had any luck applying them. 3693 is marked as 'accepted' - does that mean that its changes

Re: GSoC Update: [Check Constraints] New features and using it with Newforms.

2007-07-26 Thread Thejaswi Puthraya
> Some questions/considerations/feedback I would love to see > addressed if they haven't been already (and please don't take > them as a knock against your work...I love the idea of > constraints and I'm pleased to see your work on them): I was probably asked to post to the Django-users list

Re: newforms: How to make a Checkboxed user select list...

2007-07-26 Thread Russell Keith-Magee
On 7/26/07, onno <[EMAIL PROTECTED]> wrote: > > On Jun 26, 9:57 am, Jens Diemer <[EMAIL PROTECTED]> wrote: > > Jens Diemer schrieb: > > > > > I would like to make a newforms user select list, from every existing > > > django > > > users, looks like this: > > ... > This might be added to the

Re: How to pick a template based on the request object?

2007-07-26 Thread Doug B
Using threadlocals and a custom template loader would probably work, just put your loader first in settings.py. http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

tsearch2 problems in postgres?

2007-07-26 Thread John
SELECT *, rank(ts_vec, to_tsquery('default', 'lc & 11(')) FROM us WHERE ts_vec @@ to_tsquery('default', 'lc & 11(') LIMIT 9 OFFSET 0 this query gives an error in tsearch2 saying syntax error any idea on how 2 strip the non safe tsearch stuff before feeding it to sql this is from a web

Re: acute (á, é, etc) characters in my templates

2007-07-26 Thread vida
That did it. Thanks. On Jul 26, 11:56 am, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 7/26/07, vida <[EMAIL PROTECTED]> wrote: > > > As of 5764 (today, 1 AM) it still doesn't work. > > If your template files are in an encoding other than UTF-8, you'll > also want to set the FILE_CHARSET

Django Developer wanted.

2007-07-26 Thread Vance Dubberly
I'm posting this here because I couldn't find anything on the django site about there being an appropriate place for "Help Wanted." == official post == Web Application Developer Challenging full-time permanent position with ASANI Solutions, LLC. at NASA Ames Research Center in Mountain View,

edit_inline fields does not save

2007-07-26 Thread stryderjzw
Hi, I'm having a similar problem to this thread below: http://groups.google.com/group/django-users/browse_thread/thread/608554256525c37e/6c944a02a622ba53?lnk=gst=edit_inline+does+not+save=1#6c944a02a622ba53 For my problem, I'm creating a GroupProfile, similar to the well known UserProfile. I

Re: There's got to be a better way

2007-07-26 Thread Tim Chase
> AssertionError: {'Southeast': [], > 'Northeast': > [], 'Pacific': [ show>], > 'Southwest': []} [aside: please use edited-down inline posting conventions rather than top-posting to make the conversation easier to follow] I'm not sure if just using "region" is being considered a unique item

Re: functions missing from django.utils.translation

2007-07-26 Thread Peter Baumgartner
On 7/26/07, Peter Baumgartner <[EMAIL PROTECTED]> wrote: > > I'm running revision 5765 on a CentOS in Python 2.4.3 and it doesn't > recognize (ImportError) the following functions from > django.utils.translation: ugettext, ungettext, deactivate_all > > I've redownloaded django, checked

Re: There's got to be a better way

2007-07-26 Thread [EMAIL PROTECTED]
AssertionError: {'Southeast': [], 'Northeast': [], 'Pacific': [], 'Southwest': []} On Jul 26, 3:45 pm, Tim Chase <[EMAIL PROTECTED]> wrote: > >>future_events = Event.object.filter( > >> start_date__gte=now).select_related( > >> ).order_by('start_date') > > >>events = {} # or

Re: There's got to be a better way

2007-07-26 Thread Tim Chase
>>future_events = Event.object.filter( >> start_date__gte=now).select_related( >> ).order_by('start_date') >> >>events = {} # or SortedDict if order matters >>for event in future_events: # one DB hit here >> region = event.club.region >> ev_list =

Re: There's got to be a better way

2007-07-26 Thread [EMAIL PROTECTED]
I'm probably doing something wrong in my template now, but that version is only returning one event per region, and the order is backwards. I tried .order_by('-start_date'), but it didn't appear to make any difference. On Jul 26, 3:12 pm, Tim Chase <[EMAIL PROTECTED]> wrote: > > few minor

Re: There's got to be a better way

2007-07-26 Thread Tim Chase
> few minor questions: > missing ) > [(region, future_events.filter(club__region=region) for region in regions] > > guessing the missing ) goes here: > [(region, future_events.filter(club__region=region)) for region in regions] Yup...must have been my poor transcription from brain to email.

Re: There's got to be a better way

2007-07-26 Thread [EMAIL PROTECTED]
Thanks, Tim. I got tripped up by a punctuation, and only half understood what you were doing, but it put me on the track. Here's what I ended up with: future_events = Event.objects.filter(start_date__gte=now) regions = ( 'Pacific', 'Rocky Mountain', ) events =

Re: Best Practices to Make your Apps Portable

2007-07-26 Thread Carl Karsten
Sebastian Macias wrote: > Thanks a lot for the feedback everyone. > > I have come up a perfect setup and folder structure (at least > perfect for my needs) that will allow me to work on generic apps and > project specific apps efficiently and just wanted to share it with > everyone in case it

Re: There's got to be a better way

2007-07-26 Thread Carl Karsten
Tim Chase wrote: >> In my view, I have: >> future_events = Event.objects.filter(start_date__gte=now) >> pacific_events = future_events.filter(club__region='Pacific') >> rocky_mountain_events = future_events.filter(club__region='Rocky >> Mountain') >> southwest_events =

DbMigration 0.04 released

2007-07-26 Thread Mike H
Hi all, A bugfix release of DbMigration has been made, you can find it at http://www.aswmc.com/dbmigration/ Apologies to those that downloaded 0.03, it was a corrupt release and I've been without an internet connection recently while I moved house, just got my connection back, so here's the

Re: Best Practices to Make your Apps Portable

2007-07-26 Thread Ryan
I like this setup. I will use this as a basis for my own upcoming project. Thanks. RG On Jul 25, 11:12 am, Sebastian Macias <[EMAIL PROTECTED]> wrote: > Thanks a lot for the feedback everyone. > > I have come up a perfect setup and folder structure (at least > perfect for my needs) that will

Flutterbox Launched

2007-07-26 Thread Sam Willis
Hello, A while back I posted on here about the project I have been working on - Flutterbox. Flutterbox is a social networking tool which allows you to aggregate all of your online activity in one place to create a personal news feed viewable by your friends. Consequently you can then view a feed

Re: Confusion over CRUD generic views and newforms

2007-07-26 Thread [EMAIL PROTECTED]
On Jul 26, 4:50 pm, Matt <[EMAIL PROTECTED]> wrote: > Hi Etienne, > > I read that {{ form.as_table }} was the default value for {{ form }} > as well, but when I insert {{ form }} into my template I get something > out which looks like the output of a __str__ method - a list of > dictionaries and

Re: There's got to be a better way

2007-07-26 Thread Tim Chase
> In my view, I have: > future_events = Event.objects.filter(start_date__gte=now) > pacific_events = future_events.filter(club__region='Pacific') > rocky_mountain_events = future_events.filter(club__region='Rocky > Mountain') > southwest_events =

Re: functions missing from django.utils.translation

2007-07-26 Thread Malcolm Tredinnick
On Thu, 2007-07-26 at 12:06 -0600, Peter Baumgartner wrote: > I'm running revision 5765 on a CentOS in Python 2.4.3 and it doesn't > recognize (ImportError) the following functions from > django.utils.translation: ugettext, ungettext, deactivate_all > > I've redownloaded django, checked

There's got to be a better way

2007-07-26 Thread [EMAIL PROTECTED]
I'm sure you all will immediately see what I'm doing, and how I could be doing it better. I'm sure I need to create my own dict or something, but I'm not sure how I'd do so, or (more importantly), how I'd work with in the template. In my view, I have: future_events =

Funny JOkes

2007-07-26 Thread fazi
MuM: Have you brought the matches home? Son: Yes! Mum: Are they working??? Son: Yes! I have try up all the fire macthes... It's working. for more visit: www.mobsms.page.tl --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

functions missing from django.utils.translation

2007-07-26 Thread Peter Baumgartner
I'm running revision 5765 on a CentOS in Python 2.4.3 and it doesn't recognize (ImportError) the following functions from django.utils.translation: ugettext, ungettext, deactivate_all I've redownloaded django, checked permissions, and verified the functions do actually exist in the source. Why

Re: problem with session persistence

2007-07-26 Thread Christopher Flynn
Ok, now my python newbness is going to show... I figured out what was causing it. (but I don't know why it wasn't working before) I can do the following: request.session['question_list'].append(question.id) but not: request.session['question_list'] = request.session['question_list'].append(

Re: problem with session persistence

2007-07-26 Thread [EMAIL PROTECTED]
I just realized that if the above was the case, you probably wouldn't be getting the NoneType error, but the original list with one element. Did you check your session contents to make sure the data was in actually in there? If the new item was there in the session, perhaps it was your if

a generic JSON serializer???

2007-07-26 Thread Eric St-Jean
Hi, There does not seem to be an easy way to serialize anything to JSON: serializers.serialize will handle a QuerySet simplejson.dumps will handle normal python data structures But what about a python dict which has a django model instance in it, for example??? Or a Field? Sure, i can (and

Re: problem with session persistence

2007-07-26 Thread [EMAIL PROTECTED]
What about setting session variable to None, then setting it back to a new list object with the questions in it, just to see if it's a problem with it not realizing that the list has been modified? I don't think this is the best solution either, but would be a good test to see if it's just not

Re: accessing request attributes in templatetags?

2007-07-26 Thread Doug B
Just pass them in as context variables, either the whole thing or just the parts you need. This is kind of a snippet from my current project that might show what I mean. I say kind of because I use a handler object that wraps request and a few other things instead of request directly, but the

Admin file uploads validation

2007-07-26 Thread Krzysztof Ciesielski
Hi, Some time ago I had to validate ODT files sent to server via admin site. Since I know how long it took me to solve that problem and I haven't found any hints in google I decided to share with my solution. Take have a look on my code: import zipfile try: from cStringIO import StringIO

Re: problem with session persistence

2007-07-26 Thread flynnguy
Thanks for responding, I should have mentioned previously that I did try putting 'SESSION_SAVE_EVERY_REQUEST=True' in my settings file but that didn't work. Now that I read your e-mail, I also tried setting request.session.modified = True right after my append but that didn't work either. I

Re: GSoC Update: [Check Constraints] New features and using it with Newforms.

2007-07-26 Thread Tim Chase
> On public request I am posting this thread in this forum > This week I worked on getting the 'like' and 'between' check > conditions into the project and also writing a lot of doctests. This looks like good stuff! Some questions/considerations/feedback I would love to see addressed if

Re: Problem when deleting a register from the database

2007-07-26 Thread Nis Jørgensen
AnaReis skrev: > Hi all! > I have a delete that isn't working properly. It deletes more than 1 > register when it shouldn't because I'm specifying the primary key in > the filter. > The class file is this: > class UserInstrument(models.Model): > user_name = models.CharField(primary_key=True,

Re: problem with session persistence

2007-07-26 Thread [EMAIL PROTECTED]
You might want to try adding: request.session.modified = True ( or modify your settings file to save every request by setting the SESSION_SAVE_EVERY_REQUEST to True ) Because from this note from Django Session docs: # Session is modified. request.session['foo'] = {} # Gotcha: Session is NOT

Re: Forms for complex model hierarchies

2007-07-26 Thread Nis Jørgensen
Jonathan Buchanan skrev: > On 7/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >> Hi group, >> >> I have a rather complex hierarchy of models. Say, I have a model A. A >> has a 1:N relation to model B, which itself has a 1:N relation to >> model C. >> >> What I want is a single web

GSoC Update: [Check Constraints] New features and using it with Newforms.

2007-07-26 Thread Thejaswi Puthraya
Hello Django Users, On public request I am posting this thread in this forum This week I worked on getting the 'like' and 'between' check conditions into the project and also writing a lot of doctests. So here is how to use 'like' and 'between' check constraints class

Re: acute (á, é, etc) characters in my templates

2007-07-26 Thread James Bennett
On 7/26/07, vida <[EMAIL PROTECTED]> wrote: > As of 5764 (today, 1 AM) it still doesn't work. If your template files are in an encoding other than UTF-8, you'll also want to set the FILE_CHARSET setting to tell Django how to read your templates:

Re: Confusion over CRUD generic views and newforms

2007-07-26 Thread Matt
Hi Etienne, I read that {{ form.as_table }} was the default value for {{ form }} as well, but when I insert {{ form }} into my template I get something out which looks like the output of a __str__ method - a list of dictionaries and values. I'm running Python 2.5 on Ubuntu Feisty. I'll put

http://www.clixsense.com/?2159840

2007-07-26 Thread kasim
http://www.agloco.com/r/BBFR2592 http://www.clixsense.com/?2159840 http://www.clixsense.com/?2159840 Dear __, I recently joined AGLOCO because of a friend recommended it to me. I am now promoting it to you because I like the idea and I want you to share in what I think will be an

Re: extending user model, a different approach

2007-07-26 Thread Amit Upadhyay
On 7/26/07, James Bennett <[EMAIL PROTECTED]> wrote: > > On 7/25/07, Amit Upadhyay <[EMAIL PROTECTED]> wrote: > > I realized a new way to extend user models, it is simpler than official > > get_profile approach of django[1] as there is only one model to work > with, > > and relationships are kept

Need a little more help with for loops

2007-07-26 Thread drkfce
When I use the below code, the first item is "treed" like it is supposed to be. However, when I try to put in additional branches at the same "level", the information from the previous loops stays, thus, when a new branch is looped, it will contain information of all branches before it. Here's

Traceback of endless loop

2007-07-26 Thread Thomas Güttler
Hi, how can you get a traceback if the script is inside a endless loop. Standalone python apps give you this by sending SIGINT. But this does not work with mod_python or the builtin webserver. Any hints? Thomas -- Thomas Güttler, http://www.tbz-pariv.de/ Bernsdorfer Str. 210-212, 09126

Problem when deleting a register from the database

2007-07-26 Thread AnaReis
Hi all! I have a delete that isn't working properly. It deletes more than 1 register when it shouldn't because I'm specifying the primary key in the filter. The class file is this: class UserInstrument(models.Model): user_name = models.CharField(primary_key=True, maxlength=60)

Re: newforms: How to make a Checkboxed user select list...

2007-07-26 Thread onno
On Jun 26, 9:57 am, Jens Diemer <[EMAIL PROTECTED]> wrote: > Jens Diemer schrieb: > > > I would like to make a newforms user select list, from every existing django > > users, looks like this: > > I have found a solution: > > class MailForm(forms.Form): > users =

accessing request attributes in templatetags?

2007-07-26 Thread zenx
I know you can access request attributes in views, but how to access for example request.user or request.META['REMOTE_ADDR'] in templatetags? I have tried it several ways but really don't know how to do it. Thank you! --~--~-~--~~~---~--~~ You received this

Re: Authentication with remember me like option

2007-07-26 Thread [EMAIL PROTECTED]
Read http://code.djangoproject.com/wiki/CookBookDualSessionMiddleware --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To

Re: acute (á, é, etc) characters in my templates

2007-07-26 Thread vida
As of 5764 (today, 1 AM) it still doesn't work. On Jul 26, 1:41 am, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 7/26/07, vida <[EMAIL PROTECTED]> wrote: > > > I get a UnicodeDecodedError if I try to include any of these acuted- > > characters in my templates. It's fine if they come from the

Re: [newforms-admin]

2007-07-26 Thread Florian Apolloner
It should be: How can I limit the available options according to some custom permissions? sry On Jul 26, 2:51 pm, Florian Apolloner <[EMAIL PROTECTED]> wrote: > I have a model with a ForeignKey to another model. It is displayed as > select box. How can I limit the available options to some

[newforms-admin]

2007-07-26 Thread Florian Apolloner
I have a model with a ForeignKey to another model. It is displayed as select box. How can I limit the available options to some custom permissions? Thx in advance, Florian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Deploying Problem: ViewDoesNotExist

2007-07-26 Thread o.elias
Hi! I deployed my app using Apache and mod_python and have the same problem as described in Ticket #4889. (ViewDoesNotExist-Exception; module object has no attribute models), but every combination of PythonPath-Entries didn't help. Something "strange": After calling the Django-Admin-App

Re: Forms for complex model hierarchies

2007-07-26 Thread [EMAIL PROTECTED]
Thanks for the quick response! That will help me out. --~--~-~--~~~---~--~~ 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

Re: Forms for complex model hierarchies

2007-07-26 Thread Jonathan Buchanan
On 7/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi group, > > I have a rather complex hierarchy of models. Say, I have a model A. A > has a 1:N relation to model B, which itself has a 1:N relation to > model C. > > What I want is a single web page, on which an instance of A and all >

Forms for complex model hierarchies

2007-07-26 Thread [EMAIL PROTECTED]
Hi group, I have a rather complex hierarchy of models. Say, I have a model A. A has a 1:N relation to model B, which itself has a 1:N relation to model C. What I want is a single web page, on which an instance of A and all its related B and C instances can be edited. What is the best way to

Re: Changing the "name" of a DB object & displaying the ID

2007-07-26 Thread Andreas Pfrengle
Hi Matt, I don't know about the behaviour of 1to1 fields, but did you just try it with class Admin: pass like in ? Then the model should be editable in the admin Or if you want to change the __str__ (which should afaik be

Re: Forms for complex model hierarchies

2007-07-26 Thread [EMAIL PROTECTED]
Speaking about newforms, of course. Sorry. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group,

Re: ANN: Screencast - Learn Django: Create a Wiki in 20 minutes

2007-07-26 Thread Przemek Gawronski
Thanks Siddhi, very clearly presented! Looking forward to see more, maybe with newforms? Przemek -- AIKIDO TANREN DOJO - Poland - Warsaw - Mokotow - Ursynow - Natolin info: http://www.tanren.pl/ phone: +4850151 email: [EMAIL PROTECTED]

About django's ImageField type

2007-07-26 Thread nick feng
Hi All, I found ImageField is hard to understand for me. Anyone can give me a example and some explanation on it? Thanks. ImageField Like FileField, but validates that the uploaded object is a valid image. Has two extra optional arguments, height_field and width_field, which, if set, will be

Re: learning django testing

2007-07-26 Thread james_027
Thanks bob cheers, james On Jul 25, 11:48 pm, "Bob T." <[EMAIL PROTECTED]> wrote: > > I don't have any idea what is the > > testing all about. > > James, you might want to take a look at Dive Into Python [1] as a > starting place. It has a couple good chapters on testing and test > driven

Re: Syndication with kwargs from url

2007-07-26 Thread Mackenzie
Thanks for the help!!! --~--~-~--~~~---~--~~ 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

Re: problem to save..

2007-07-26 Thread stryderjzw
http://www.djangoproject.com/documentation/authentication/ This should be a good start! Also check out chapter 12 of django book at www.djangobook.com. Justin On Jul 26, 12:08 am, "Marco A." <[EMAIL PROTECTED]> wrote: > I am a newbie ! > > I doesnt have esperience whit django and web

Re: problem to save..

2007-07-26 Thread Marco A.
I am a newbie ! I doesnt have esperience whit django and web developing.. so I have some problem to make the thing running good :| There are an example of User Build-in model usage ? Thanks MA. 2007/7/25, De Rowe <[EMAIL PROTECTED]>: > > > > > On Wed, 25 Jul 2007 15:33:19 +0200, Horst Gutmann

middleware or context_processors

2007-07-26 Thread james_027
Hi all, As I am trying to extend the django user model not using the auth_profile I have model like this class Profile(models.Model): """KSK Employee accounts to use this application""" user = models.ForeignKey(User, unique=True) department = models.CharField(maxlength=3,

Re: Syndication with kwargs from url

2007-07-26 Thread Nathan Ostgard
You shouldn't be capturing the args yourself -- the syndication framework will automatically split up anything after the feed name and pass it to get_object on your Feed class. So, if "/feeds/latest/foo/ bar/" was requested, it would call your feed class with the bits ['foo', 'bar']. You can then