Re: class in models.py 'not defined' exception

2008-04-28 Thread g m
THANKYOU On 4/29/08, skunkwerk <[EMAIL PROTECTED]> wrote: > > > I've been struggling with this error for the past hour. > > Error while importing URLconf 'winebago.urls': name 'AuthPermission' > is not defined > Exception Location: /usr/lib/python2.5/site-packages/django/core/ > urlresolvers.py in

Re: Session/Varibale and HttpResponseRedirect help please

2008-04-28 Thread g m
THANKYOU On 4/29/08, Brandon Taylor <[EMAIL PROTECTED]> wrote: > > > Hello everyone, > > I'm doing a redirect after a form to a "thank you" page, which I would > like to personalize with some of the data from the form. I've tried > setting a session as such: > > ### views.py code > > if form.is_va

Re: Great article about web2py

2008-04-28 Thread g m
HAI On 4/29/08, simonbun <[EMAIL PROTECTED]> wrote: > > > It's beyond me why they would classify PHP as a web framework, and on > top of that, include CakePHP in the comparison as well... Other than > that, it's hardly an independant and unbiased review, coming from the > authors of web2py themsel

Re: Great article about web2py

2008-04-28 Thread g m
HAI On 4/28/08, Milan Andric <[EMAIL PROTECTED]> wrote: > > > This is not Django specific but it is framework relevant. I thought > this was a great writeup of features for any framework. At least I am > one person who likes the features of this web2py framework. > > http://mdp.cti.depaul.edu/ex

Re: @@@HOME BASED BUSSINESS OPPERTUNITY@@@

2008-04-28 Thread g m
OK On 4/29/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > HiGuys & friends... iam shyni. > > > my website is interested here > > >see this site > > but not complesary ok . > > by friends & guys...

Re: Template variable in filter?

2008-04-28 Thread g m
HAI On 4/29/08, Mike Chambers <[EMAIL PROTECTED]> wrote: > > > Is it possible to include a template variable inside a filter? > > Specifically, I want to have a global setting for the date format string: > > Something like: > > settings.py > -- > DATE_TIME_FORMAT = "M j, F \a\t P" > > > template

Re: object.filter and accessing items

2008-04-28 Thread g m
HAI On 4/29/08, lars <[EMAIL PROTECTED]> wrote: > > > Hi all, > > I was playing around with object.filter when I noticed something funny > in my postgresql.log. > This is my query in the view: > >prev_and_current = > Article.objects.filter(id__lte=article_id).order_by('-id')[0:2] >

object.filter and accessing items

2008-04-28 Thread lars
Hi all, I was playing around with object.filter when I noticed something funny in my postgresql.log. This is my query in the view: prev_and_current = Article.objects.filter(id__lte=article_id).order_by('-id')[0:2] article = prev_and_current[0] prev_article = prev_and_curr

Template variable in filter?

2008-04-28 Thread Mike Chambers
Is it possible to include a template variable inside a filter? Specifically, I want to have a global setting for the date format string: Something like: settings.py -- DATE_TIME_FORMAT = "M j, F \a\t P" template -- {{ comment.date_submitted|date:{{DATE_TIME_FORMAT I am guessing that I co

@@@HOME BASED BUSSINESS OPPERTUNITY@@@

2008-04-28 Thread vasanthiruby
HiGuys & friends... iam shyni. my website is interested here see this site but not complesary ok . by friends & guys. www.getitlove.blogspot.com

Re: Great article about web2py

2008-04-28 Thread simonbun
It's beyond me why they would classify PHP as a web framework, and on top of that, include CakePHP in the comparison as well... Other than that, it's hardly an independant and unbiased review, coming from the authors of web2py themselves. A thing that does seem handy is their integrated ticketing

Re: class in models.py 'not defined' exception

2008-04-28 Thread Karen Tracey
On Tue, Apr 29, 2008 at 1:31 AM, skunkwerk <[EMAIL PROTECTED]> wrote: > > thanks karen, > i think my views.py file is the source of the error, as it tries to > import from winebago.models like so: > > from winebago.models import Models > > (Models is defined after AuthPermission in models.py, a

Re: class in models.py 'not defined' exception

2008-04-28 Thread skunkwerk
thanks karen, i think my views.py file is the source of the error, as it tries to import from winebago.models like so: from winebago.models import Models (Models is defined after AuthPermission in models.py, and there are 3 other tables defined before AuthPermission in models.py - none of whi

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 the django  comments, but it l

Session/Varibale and HttpResponseRedirect help please

2008-04-28 Thread Brandon Taylor
Hello everyone, I'm doing a redirect after a form to a "thank you" page, which I would like to personalize with some of the data from the form. I've tried setting a session as such: ### views.py code if form.is_valid(): first_name = form.cleaned_data['first_name'] request.session['first

Re: data field error running mysql 5.0.45 django 0.96.1

2008-04-28 Thread Karen Tracey
2008/4/28 unixdude_from_mars <[EMAIL PROTECTED]>: > > I am attempting to query my database for a DateField. I use the > following lines to set the qset in my view code. > > query = request.GET.get('q','') > if query: > ( > Q(end__icontains=query) | > Q(maintenance_contractor__name__ic

Re: OneToMany relationshops between models?

2008-04-28 Thread Mike Chambers
Thanks. Ill take a look at that, as well as some of the other comments framework. I had looked at the django comments, but it looked like it wasnt really supported, and might change soon. mike chambers [EMAIL PROTECTED] wrote: > For something like this the best way to do this is a generic f

Re: OneToMany relationshops between models?

2008-04-28 Thread [EMAIL PROTECTED]
For something like this the best way to do this is a generic foreign key, here is an example: http://www.djangoproject.com/documentation/models/generic_relations/ . For comments though you should probably check out, django.contrib.comments, or one of the other open source comment packages(such a

OneToMany relationshops between models?

2008-04-28 Thread Mike Chambers
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(models.Model): comment = models.TextField(core=True) item = models.ForeignKey(Item) class Item(models.Model):

Re: Template Tags Inside 'ifequals'

2008-04-28 Thread Szaijan
Perfect. Thanks guys. While I don't really agree with the philosophy behind purposely limiting the template language, as a rule I prefer to keep as much in the view as possible, so this solution appeals to me. Bottom line, if I weren't using mostly Javascript based, Ajax style updates, I would

Re: Render raw image

2008-04-28 Thread Brian
Have you considered creating a separate view for that particular image? You'd have a view designed to grab that image and return it with the proper MIME type. Then you could, in your Welcome method, return a dynamically generated path to that URL using the reverse() method, which you'd use in your

Re: class in models.py 'not defined' exception

2008-04-28 Thread Karen Tracey
On Mon, Apr 28, 2008 at 11:54 PM, skunkwerk <[EMAIL PROTECTED]> wrote: > > I've been struggling with this error for the past hour. > > Error while importing URLconf 'winebago.urls': name 'AuthPermission' > is not defined > Exception Location: /usr/lib/python2.5/site-packages/django/core/ > urlreso

class in models.py 'not defined' exception

2008-04-28 Thread skunkwerk
I've been struggling with this error for the past hour. Error while importing URLconf 'winebago.urls': name 'AuthPermission' is not defined Exception Location: /usr/lib/python2.5/site-packages/django/core/ urlresolvers.py in _get_urlconf_module, line 255 my models.py was generated by: ./manage.p

Re: passing form to base template

2008-04-28 Thread Ronny Haryanto
On Tue, Apr 29, 2008 at 9:33 AM, skunkwerk <[EMAIL PROTECTED]> wrote: > I've got two forms included in my base template, from which a few > others inherit. Currently I'm passing a newly-constructed form to > each of the inherited templates in the functions using > render_to_response, like so:

passing form to base template

2008-04-28 Thread skunkwerk
I've got two forms included in my base template, from which a few others inherit. Currently I'm passing a newly-constructed form to each of the inherited templates in the functions using render_to_response, like so: return render_to_response('contact.html', {'form': form, 'suggform': suggform,

Re: get_or_create and foreign keys

2008-04-28 Thread davenaff
This might be a syntax problem. This is the syntax I use: object, created = Entity.objects.get_or_create(id=12) On Apr 28, 12:12 pm, Thierry <[EMAIL PROTECTED]> wrote: > The get or create syntax does not appear to support the following > syntax: > > object, created = get_or_create(entity_id = 12

Re: Queryset-refactor branch has been merged into trunk

2008-04-28 Thread davenaff
Awesome work. 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 PROTE

Re: Queryset-refactor branch has been merged into trunk

2008-04-28 Thread Craig Ogg
w00t! Not sure where to point this out, but anyone using the full text search implementation from Mercurytide[1] will get the following error: django/db/models/query.py line c = klass(model=self.model, query=self.query.clone()) "__init__() got an unexpected keyword argument 'query'" Th

Re: Template Tags Inside 'ifequals'

2008-04-28 Thread Darryl Ross
Darryl Ross wrote: Szaijan wrote: Is there a way to access the URL values assigned to the view names within a view? Perhaps something less inelegant than importing urls.py and searching for the view name in the tuple? Otherwise I've traded hardcoding URLs into one template for hard coding them

Re: Template Tags Inside 'ifequals'

2008-04-28 Thread Malcolm Tredinnick
On Mon, 2008-04-28 at 17:49 -0700, Szaijan wrote: > Thanks Malcolm. > > Is there a way to access the URL values assigned to the view names > within a view? Perhaps something less inelegant than importing > urls.py and searching for the view name in the tuple? Otherwise I've > traded hardcoding

Re: Overriding model __init__() method

2008-04-28 Thread Malcolm Tredinnick
On Mon, 2008-04-28 at 17:20 -0700, Nathaniel Whiteinge wrote: > I'm using the __init__() method in a few models to save state for > later use in save(), e.g.:: > > class MyModel(models.Model): > ... > def __init__(self, *args, **kwargs): > super(MyModel, self).__i

Re: Template Tags Inside 'ifequals'

2008-04-28 Thread Darryl Ross
Szaijan wrote: Is there a way to access the URL values assigned to the view names within a view? Perhaps something less inelegant than importing urls.py and searching for the view name in the tuple? Otherwise I've traded hardcoding URLs into one template for hard coding them into 5+ views. Do

Re: Template Tags Inside 'ifequals'

2008-04-28 Thread Szaijan
Thanks Malcolm. Is there a way to access the URL values assigned to the view names within a view? Perhaps something less inelegant than importing urls.py and searching for the view name in the tuple? Otherwise I've traded hardcoding URLs into one template for hard coding them into 5+ views. --~

Re: Django Registration Error (Does not return from SMTP call)

2008-04-28 Thread Szaijan
Just as an update, I was told that due to a security change at GMail, libgmail is not currently functional, which certainly matches with my complete inability to get it functioning as an SMTP sever for my django-registration install. Returning to local SMTP, I finally got it functioning on Debian

Re: Processing saves()

2008-04-28 Thread Darryl Ross
Lee Hinde wrote: After the line item is saved, I want to call the Work Order to have it update a Total Due column. Assuming I have the code in the Work Order model to get all the related line items and sum the extended price, what I would do is call the Work Order save() method from the Line Item

data field error running mysql 5.0.45 django 0.96.1

2008-04-28 Thread unixdude_from_mars
I am attempting to query my database for a DateField. I use the following lines to set the qset in my view code. query = request.GET.get('q','') if query: ( Q(end__icontains=query) | Q(maintenance_contractor__name__icontains=query) | Q(purchase_order__icontains=query) )

Django Registration URLs

2008-04-28 Thread Szaijan
I am using django_registration as part of my Django web app, visionary. The 'registration' directory is in the same base django directory as 'visionary'. I've imported 'registration/urls.py' into my 'visionary/urls.py' via the line: (r'^visionary/accounts/', include('registration.urls')),

Re: Login issue

2008-04-28 Thread Darryl Ross
Hi Bret, Can't see that anyone else has responded to this. Bret W wrote: There are many times when I can enter a username and password, click the "login" button, and get the username/password don't match error. The error page (/accounts/login, using example template from docs) automatically fi

Overriding model __init__() method

2008-04-28 Thread Nathaniel Whiteinge
I'm using the __init__() method in a few models to save state for later use in save(), e.g.:: class MyModel(models.Model): ... def __init__(self, *args, **kwargs): super(MyModel, self).__init__(*args, **kwargs) self.old_value = self.value def sa

Re: Intermediary Triple Join Table?

2008-04-28 Thread Russell Keith-Magee
On Tue, Apr 29, 2008 at 4:31 AM, phloopy <[EMAIL PROTECTED]> wrote: > > It looks like Rails has something called Has Many Through that can > address such a triple join table. Still no idea how to do it in > Django though... Right now - like this: http://www.djangoproject.com/documentation/mo

Re: Complex Django Hosting

2008-04-28 Thread Martin Diers
On Apr 27, 2008, at 10:42 AM, Josh wrote: > > So it sounds like the best three options are (in no particular order): > 1. Remain with Webfaction. > 2. Move to Slicehost. > 3. Move to a colocated server. > If you are looking at colocation, have you checked out Amazon EC2? It might be a much mo

Re: Genealogy apps

2008-04-28 Thread Milan Andric
On Apr 28, 12:32 pm, ecrosstexas <[EMAIL PROTECTED]> wrote: > Does anyone know of any existing apps writtrn in Django for > genealogy?  I thought there was one in Google Code awhile back, but I > can't seem to find it now. I've heard of one called begat but it may have disappeared from google c

Re: form_for_model and accessing foreign object attribute

2008-04-28 Thread morfeus
Everyone, Wow! Thanks for the speedy response. I only wish I had thrown in the towel days ago and posted here. I could have saved a lot of time! Oh well, I did learn a lot. Richard, I tried to implement your solution but I get the error: 'global name 'Manager' is not defined' I tried adding an i

Re: Intermediary Triple Join Table?

2008-04-28 Thread Cameron Hutchison
phloopy wrote: >I'm building a system that manages sports leagues, hockey is the first >one I'm worried about but I intend it to be flexible enough for others >as well. There are three objects that are involved in this question: >Person: represents anybody involved in the league, has many roles

Re: unable to open database file

2008-04-28 Thread Kenneth Gonsalves
On 29-Apr-08, at 1:52 AM, [EMAIL PROTECTED] wrote: > I get a operational error when i try to access the sqlite3 database > file. This doesn't happen with Django built in server only with > apache. The file has 660 permission so i dont know why it cant be > opened everything else works fine

Re: UnicodeDecodeError in request.get_full_path()

2008-04-28 Thread Amit Ramon
Sorry, it was me being foolish. I created a query string that was utf-8 encoded with non-ascii characters, and used it in a template anchor tag. It seems that Firefox converts it according to RFC 2396 before sending it over, but IE leaves it as is. request.get_full_path expects to receive an as

Re: Genealogy apps

2008-04-28 Thread Kenneth Gonsalves
On 28-Apr-08, at 11:02 PM, ecrosstexas wrote: > Does anyone know of any existing apps writtrn in Django for > genealogy? I thought there was one in Google Code awhile back, but I > can't seem to find it now. is the year 1900 problem solved? if not , genealogy would be a little difficult --

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 my Django application directly. >

making a stand-alone program call a django app directly

2008-04-28 Thread Andrew D. Ball
Greetings. I'm working on a Django application and would like to be able to write a stand-alone Python program that calls my Django application directly. Accomplishing like seems to require me to import the project settings file, which I've figured out how to do. However, I'm still looking for

Re: accessing dictionary values in a template for loop

2008-04-28 Thread RaviKondamuru
Figured out. {{ values|length }} gives the length of the list to be used for rowspan tag. thanks, Ravi. On Apr 28, 1:16 pm, RaviKondamuru <[EMAIL PROTECTED]> wrote: > Thanks. With results.items, both solutions work on the svn current > version. > > The variable value is a list. I would like each

Render raw image

2008-04-28 Thread hareesh
(I'm a django n00b). Through a database, I get the raw contents of an image and the image's mimetype: def Welcome(request): (mime, blob) = d.GetMedia() ... return shortcuts.render_to_response('welcome.html', { 'msg' : 'Welcome!', 'logo' : blob }) # Line 3 Now clearly, this (Line 3) doesn

Re: form_for_model and accessing foreign object attribute

2008-04-28 Thread Karen Tracey
On Mon, Apr 28, 2008 at 5:20 PM, Richard Dahl <[EMAIL PROTECTED]> wrote: > > You are having trouble because the form does not contain a Manager > object, it contains the primary key of a related Manager object. > > Actually, form.cleaned_data['manager'] will be a Manager object. That's what clean

Processing saves()

2008-04-28 Thread Lee Hinde
I'd like to make sure I'm on the right track. Given a standard Invoice/Work order type app, where one model is the Work Order and one is Line Items. When I save line items, I want to calculate extended price (Quantity * cost). Put that in the Line Items model, def save() After the line item is

Re: form_for_model and accessing foreign object attribute

2008-04-28 Thread Richard Dahl
You are having trouble because the form does not contain a Manager object, it contains the primary key of a related Manager object. try this: m = Manager.objects.get(pk=form['manager']) send_mail( 'Software Request', message, sender, m.email) -richard On 4/28/0

Re: authenicate

2008-04-28 Thread Chris
Sorry I was kind of vague on that. The error that I was getting was the raise - 'Somethng Went Wrong'. But I did figure it out. The reason for the error was related to another issue that I resolved. Thanks for responding and being so supportive. On Apr 28, 4:35 pm, "Karen Tracey" <[EMAIL PROTECT

Re: Intermediary Triple Join Table?

2008-04-28 Thread Richard Dahl
Based on what you have described I see no reason to tie a persons sports role to them directly, by doing something like what I suggest below, you tie a person to a role only when they use that role (during a game). If you think about it, this represents real life a bit more accurately. I played

Image Field problem, probably something to do with the path, but I'm not sure

2008-04-28 Thread mw
Hello, I created a small little application that included a field for an image upload in the admin interface. It worked in the past, but after changing the path of MEDIA_ROOT to MEDIA_ROOT = '/Library/WebServer/Documents/site_media/' It seems to no longer work. That directory exists, and at t

form_for_model and accessing foreign object attribute

2008-04-28 Thread morfeus
I am new to django and python, so forgive me if I make incorrect references. I've been trying for days to find a solution. I will try to give all the necessary details. The general problem: Accessing an attribute value of a foreign object through the form. What I have: A form that gathers inform

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 database file. > Thi

Re: generic delete_object issue on Firefox (redirect bug)

2008-04-28 Thread koenb
Sorry; forgot to add, you will need to wrap the generic view in a custom wrapper view for that. On 28 apr, 22:42, koenb <[EMAIL PROTECTED]> wrote: > The problem is FF does not like it if you do not consume the POST > data. > Just add the line > request.POST > somewhere in your view before redi

Re: generic delete_object issue on Firefox (redirect bug)

2008-04-28 Thread koenb
The problem is FF does not like it if you do not consume the POST data. Just add the line request.POST somewhere in your view before redirecting. Koen On 28 apr, 17:33, yml <[EMAIL PROTECTED]> wrote: > Hello, > I noticed a very strange behavior with the generic view called : > "delete_object". T

Re: authenicate

2008-04-28 Thread Karen Tracey
On Mon, Apr 28, 2008 at 4:01 PM, Chris <[EMAIL PROTECTED]> wrote: > > Anyone see what I am doing wrong here? > > http://dpaste.com/47296/ > > Thanks in advance. > You put some of your close parens in odd places. Not the kind of help you are looking for? Perhaps include in your request for help

Re: Intermediary Triple Join Table?

2008-04-28 Thread phloopy
It looks like Rails has something called Has Many Through that can address such a triple join table. Still no idea how to do it in Django though... On Apr 28, 2:47 pm, phloopy <[EMAIL PROTECTED]> wrote: > I'm trying to figure out how to solve a particular problem in my Model > design. If I'm tr

Re: Sort QuerySet

2008-04-28 Thread Poz
Thanks to you both. I'll try them and see if I can get this working. ~poz On Apr 28, 12:42 am, Amit Ramon <[EMAIL PROTECTED]> wrote: > * Malcolm Tredinnick <[EMAIL PROTECTED]> [2008-04-28 16:17 +1000]: > > > > > > > On Sun, 2008-04-27 at 23:03 -0700, Poz wrote: > > [...] > > > I'm going crazy wi

Re: authenicate

2008-04-28 Thread Poz
What kind of error are you getting? On Apr 28, 1:01 pm, Chris <[EMAIL PROTECTED]> wrote: > Anyone see what I am doing wrong here? > > http://dpaste.com/47296/ > > Thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

unable to open database file

2008-04-28 Thread jorgehugoma
hello all, I get a operational error when i try to access the sqlite3 database file. This doesn't happen with Django built in server only with apache. The file has 660 permission so i dont know why it cant be opened everything else works fine. OS is openSUSE 10.3. Regards, Jorge Hugo Muril

Re: Enhancing the Admin Interface

2008-04-28 Thread Kevin Monceaux
James, On Mon, 28 Apr 2008, James Matthews wrote: > Can someone please point me to a site that lists all the enhancement for > the admin interface. (filter lists,search,orderby etc..) They're on the Model Reference documentation page: http://www.DjangoProject.com/documentation/model-api/#admin

Re: accessing dictionary values in a template for loop

2008-04-28 Thread RaviKondamuru
Thanks. With results.items, both solutions work on the svn current version. The variable value is a list. I would like each key,value to be in a separate row. {% for key, values in results.items %} {% for value in values %} {{ key }} {{ value }

IE6/Safari not keeping cookie after closing browser

2008-04-28 Thread Seth Buntin
Firefox works great! Wish everyone used it! When setting a cookie in my application it sets correctly and the site works correctly. It will allow whoever to the places they need to go and force a login otherwise. When browsing to another site and back the cookie stays which is good. When clos

Re: Django Performance Discoveries Part 1

2008-04-28 Thread James Matthews
Very nice article! Thanks 2008/4/28 Graham Dumpleton <[EMAIL PROTECTED]>: > > On Apr 28, 5:44 pm, Jarek Zgoda <[EMAIL PROTECTED]> wrote: > > Christian Vest Hansen napisał(a): > > > > > On 4/28/08, rich <[EMAIL PROTECTED]> wrote: > > >> Yes, I too am at a similar level of confusion as to when dja

Enhancing the Admin Interface

2008-04-28 Thread James Matthews
Dear List Can someone please point me to a site that lists all the enhancement for the admin interface. (filter lists,search,orderby etc..) Thanks James -- http://search.goldwatches.com/?Search=Movado+Watches http://www.jewelerslounge.com http://www.goldwatches.com --~--~-~--~~

authenicate

2008-04-28 Thread Chris
Anyone see what I am doing wrong here? http://dpaste.com/47296/ Thanks in advance. --~--~-~--~~~---~--~~ 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

Intermediary Triple Join Table?

2008-04-28 Thread phloopy
I'm trying to figure out how to solve a particular problem in my Model design. If I'm trying to pound a nail with an old shoe or glass bottle (google "Pounding A Nail: Old Shoe or Glass Bottle?") feel free to suggest a different way to tackle the problem. I'm building a system that manages sport

Edit textarea in openoffice?

2008-04-28 Thread Michael
Hi All, Up to now using tinymce ( and xinha) to modify content of textarea ( it is a letter ) . Now need to switch for editing that content in openoffice ( word ) and able to save it back to textarea. Is it possible ? Or which way should I go ? -- -- Michael --~--~-~--~~-

Re: Great article about web2py

2008-04-28 Thread kamil
thanx interesting On Apr 28, 6:19 pm, Milan Andric <[EMAIL PROTECTED]> wrote: > This is not Django specific but it is framework relevant.  I thought > this was a great writeup of features for any framework.  At least I am > one person who likes the features of this web2py framework. > > http://md

Re: Page-trees in admin system

2008-04-28 Thread Matthias Kestenholz
Hi, On Mon, 2008-04-28 at 12:19 -0700, Rodrigo Culagovski wrote: > Matthias, > > that looks like what I'm looking for. Does it work in trunk? > > thanks! > > Rodrigo I've just made an update to trunk locally and it seems to work, yeah. django-mptt does not seem to have a problem with the qs-r

Re: Page-trees in admin system

2008-04-28 Thread Rodrigo Culagovski
Matthias, that looks like what I'm looking for. Does it work in trunk? thanks! Rodrigo On Apr 28, 3:13 pm, Matthias Kestenholz <[EMAIL PROTECTED]> wrote: > Hi, > > > > On Mon, 2008-04-28 at 12:03 -0700, Rodrigo Culagovski wrote: > > I am starting to develop a site with Django. I will need to i

Re: Genealogy apps

2008-04-28 Thread Jonathan
I use gramps. I guess it would be cool to port to django. --Jonathan On Mon, Apr 28, 2008 at 10:32 AM, ecrosstexas <[EMAIL PROTECTED]> wrote: > > Does anyone know of any existing apps writtrn in Django for > genealogy? I thought there was one in Google Code awhile back, but I > can't seem to fi

get_or_create and foreign keys

2008-04-28 Thread Thierry
The get or create syntax does not appear to support the following syntax: object, created = get_or_create(entity_id = 12) it fails on the _id part. is there anyway to give it numbers instead of objects? --~--~-~--~~~---~--~~ You received this message because you

Page-trees in admin system

2008-04-28 Thread Rodrigo Culagovski
I am starting to develop a site with Django. I will need to implement a 'pagetree' that serves static pages, (similar to the contrib.flatpages), with 3 or 4 levels of depth. I have already done this for previous Django driven sites, but wonder if there is a better way. My model looks like: class

Re: Queryset-refactor branch has been merged into trunk

2008-04-28 Thread Don Spaulding II
Malcolm Tredinnick wrote: > I merged queryset-refactor into trunk just now. This was changeset > r7477. Thanks for all of your effort on this, Malcolm. Malcolm's Amazon Wishlist: http://www.amazon.com/gp/registry/registry.html?ie=UTF8&type=wishlist&id=1VB5A16R2KV0T

Re: multiple children in multitable inheritance

2008-04-28 Thread AmanKow
Thanks Malcolm! Extending a model you don't own was the use case I was missing. Thanks for clearing that up for me. As I stated previously, I will be using explicit one to ones for the person can be a student, faculty, manager, etc. It looks like I could hammer mt inheritance to fit without too

Genealogy apps

2008-04-28 Thread ecrosstexas
Does anyone know of any existing apps writtrn in Django for genealogy? I thought there was one in Google Code awhile back, but I can't seem to find it now. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django user

Great article about web2py

2008-04-28 Thread Milan Andric
This is not Django specific but it is framework relevant. I thought this was a great writeup of features for any framework. At least I am one person who likes the features of this web2py framework. http://mdp.cti.depaul.edu/examples/static/web2py_vs_others.pdf Web2py makes development happen f

Re: django admin adding links to list view

2008-04-28 Thread Rajesh Dhawan
On Apr 28, 1:06 pm, Thierry <[EMAIL PROTECTED]> wrote: > is there any way to add links to the list view in the django admin? > I would like to links to some custom admin functionality, but it seems > quite hard to do :) Here's example code to add to your Model: def my_link(self): from dj

django admin adding links to list view

2008-04-28 Thread Thierry
is there any way to add links to the list view in the django admin? I would like to links to some custom admin functionality, but it seems quite hard to do :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django us

need to refine the following query

2008-04-28 Thread [EMAIL PROTECTED]
The following query returns to me the 3 most upcoming EventDate's. I need to refine this query so that it will not return more than one EventDate for a particular Event. My query and models are shown below. def build_upcoming_shows(parser, tokens): return UpcomingShowsNode() class Upc

Re: MySQL-python-1.2.2 - install errors

2008-04-28 Thread jonknee
> I think you may want to check out this post: > > http://blog.awarelabs.com/?p=48 > > Specifically, steps 4 and 5. That does indeed do the trick. At least for 10.5 Leopard. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

generic delete_object issue on Firefox (redirect bug)

2008-04-28 Thread yml
Hello, I noticed a very strange behavior with the generic view called : "delete_object". The symptom is the following : * Firefox return an error message ---8<--- The connection was reset The connection to the server was reset while the page was loading.

Re: Queryset-refactor branch has been merged into trunk

2008-04-28 Thread James Bennett
On Mon, Apr 28, 2008 at 8:32 AM, Juanjo Conti <[EMAIL PROTECTED]> wrote: > Could you give me a url where new features are explained? > Is this backwards compatible or should I svn up with care? Well, there's the wiki page Malcolm linked up in his original post... -- "Bureaucrat Conrad, you a

Re: Queryset-refactor branch has been merged into trunk

2008-04-28 Thread Juanjo Conti
Malcolm Tredinnick escribió: > I merged queryset-refactor into trunk just now. This was changeset > r7477. Could you give me a url where new features are explained? Is this backwards compatible or should I svn up with care? Thanks Juanjo -- mi blog: http://www.juanjoconti.com.ar --~--~---

Re: Queryset-refactor branch has been merged into trunk

2008-04-28 Thread hiwd
malcom, thanks much for your hard work on this bad boy! I've already @ioubeer ya on twitter. so the next time you're in nyc, i'm buying. much appreciated, cheers! On Apr 26, 11:29 pm, Prairie Dogg <[EMAIL PROTECTED]> wrote: > Malcom, > > Thanks so much for your tremendous effort and success

Re: YUI Autocomplete

2008-04-28 Thread Pigletto
> Dear all, > I'm trying to put YUI autocomplete in my form, following this > tutorial:http://www.djangosnippets.org/snippets/392/ I've slightly updated the snippet code but I can't check it now so if you'll try it then let me know if something is still wrong. -- Maciej Wisniowski --~--~-

Re: YUI Autocomplete

2008-04-28 Thread Pigletto
Hi! This is my snippet, that you're using, so I hope I can help :) > 1) Inside the my form class, if I specify: > > def __init__(self,*args, **kwargs ): > super(QuizForm, self).__init__(*args, > **kwargs) > n_lookup_url = reverse('djangoOp.op.views.json_lookup') # url to your > view > n_schema

Re: Can Django have unique user homepage?

2008-04-28 Thread jmDesktop
Does anyone have a recommendation on which implementation to use when creating a self-authentication system? There weren't that many, but thought some of you might have experience with one. On Apr 26, 6:01 pm, Bret W <[EMAIL PROTECTED]> wrote: > And that's just one way, of course. > > On Apr 26,

Re: Looking at objects by year, month

2008-04-28 Thread Darryl Ross
Ryan Vanasse wrote: Trying to get the outer for loop working is something that I don't really understand. I think that what I have now isn't going to work because I'm using a dictionary reference on what was transmuted into the Context, so that "eventsByMonth" doesn't exist... I've been trying

Re: MySQL-python-1.2.2 - install errors

2008-04-28 Thread [EMAIL PROTECTED]
I think you may want to check out this post: http://blog.awarelabs.com/?p=48 Specifically, steps 4 and 5. Disclaimer, I have not personally installed or used mysql in years. I just happened to come across both these posts today. Hope That Helps, -Thomas On Apr 27, 9:40 pm, "[EMAIL PROTECTED

Re: Django Performance Discoveries Part 1

2008-04-28 Thread Graham Dumpleton
On Apr 28, 5:44 pm, Jarek Zgoda <[EMAIL PROTECTED]> wrote: > Christian Vest Hansen napisał(a): > > > On 4/28/08, rich <[EMAIL PROTECTED]> wrote: > >>  Yes, I too am at a similar level of confusion as to when django is not > >>  thread safe. > > > With the python GIL, is it even possible to create

Re: Grrr, can't import custom template tag

2008-04-28 Thread Jay
Hi! Yes, in fact on the development server it works fine. On the production server I'm using lighttpd/fcgi, and I have stopped and restarted both approximately 800 times. It's very strange. I feel like it must be something to do with my server configuration. I have the exact same versions of

YUI Autocomplete

2008-04-28 Thread Orazio
Dear all, I'm trying to put YUI autocomplete in my form, following this tutorial: http://www.djangosnippets.org/snippets/392/ There are two main problems: 1) Inside the my form class, if I specify: def __init__(self,*args, **kwargs ): super(QuizForm, self).__init__(*args, **kwargs) n_lookup_url

  1   2   >