Re: Something wrong with dividing

2008-04-16 Thread [EMAIL PROTECTED]
:27 am, Poz <[EMAIL PROTECTED]> wrote: > Hello all, > > I've got a small problem. I am a newbie and I can't figure out what is > wrong with the script below. > > I'm trying to count up the "likes" and divid them by the > "likes"+"dislikes"

Re: Using a custom storage

2008-04-17 Thread [EMAIL PROTECTED]
, SammyRulez <[EMAIL PROTECTED]> wrote: > Hi folks > > I'm trying to implement a custom Stroage via s3. Something > likehttp://code.djangoproject.com/attachment/ticket/6390/S3_6390.20080321.py. > I'm digging Django core code to find how to tell it to use the cus

Re: New site - www.iau.org

2008-04-17 Thread [EMAIL PROTECTED]
Hi Joe, On Apr 16, 11:28 am, "Joe Bloggs" <[EMAIL PROTECTED]> wrote: > A nice clean site, I would be interested to know:- Thanks > How long it took to develop? Approximately 5 man months (including all activities). Of these 5 months, only 1 1/2 month have been spe

Model View Releationship with basic newforms

2008-04-17 Thread [EMAIL PROTECTED]
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?hl=en -~--~~~~--~~--~--~---

Re: Looping....

2008-04-18 Thread [EMAIL PROTECTED]
and post it to django snippets later, if anyone wants it, I'll post a link. On Apr 18, 11:47 am, Eric Abrahamsen <[EMAIL PROTECTED]> wrote: > I think what people are saying here is that your number, the iteration   > limit, has to be coming from somewhere or something. Chances are, that  

Re: Looping....

2008-04-18 Thread [EMAIL PROTECTED]
Here's the code for the range tag I wrote: http://dpaste.com/45711/ I haven't tested it at all, but I think it should work, if anyone can provide feedback I'll post it on django snippets. On Apr 18, 2:00 pm, "Erik Vorhes" <[EMAIL PROTECTED]> wrote: > Or you can add something t

Re: Need help DRYing up urls.py

2008-04-18 Thread [EMAIL PROTECTED]
Direct_to_template does not substitute the template var in to the template param, you will need to write a simple wrapper to do something like this. On Apr 18, 12:35 pm, Brandon Taylor <[EMAIL PROTECTED]> wrote: > Ah. I see now. It's matching the first part of the URL, but it doesn

Re: Can I print out the context from within a template?

2008-04-18 Thread [EMAIL PROTECTED]
You could write a simple template tag that did this. On Apr 18, 12:26 pm, Salim Fadhley <[EMAIL PROTECTED]> wrote: > I'm trying to debug the context that is passed into the template. When > I render the template I use a command like: > > return HttpResponse( render_to

Re: Dictionary access within a template

2008-04-18 Thread [EMAIL PROTECTED]
There is no current way to do this(there was a thread on django-dev a few weeks ago and there was no consensus on syntax), what I would do is create a very simple filter, if will be all of 3 lines long and will accomplish what you need. On Apr 18, 2:47 pm, Salim Fadhley <[EMAIL PROTECTED]>

Re: Need help DRYing up urls.py

2008-04-18 Thread [EMAIL PROTECTED]
an example let me know and I will write one up. On Apr 18, 3:10 pm, Brandon Taylor <[EMAIL PROTECTED]> wrote: > Hi Alex, > > Thanks for the advice. Still being new to Django, where would such a > wrapper function need to exist? In the views.py? models.py? > > I'

Re: Need help DRYing up urls.py

2008-04-18 Thread [EMAIL PROTECTED]
That wouldn't be return template((template))), it should be just the view's name, not actually calling it, and your wrapper function needs to take request, and pass it along to dire3ct_to_template On Apr 18, 3:51 pm, Brandon Taylor <[EMAIL PROTECTED]> wrote: > Sorry, forgot to say th

How to Patch

2008-04-18 Thread [EMAIL PROTECTED]
send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

Re: How to Patch

2008-04-18 Thread [EMAIL PROTECTED]
Thank you very, very much On Apr 18, 5:28 pm, "Chris Czub" <[EMAIL PROTECTED]> wrote: > Follow the instructions on the Django website > athttp://www.djangoproject.com/download/and run `svn > cohttp://code.djangoproject.com/svn/django/trunk/` > > After that

Re: Does the ORM support eager fetches?

2008-04-18 Thread [EMAIL PROTECTED]
the SQL manually. On Apr 19, 12:57 am, meppum <[EMAIL PROTECTED]> wrote: > I read that to mean that it follows foreign key relationships "up" > from the child to the parent. Meaning that if you load > Parent.select_related() that parent.child_set() will not yet have been > lo

Re: Can I make it so that I get an error if a template accesses something that does not exist?

2008-04-18 Thread [EMAIL PROTECTED]
I don't know if TEMPLATE_STRING_IF_INVALID can be set to raise an error, but you could write a simple filter that raises an error if the variable is empty or just returns it as is if not. On Apr 18, 2:48 pm, yml <[EMAIL PROTECTED]> wrote: > hello, > > Here it is what

Re: Form Processing

2008-04-18 Thread [EMAIL PROTECTED]
Hi vamsi - try reading the Django book (available at http://www.amazon.com/Definitive-Guide-Django-Development-Right/dp/1590597257 or djangobook.com), see if you still have questions. Good luck On Apr 18, 1:44 am, Jeff Anderson <[EMAIL PROTECTED]> wrote: > gvkreddy wrot

Does request.is_ajax() really work?

2008-04-19 Thread [EMAIL PROTECTED]
s anyone see the same problem as me? --~--~-~--~~~---~--~~ 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

Re: Admin page doesn't show calendar popup

2008-04-19 Thread [EMAIL PROTECTED]
I believe this was a Safari issue that was fixed at some point post-. 96.1(if you guys aren't using safari feel free to post again). On Apr 19, 2:42 pm, Polat Tuzla <[EMAIL PROTECTED]> wrote: > I got the same problem with the version 96.1 on Mac. > Then switched to trunk and everyt

user profile for all methods ?

2008-04-22 Thread [EMAIL PROTECTED]
roup, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

Re: Template and Static content

2008-04-22 Thread [EMAIL PROTECTED]
Actually Duke you can use Django to store static content, it is just inefficient, for example if you are doing a school project it is perfectly acceptable but commercial development you want to go and grab Apache. On Apr 22, 7:32 am, Alex Morega <[EMAIL PROTECTED]> wrote: > On Apr

how to obtain session key after create

2008-04-22 Thread [EMAIL PROTECTED]
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?hl=en -~--~~~~--~~--~--~---

Re: www.djangoproject.com nameservers returning SERVFAIL response

2008-04-22 Thread [EMAIL PROTECTED]
I'm connecting fine so the problem is probably with your DNS(looks like OpenDNS). On Apr 22, 1:23 pm, Michael Becker <[EMAIL PROTECTED]> wrote: > I'm not sure if this is the right place to post this info but nslookup > onwww.djangoproject.comis failing. > N

FTP upload of files threw django

2008-04-23 Thread [EMAIL PROTECTED]
"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?hl=en -~--~~~~--~~--~--~---

Re: FilePathField and get_FIELD_url

2008-04-23 Thread [EMAIL PROTECTED]
FilePathField can refer to any location on your system, there is no reason to believe it is below the MEDIA_ROOT. On Apr 23, 11:14 am, skam <[EMAIL PROTECTED]> wrote: > It seems that get_FIELD_url accessor method is not available while > using FilePathField into my models. > Is t

Re: FilePathField and get_FIELD_url

2008-04-23 Thread [EMAIL PROTECTED]
You could either do that, or just add a method to your model, both would employ the same logic, it's just a question of reusable vs. time to implement. On Apr 23, 12:17 pm, skam <[EMAIL PROTECTED]> wrote: > Okay, that's a valid reason, but I really want these files to be into >

Re: UnicodeDecodeError when rendering template

2008-04-23 Thread [EMAIL PROTECTED]
Are you using .96 or SVN? On Apr 23, 3:56 pm, "Boris Ozegovic" <[EMAIL PROTECTED]> wrote: > I am getting UnicodeDecodeError, 'ascii' codec can't decode byte 0xc4. >  I using utf-8 in forms.py, and also, my template is saved as UTF-8. > And it doesn't work.   Any idea

Re: UnicodeDecodeError when rendering template

2008-04-23 Thread [EMAIL PROTECTED]
.96 is not unicode enabled, if you need to handle unicode strings you will need to use SVN. On Apr 23, 4:23 pm, "Boris Ozegovic" <[EMAIL PROTECTED]> wrote: > On 4/23/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > >

Re: exclude with ForeignKey

2008-04-24 Thread [EMAIL PROTECTED]
If you are getting the correct resultset, just with parents multiple times, add .distinct() to your queryset. On Apr 24, 1:17 am, Kevin L <[EMAIL PROTECTED]> wrote: > Hello Django users, I'm having trouble with an exclude statement and > was hoping some kind soul could help me ou

Re: Announcing the Django Dash!

2008-04-24 Thread [EMAIL PROTECTED]
consider adjusting the rules but this is only the second time it's come up. To put that in context, that means that only 2 people out of 101 (~2%) have voiced it as a concern. Daniel On Apr 23, 8:49 pm, Eric <[EMAIL PROTECTED]> wrote: > Apparently the design can be done before

Re: Rendering HTML stored in database

2008-04-25 Thread [EMAIL PROTECTED]
You may also want to look at this thread for a more extensive discussion of exactly this subject: http://groups.google.com/group/django-users/browse_thread/thread/242cc194a1a7b6fe/81fb9a60ffb8d233?#81fb9a60ffb8d233 On Apr 25, 1:07 am, "[EMAIL PROTECTED]" <[EMAIL PROT

Re: I'm not getting URL's. Help!

2008-04-25 Thread [EMAIL PROTECTED]
uot; 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?hl=en -~--~~~~--~~--~--~---

newforms extensions

2008-04-26 Thread [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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google

Re: FTP upload of files threw django

2008-04-26 Thread [EMAIL PROTECTED]
Thank you all for the responses, I will start looking into it and see if there is a solution for this. I will ask the developer again who saw this once before. Regards, Richard On Apr 26, 10:16 am, pgb <[EMAIL PROTECTED]> wrote: > Hi, > I am also not an expert but personaly

fieldsets in form ( ticket #6630 )

2008-04-26 Thread [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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit

Re: Django voting with jellyrool

2008-04-26 Thread [EMAIL PROTECTED]
What exactly is your problem? Is latest_items empty in the template? On Apr 26, 2:10 am, chatchai <[EMAIL PROTECTED]> wrote: > Hi all, > > I use a modified version ofhttp://jellyroll.googlecode.com/by adding > my own models into follow list (jellyrool.models.I

Re: Queryset-refactor branch has been merged into trunk

2008-04-27 Thread [EMAIL PROTECTED]
! -- Ben Scherrey On Apr 27, 10:04 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > I merged queryset-refactor into trunk just now. This was changeset > r7477. > > There are still a couple of enhancements to do, but I've decided they're > not worth holding up the entire b

MySQL-python-1.2.2 - install errors

2008-04-27 Thread [EMAIL PROTECTED]
om this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

Re: MySQL-python-1.2.2 - install errors

2008-04-28 Thread [EMAIL PROTECTED]
EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hello, > > Can anyone help me with these errors: > > python setup.py buildrunning build > running build_py > copying MySQLdb/release.py -> build/lib.macosx-10.5-i386-2.5/MySQLdb > running build_ext > building '_mysql'

need to refine the following query

2008-04-28 Thread [EMAIL PROTECTED]
d 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?hl=en -~--~~~~--~~--~--~---

Re: unable to open database file

2008-04-28 Thread [EMAIL PROTECTED]
What are the permissions of the enclosing folder? See http://code.djangoproject.com/wiki/NewbieMistakes#DjangosaysUnabletoOpenDatabaseFilewhenusingSQLite3 On Apr 28, 4:22 pm, [EMAIL PROTECTED] wrote: > hello all, > > I get a operational error when i try to access the sqlite3 data

Re: making a stand-alone program call a django app directly

2008-04-28 Thread [EMAIL PROTECTED]
http://www.b-list.org/weblog/2007/sep/22/standalone-django-scripts/ On Apr 28, 5:10 pm, "Andrew D. Ball" <[EMAIL PROTECTED]> wrote: > Greetings. > > I'm working on a Django application and would like > to be able to write a stand-alone Python program > that calls

Re: OneToMany relationshops between models?

2008-04-28 Thread [EMAIL PROTECTED]
(such as threadedcomments). On Apr 28, 11:40 pm, Mike Chambers <[EMAIL PROTECTED]> wrote: > I am writing my first django app. I have Items, which can have multiple > comments associated with them. > > Normally, I could express this in my model as: > > --- > class Comment(model

Re: OneToMany relationshops between models?

2008-04-28 Thread [EMAIL PROTECTED]
Yes django.contrib.comments is scheduled to be rewritten as a part of the Google Summer of Code. On Apr 29, 12:01 am, Mike Chambers <[EMAIL PROTECTED]> wrote: > Thanks. > > Ill take a look at that, as well as some of the other comments framework. > > I had looked at

Tutorial: __str__() problems

2008-04-29 Thread [EMAIL PROTECTED]
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?hl=en -~--~~~~--~~--~--~---

Admin site - apply business logic

2008-04-29 Thread [EMAIL PROTECTED]
be from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

Re: How to use dojo toolkit in django?

2008-04-29 Thread [EMAIL PROTECTED]
of the javascript model structure and/or the view that serializes JSON? I'd like to get this thing moving if possible, as its lazy scrolling seems like it would beat the pants off old-fashioned pagination. Thanks, John On Apr 14, 5:24 am, bobhaugen <[EMAIL PROTECTED]> wrote: > On Mon, 14 Apr 2008 00:13

Re: Admin site - apply business logic

2008-04-29 Thread [EMAIL PROTECTED]
thanks for shedding some light, I'll be sure to keep my eye on the newforms-admin branch. Maybe I'll get my hands dirty in the todo list that's stopping the merger as it looks very promising to me. -al On Apr 29, 9:55 pm, "Justin Lilly" <[EMAIL PROTECTED]> wrote: > I think

NewForms Admin - convention

2008-04-30 Thread [EMAIL PROTECTED]
age 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?hl=en -~--~~~~--~~--~--~---

newform-admin: custom validation (multiple fields)

2008-04-30 Thread [EMAIL PROTECTED]
the right direction. -Al --~--~-~--~~~---~--~~ 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

Re: NewForms Admin - convention

2008-04-30 Thread [EMAIL PROTECTED]
i see. I created a admin.py in my app and added a "import admin" to __init__.py. In the admin.py I had to import all from the models.py. Tested it and it works. Does that sound right? -al On Apr 30, 3:22 pm, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > On Apr 30, 4:39 am

newform-admin: appending an error message

2008-04-30 Thread [EMAIL PROTECTED]
.', statusFieldReference)) Or am I doing this incorrectly? -Alen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscri

Re: django-admin error

2008-04-30 Thread [EMAIL PROTECTED]
I know this may sound dumb but are you actually on the correct drive to be issuing that command? Also are you using the svn or .96. Not that it matters I am just curious. On Apr 30, 9:57 am, curt <[EMAIL PROTECTED]> wrote: > I've completed the install of python and django and I'm tryi

Re: newform-admin: appending an error message

2008-04-30 Thread [EMAIL PROTECTED]
methods available in ModelAdmin, unless I'm looking in a wrong place or the latest repository version is newer then the online doc itself. -al On Apr 30, 4:16 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I have a below class as an Admin option for the newform-admin. >

Re: newform-admin: custom validation (multiple fields)

2008-04-30 Thread [EMAIL PROTECTED]
Hi Al, On Apr 30, 2:18 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I would like to add some custom validation to the newform-admin form. > I have look at the > -http://code.djangoproject.com/wiki/NewformsHOWTO#Q:HowdoIaddcustomval... > - and am still not

Re: newform-admin: appending an error message

2008-04-30 Thread [EMAIL PROTECTED]
Hi Al, On Apr 30, 3:25 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Oh and the NewformsHOWTO doc says: > > "How do I add custom validation?" > """One option is to override form_add() and form_change() in > ModelAdmin and provide a

Re: newform-admin: custom validation (multiple fields)

2008-04-30 Thread [EMAIL PROTECTED]
above doc snippet with regards to the special 'field' called __all__? regards, -al On Apr 30, 5:50 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi Al, > > On Apr 30, 2:18 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > > &

The non_field_errors in newforms-admin templates don't get displayed (as default)

2008-04-30 Thread [EMAIL PROTECTED]
p. 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?hl=en -~--~~~~--~~--~--~---

Re: The non_field_errors in newforms-admin templates don't get displayed (as default)

2008-04-30 Thread [EMAIL PROTECTED]
racey" <[EMAIL PROTECTED]> wrote: > On Wed, Apr 30, 2008 at 3:25 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> > wrote: > > > > > The non_field_errors don't get displayed on newforms-admin templates > > such as chnage_form.html > > > I did a debug on adminf

Re: The non_field_errors in newforms-admin templates don't get displayed (as default)

2008-04-30 Thread [EMAIL PROTECTED]
t; <[EMAIL PROTECTED]> wrote: > On Wed, Apr 30, 2008 at 4:39 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> > wrote: > > > Thanks Karen. Thats exactly what I was looking for. The patch attached > > to the ticket is perfect. > > > Quick question: how does the process o

Re: newform-admin: custom validation (multiple fields)

2008-05-01 Thread [EMAIL PROTECTED]
On Apr 30, 6:04 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > After reading over the newforms documentation, I came across the > Form.clean() method that suites my case nicely regarding my newforms- > admin form: > > """ > The Form subcl

Re: newform-admin: custom validation (multiple fields)

2008-05-01 Thread [EMAIL PROTECTED]
Thanks Felix. I did use the Form.clean() for my validation accross multiple fields. There is an open ticket for the non_field_errors() not being called withing the change_form.html template. http://code.djangoproject.com/ticket/6809 -Alen On May 1, 4:14 pm, "[EMAIL PROTECTED]" <[EM

Re: Stability of using SVN versus 0.96 or 0.96.1

2008-05-01 Thread [EMAIL PROTECTED]
rom what Ive read Django does a > really great job at that, or has what Ive been hearing been wrong? > > On May 1, 12:04 pm, "Michael Wieher" <[EMAIL PROTECTED]> wrote: > > > I never use bleeding edge software, I let someone else be that level > > of bug-te

Re: ManyToMany error with new queryset refactoring

2008-05-01 Thread [EMAIL PROTECTED]
I believe you need to specify a related name argument: http://www.djangoproject.com/documentation/model-api/#be-careful-with-related-name On May 1, 3:18 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Thu, May 1, 2008 at 3:04 PM, bcurtu <[EMAIL PROTECTED]> wrote:

Re: Django and Services

2008-05-01 Thread [EMAIL PROTECTED]
You actually would place the on the model, for example you might have a send_email method on an invitation model, to abstract the template, simply make it a parameter to the function. On May 1, 5:07 pm, Michael Burton <[EMAIL PROTECTED]> wrote: > I'm coming to Django from the Java S

Re: Should I set up Django locally or on a web server?

2008-05-01 Thread [EMAIL PROTECTED]
Probably the most painless way to get everything you need for the production setup is via MacPorts - apache, python, postgres, etc. On May 1, 2:56 pm, Kevin Monceaux <[EMAIL PROTECTED]> wrote: > Selmac?, > > I've never used a Mac, so take the following with a grain of salt. &g

Re: django-tagging or search engine?

2008-05-01 Thread [EMAIL PROTECTED]
On 2 май, 05:40, Eric <[EMAIL PROTECTED]> wrote: > The beauty for using a search engine is you can do tag unions as easy > as tag:python OR tag:django > > or a tag intercection as: > tag:python AND tag:django > > and you can do: > tag:python AND tag:django A

Templating patterns

2008-05-01 Thread [EMAIL PROTECTED]
i use the include tag) ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to

Re: Django and Services

2008-05-02 Thread [EMAIL PROTECTED]
default render_to_response. --~--~-~--~~~---~--~~ 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 gro

Default Pluralize logic

2008-05-03 Thread [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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://

child edit causes duplication with model inheritance

2008-05-03 Thread [EMAIL PROTECTED]
with model inheritance? thanks, alan --~--~-~--~~~---~--~~ 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: child edit causes duplication with model inheritance

2008-05-04 Thread [EMAIL PROTECTED]
As a slight addendum to what James said, it will be implemented in the newforms-admin branch, and will be available in trunk after the merge(you can of course use the newforms-admin branch if you need this). On May 4, 2:41 am, "James Bennett" <[EMAIL PROTECTED]> wrote: >

Re: Default Pluralize logic

2008-05-04 Thread [EMAIL PROTECTED]
have already implemented this functionality in my own code base that I would be happy to share. (I can create a patch/diff if there would be interest.) Regards, -Alen On May 3, 9:52 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Sat, May 3, 2008 at 5:39 AM, [EMAIL PROTECTE

Re: Template tags spanning multiple lines

2008-05-04 Thread [EMAIL PROTECTED]
You *might* be able to make it work by adding the re.DOT_ALL flag to this re: http://code.djangoproject.com/browser/django/trunk/django/template/__init__.py#L90 I haven't tested it, I don't know if it works, I don't even know if it makes sense. On May 4, 10:51 pm, gregf <[EMAIL PROTEC

Re: Default Pluralize logic

2008-05-05 Thread [EMAIL PROTECTED]
gh. :-)) Regards, -Alen Ribic On May 5, 4:57 am, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On Mon, May 5, 2008 at 1:16 AM, [EMAIL PROTECTED] > > <[EMAIL PROTECTED]> wrote: > > > > Is it? Maybe. I don't know if anyone has proposed smartening-up >

Upgraded to Trunk - redirrect urls now tweaked

2008-05-05 Thread [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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more opti

Re: Default Pluralize logic

2008-05-05 Thread [EMAIL PROTECTED]
elated, post on the dev list: "Ditch pluralisation entirely" http://groups.google.com/group/django-developers/browse_thread/thread/951d113483083ce9/83c18a7a4b2e136e?lnk=gst=plural#83c18a7a4b2e136e Regards, -Alen On May 5, 2:59 pm, "Karen Tracey" <[EMAIL PROTECTED]> w

Re: xml serialization with nested models

2008-05-06 Thread [EMAIL PROTECTED]
On May 6, 11:14 am, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On Tue, May 6, 2008 at 8:52 AM, Explore <[EMAIL PROTECTED]> wrote: > > > Hi. I have been trying to get django to return my models as xml. I > > have tried using the xml ser

Re: Default Pluralize logic

2008-05-06 Thread [EMAIL PROTECTED]
erence. (Below the belt Russ! :-)) Non-the less, I do have a better understanding now why it should perhaps stay as is. -Alen On May 6, 1:41 am, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On Tue, May 6, 2008 at 6:10 AM, [EMAIL PROTECTED] > > <[EMAIL PROTECTED]

Re: Default Pluralize logic

2008-05-06 Thread [EMAIL PROTECTED]
> Regardless, the context for that discussion is quite > different to the context of this current discussion. I take back what I said on my last note. -Alen On May 6, 8:43 am, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On Tue, May 6, 2008 at 2:16 PM, [EMA

Django on MOSSO?

2008-05-06 Thread [EMAIL PROTECTED]
cribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

Re: Newbie Data Model Question

2008-05-06 Thread [EMAIL PROTECTED]
, -Alen On May 6, 5:43 pm, Peter Bailey <[EMAIL PROTECTED]> wrote: > I have designed a small db model (on paper) and want to implement it > in my models.py file. So far, this has been pretty straight forward, > but I have a generic superclass and several subclasses, and I am > unsur

Re: Reusable Web Controls

2008-05-06 Thread [EMAIL PROTECTED]
There is the includes tag, or you can make a template tag. On May 6, 1:20 pm, "Andrew English" <[EMAIL PROTECTED]> wrote: > Is there a way to embed templates in other templates using Django?  For > example, you could have common elements like a navigation menu defined

Weird session problem

2008-05-06 Thread [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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://gr

Re: Weird session problem

2008-05-06 Thread [EMAIL PROTECTED]
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?hl=en -~--~~~~--~~--~--~---

I'm working on a application where no data is shared between two accounts and multiple users share an account

2008-05-06 Thread [EMAIL PROTECTED]
uot; 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?hl=en -~--~~~~--~~--~--~---

Re: Traversing a backward relationship

2008-05-07 Thread [EMAIL PROTECTED]
As far as I know, that's fine. Michael J. could use City.objects.exclude(jobs_isnull=True) to accomplish what he seemed to be going for. On May 7, 2:09 am, Eric Abrahamsen <[EMAIL PROTECTED]> wrote: > I've been using something like: > > City.objects.filter(jobs__isnull=True) >

Re: Django Website Good Example of Best Practice?

2008-05-07 Thread [EMAIL PROTECTED]
I would look at James Bennet's applications(django-registration, comment-utils, etc.) as good examples of reusable applications. On May 7, 11:18 am, rcs_comp <[EMAIL PROTECTED]> wrote: > Myles, > > Thanks for the reply, but I am not sure that I understand your > response.  My

Re: approach on newforms fields for foreign key that can be selected or created

2008-05-07 Thread [EMAIL PROTECTED]
I have to deal with something like this at work, what I did was just ripped off the little magnifying glass thing the admin site uses when you use raw_id_admin. It's not exactly what you're looking for, but it has the same result. On May 6, 12:12 pm, Dan Conner <[EMAIL PROTECTED]>

Re: No request.FILES, but file is still uploaded?

2008-05-09 Thread [EMAIL PROTECTED]
I don't think this matters here, but you're overriding the 'file' builtin. On May 8, 7:03 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Thu, May 8, 2008 at 3:51 PM, Beals <[EMAIL PROTECTED]> wrote: > > Correction: request.FILES does exist -- it just

Re: Weird session problem

2008-05-09 Thread [EMAIL PROTECTED]
Look at the thing I posted. The sessionid= tag is there but it seems to confuse django when there's more than just that in that header. I don't know exactly what causes it though. On May 7, 4:28 pm, finnam <[EMAIL PROTECTED]> wrote: > Isn't it just a matter of session id cookie

Re: one-to-many design question

2008-05-09 Thread [EMAIL PROTECTED]
The first way is the correct way, to get all the chapters for a given book you would do book_obj.chapter_set.all() , you can set what this attribute is named by doing ForeignKey(Chapter, related_name='this_thing'). On May 9, 11:08 am, Mike Chambers <[EMAIL PROTECTED]> wrote: > I a

Re: Group by for querysets

2008-05-09 Thread [EMAIL PROTECTED]
Their is a thread here regarding the GSOC student's work: http://groups.google.com/group/django-developers/browse_thread/thread/f83457fc3cdb235d On May 9, 1:41 pm, gmacgregor <[EMAIL PROTECTED]> wrote: > On May 9, 2:37 pm, gmacgregor <[EMAIL PROTECTED]> wrote: > > > So

Re: A twist on cross importing models

2008-05-09 Thread [EMAIL PROTECTED]
bjects.get(model='author').model_class() --~--~-~--~~~---~--~~ 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: Where'd my error go?

2008-05-11 Thread [EMAIL PROTECTED]
This should probably be filed as a bug since the docs(http:// www.djangoproject.com/documentation/custom_model_fields/) show an example of raising a TypeError. On May 11, 2:42 pm, "Marty Alchin" <[EMAIL PROTECTED]> wrote: > Hi gang (especially Malcolm, if you're listening),

How to make a LEFT JOIN

2008-05-13 Thread [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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

Re: Formset from newforms-admin

2008-05-13 Thread [EMAIL PROTECTED]
While not official, brosner(an NFA commiter) has started working on some NFA docs: http://github.com/brosner/django/commits/nfa_docs On May 13, 11:33 am, "Ramdas S" <[EMAIL PROTECTED]> wrote: > Hi, > > Can someone kindly explain how you can use the formsets from new-adm

Re: How to make a LEFT JOIN

2008-05-13 Thread [EMAIL PROTECTED]
send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

Models inheriting properties from related models in admin (not model inheritance)

2008-05-14 Thread [EMAIL PROTECTED]
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?hl=en -~--~~~~--~~--~--~---

django-tagging: How to generate a TagField input form in a template?

2008-05-16 Thread [EMAIL PROTECTED]
groups.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?hl=en -~--~~~~--~~--~--~---

Re: Caching: Memcached vs locmem

2008-05-17 Thread [EMAIL PROTECTED]
On May 16, 8:20 pm, Brian <[EMAIL PROTECTED]> wrote: > Can someone run down the differences between using Memcached vs > locmem? > > The docs indicate Memcached is "the best" solution, but seems > considerably harder to setup. Just curious what

<    5   6   7   8   9   10   11   12   13   14   >