Re: ./manage.py dbdump > mydata.sql

2006-11-16 Thread [EMAIL PROTECTED]
yes would be very useful tool. I have some experience with MySQL, so import/export data between servers running MySQL is not a problem for me. but really, for postgres this process is more complicated, so such "helper" function will be very useful --~--~-~--~~~---~--~

Re: Maintenance

2006-11-16 Thread [EMAIL PROTECTED]
Kenneth Gonsalves wrote: > you have to do it manually yes, as far I understand this is easiest and recommended way. Who knows what business logic rules come with update? I think there will be many non-trivial cases which automatic update will not support. So I agree with Kenneth - basic underst

Re: Want to see your favorite branch merged? Here's how you can help!

2006-11-16 Thread Ramon Salvadó
1. Schema Evolution 2. TextIndexingAbstractionLayer En/na Manu J ha escrit: > 1. Row level permissions > 2. Schema Evolution > > -- > Manu > > > > -- Ramon Salvadó [EMAIL PROTECTED] gnuine http://www.gnuine.com Tel: +34.93.567.94.94 Fax: +34.93.567.94.95 GPG Key ID: 0x6EF9C883 --~--~---

Re: Generating slug for words with accents

2006-11-16 Thread Kamil Wdowicz
Polish: ą = a ć = c ź or ż = z ę = e ó = o ł = l ś = s ń = n 2006/11/17, zenx <[EMAIL PROTECTED]>: > > Spanish info: > á é í ó úshould be a e i o u > ü should be u > ñ should be n > > I think that's everything in spanish ;) > > > > > --~--~---

Acces to model object inside model

2006-11-16 Thread Kamil Wdowicz
It is possible to access, and do a query inside models.py ? Something like this: class Tag(models.Model): #props... def _get_count(self): return Tag.objects.all().count() counter = property(_get_count) Do you know what I mean ? --~--~-~--~~~---

Re: Re: Inside look at Ellington?

2006-11-16 Thread James Bennett
On 11/17/06, James Bennett <[EMAIL PROTECTED]> wrote: > Yep. I've even seen all the source code :) Ah, crap. Meant to reply to him directly, instead of to the list. My apologies for the spam :( -- "May the forces of evil become confused on the way to your house." -- George Carlin --~--~

Re: Inside look at Ellington?

2006-11-16 Thread James Bennett
On 11/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I know what Ellington is, but the publicity it's got is rather small. > Have any of you seen other screenshots of it than the one on their > start page? Yep. I've even seen all the source code :) Screenshots probably wouldn't be all tha

Re: Inside look at Ellington?

2006-11-16 Thread Adrian Holovaty
On 11/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I know what Ellington is, but the publicity it's got is rather small. > Have any of you seen other screenshots of it than the one on their > start page? > > Is the system simply an ordinary project built in Django, or is this > another br

Inside look at Ellington?

2006-11-16 Thread [EMAIL PROTECTED]
Hi there, I know what Ellington is, but the publicity it's got is rather small. Have any of you seen other screenshots of it than the one on their start page? Is the system simply an ordinary project built in Django, or is this another branch? Does *anyone* have any info on Ellington? I just fin

Tutorial

2006-11-16 Thread BeagleBen
Hello Has anyone got a Django step by step Apache configuration tutorial, I am struggling a bit here Thanks Beagle --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, se

Re: Automatic gradient generation

2006-11-16 Thread Kenneth Gonsalves
On 17-Nov-06, at 3:57 AM, Aaron Torres wrote: > Since I still don't have a website to post a tutorial on, you could post it on the django wiki itself - that is what it is for -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~~~--

Re: Maintenance

2006-11-16 Thread Kenneth Gonsalves
On 17-Nov-06, at 12:59 AM, cwurld wrote: > I am working on my first Django powered website. I am concerned about > how to modify apps after the site has gone live. For example, I have > created a model that contains a class based on the Django Auth User > class. Lets say that I go live and have

apache2 mod-fcgid with django?

2006-11-16 Thread [EMAIL PROTECTED]
According to the django document, you have to setup a FastCgiExternalServer directive in apache conf, But I found there seems no 'FastCgiExternalServer' directive in mod-fcgid, anyone tried mod-fcgid with django? I have succeed deploy it using the shared-hosting provider method from document, ju

Re: Maintenance

2006-11-16 Thread Russell Keith-Magee
On 11/17/06, cwurld <[EMAIL PROTECTED]> wrote: > Are their any Django tools to make that process easier. Nothing specific in the main trunk; however, the schema evolution branch is intended to address this problem. I believe this branch is feature complete, but requires testing before it will j

Re: ./manage.py dbdump > mydata.sql

2006-11-16 Thread Russell Keith-Magee
On 11/17/06, Rob Hudson <[EMAIL PROTECTED]> wrote: > > > Would something like this be a useful thing to add to manage.py? > > It would be a convenience similar to dbshell in that the database > credentials are already in settings.py and you can easily do a database > dump of your data. I've got a

Re: how to tell if django is running from apache or standalone?

2006-11-16 Thread Graham Dumpleton
sandro.dentella wrote: > Hi all, > > how can I test from within settings.py if I'm running via mod_python > or in standalone way? I need to set a variable, accordingly. You could use something like: in_mod_python = False try: from mod_python import apache in_mod_python = True e

Re: how to tell if django is running from apache or standalone?

2006-11-16 Thread gabor
sandro.dentella wrote: > Hi all, > > how can I test from within settings.py if I'm running via mod_python > or in standalone way? I need to set a variable, accordingly. > what do you mean by "standalone"? using the development server? btw. wouldn't the DEBUG variable help you? simply set i

Re: how to tell if django is running from apache or standalone?

2006-11-16 Thread Christian Joergensen
sandro.dentella wrote: > Hi all, > > how can I test from within settings.py if I'm running via mod_python > or in standalone way? I need to set a variable, accordingly. You could import os and look in os.environ for differences. Maybe somthing differs. -- Christian Joergensen | Linux, progra

Re: Generating slug for words with accents

2006-11-16 Thread zenx
Spanish info: á é í ó úshould be a e i o u ü should be u ñ should be n I think that's everything in spanish ;) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Django Intern/Contract Work for WPNI

2006-11-16 Thread Deryck Hodge
Hi, all. We're looking to hire one or more developers to work on Django apps for the product development group at Washington Post.Newsweek Interactive. We've got a ton of work to get done in the next several months and need help from some skilled coders. Python knowledge is a must, and familiar

Re: Something like Application in ASP for django?

2006-11-16 Thread mamcxyz
Yes, that is the idea. I test it, and not work. When the request finalize, the module dissapear from memory then the global variables. My hacking way was using a file-lock (create a file, check if exist in the other threads) but maybe exist other way. --~--~-~--~~~-

Automatic gradient generation

2006-11-16 Thread Aaron Torres
Hi everybody, Since I still don't have a website to post a tutorial on, I thought I'd share an idea I worked on today that automatically generates gradient backgrounds of any color for your django sites! I got the idea from 2 website tutorials based on similar subjects http://www.alistapart.com

Re: Want to see your favorite branch merged? Here's how you can help!

2006-11-16 Thread Manu J
1. Row level permissions 2. Schema Evolution -- Manu --~--~-~--~~~---~--~~ 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

Threading inside django process

2006-11-16 Thread akhen
Hi I have some questions regarding threading inside django, to know if I can run a a working thread (a thread running each minute, and perform some tasks with the django objects, could be update a view for example ) inside the running django/python/mod_python process ? Like what we can do inside

how to tell if django is running from apache or standalone?

2006-11-16 Thread sandro.dentella
Hi all, how can I test from within settings.py if I'm running via mod_python or in standalone way? I need to set a variable, accordingly. TIA sandro *:-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: How to restart Django/FastCGI/Lighttpd?

2006-11-16 Thread Jay Parlar
On 11/16/06, Tom Smith <[EMAIL PROTECTED]> wrote: > I'm sure there are better ways, but that's the way that works for me. > That sounds great and I tried setting up an SVN repos on Textdrive and it > beat me... following the docs, again, it's the concepts that get me, not the > specifics... > > I'

Re: Maintenance

2006-11-16 Thread [EMAIL PROTECTED]
cwurld wrote: > Hi, > > I am working on my first Django powered website. I am concerned about > how to modify apps after the site has gone live. For example, I have > created a model that contains a class based on the Django Auth User > class. Lets say that I go live and have 10,000 users in the d

KeyError when using blocktrans

2006-11-16 Thread [EMAIL PROTECTED]
With the latest version of Django from SVN, it appears you can no longer use sub-attributes of a template variable within a blocktrans tag. For instance, the following will give you a KeyError: {% blocktrans %}by {{ item.author }} at{% endblocktrans %} However, the following works just fine: {

Re: Django developers NYC???

2006-11-16 Thread ToddG
Take a look at his email address --~--~-~--~~~---~--~~ 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 t

Re: Django developers NYC???

2006-11-16 Thread [EMAIL PROTECTED]
Hi Brian, Check out http://code.djangoproject.com/wiki/DevelopersForHire. That might get you somewhere. :) http://www.authenticjobs.com/ might also be of help, as well as http://thinkvitamin.com/jobs/developer. Happy hunting! PS: You wouldn't wanna tell us what newspaper you're talking about, wo

./manage.py dbdump > mydata.sql

2006-11-16 Thread Rob Hudson
Would something like this be a useful thing to add to manage.py? It would be a convenience similar to dbshell in that the database credentials are already in settings.py and you can easily do a database dump of your data. -Rob --~--~-~--~~~---~--~~ You received

Maintenance

2006-11-16 Thread cwurld
Hi, I am working on my first Django powered website. I am concerned about how to modify apps after the site has gone live. For example, I have created a model that contains a class based on the Django Auth User class. Lets say that I go live and have 10,000 users in the db, then I decide I want t

Re: Something like Application in ASP for django?

2006-11-16 Thread Alex Li
Are you looking for something like a global registry? The simplest case would probably be using a global variable in your application module, and import the module when you need to access the global variable? If you need to initialize the global variable when the application first start (before

Re: How to find out the id of the last record in a table?

2006-11-16 Thread Manu J
On 11/16/06, Don Arbow <[EMAIL PROTECTED]> wrote: > > On Nov 15, 2006, at 9:58 PM, simonbun wrote: > > > > The problem with getting the last record's id and using it, is that > > someone might have inserted yet another record while you're still > > working on the previous one. > > > > For single u

Re: video in django

2006-11-16 Thread James Bennett
On 11/16/06, Martin <[EMAIL PROTECTED]> wrote: > not every news item has the video. what to do in those cases? i > probably have to do something like "if there is a video, insert html > code for it" - but how do i do that in a template? Make it a field on the new item class, call it maybe 'video_

Re: How to restart Django/FastCGI/Lighttpd?

2006-11-16 Thread Tom Smith
On 16 Nov 2006, at 02:29, Jay Parlar wrote: > Well, here's the way I do it. On my development machine, I do all my > hacking out of a SVN working directory. When I get everything working > how I want it locally, I do my 'svn commit', then login to my > production server. > > From there, I have an

Re: So I made a forum with Django

2006-11-16 Thread Vladimir Pouzanov
On 11/3/06, argh44z <[EMAIL PROTECTED]> wrote: > > Here: http://huzzah.cc/ > > I'm thinking about cleaning up the code and open-sourcing it. Is anyone > interested? I ask this because 3 weeks ago when I started working on > it, I didn't really see much forum software written with Django that > was

video in django

2006-11-16 Thread Martin
Hello everybody, Could anyone help me a little bit with video in django? here goes: i have a site where i publish news items. in some news items i would like to have a video. i receive an URL of this video (it's located somewhere else) and i have to integrate it into news item. my idea is this: i

Something like Application in ASP for django?

2006-11-16 Thread mamcxyz
I made a custom installer script that work as in CMS systems like xoops (if detect is not installed then build the databse, fill data and config things). The thing is that the process is fired 3 times when I enter to the site, and look like the Mysql transaction support is not robust. I need to

Re: How to find out the id of the last record in a table?

2006-11-16 Thread Don Arbow
On Nov 15, 2006, at 9:58 PM, simonbun wrote: > > The problem with getting the last record's id and using it, is that > someone might have inserted yet another record while you're still > working on the previous one. > > For single user scenario's it's ok, or if you're using table level > write loc

Documentation or bug?

2006-11-16 Thread dchandek
http://www.djangoproject.com/documentation/model_api/#save-on-top This may affect other admin options ... but Django throws a syntax error when `save_on_top' is set before `fields'. The doc merely says that fields is required -- doesn't seem like the order should matter. --~--~-~--~

Indexes in Tables: thoughts or best practices

2006-11-16 Thread mthorley
What's the django way to define indexes for tables? I was surprised to see that there is no IndexField (I know field in not the 'correct' terminology) or similar for django models. The 'search' operator in the db api seems to limited to a sigle field and requires the developer to define the index

Re: have mltiple different models ForeignKey the same model and still conveniently get all the data from all other models?

2006-11-16 Thread Ivan Sagalaev
Karsten W. Rohrbach wrote: > Thanks for the quick reply. However, configurable containers with > configurable collections of content is one of the more prominent use > cases for a publishing platform (IMVHO) and I somehow took the "Django > is for creating CMSes" phrase too literally, it seems. T

Re: Curious error with Free Comments

2006-11-16 Thread Ramdas S
I removed the primary_key field now it is working. Otherwise it works with object.slug instead of object.id in case your model has a primary_key on the slug On 11/16/06, Sir Knight < [EMAIL PROTECTED]> wrote: > > > No, I neve touched any of those > > I guess it has to do with the fact that I do no

Issues with null foreign key

2006-11-16 Thread [EMAIL PROTECTED]
In my model, I would like to have an optional foreign key on an object. I have tried marking this foreign key as both blank=True and null=True, and both at the same time. The admin forms still complain about a null not being allowed in this db table. I have dropped my entire db and recreated it

Re: Search question

2006-11-16 Thread Ivan Sagalaev
Giorgio Salluzzo wrote: > I've got some Organization, where each one has some User. A User can > write a Ticket. > > How can I filter all the Ticket for a single Organization? Ticket.objects.filter(user__organization__name='SomeOrg') ('user' and 'organization' should be the names of foreign key

Re: Hiding directories from Django?

2006-11-16 Thread jefurii
Nice! I'd been trying to do this with RewriteRules, which didn't work at all. 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@google

Re: Search question

2006-11-16 Thread Aidas Bendoraitis
Something like that should do it: org = Organization.objects.get(slug="single-organization") tickets = Ticket.objects.select_related.filter(user__organization_id = org.id) or maybe even tickets = Ticket.objects.select_related.filter(user__organization__slug = "single-organization") Regards, Aidas

Re: Search question

2006-11-16 Thread Giorgio Salluzzo
I solved in this way but maybe there's a better way to do it: organizs = Organization.objects.filter(organization_name__icontains=data['organization_name']) for n in range(len(organizs)): for m in range(organizs[n].person.count()): for i in ran

Re: Re: Pagination with Custom Views

2006-11-16 Thread James Bennett
On 11/16/06, soundseeker <[EMAIL PROTECTED]> wrote: > I'm desperately searching for a solution as described here (paginator + > costom sql): In the example you've posted, the method name is 'by_categories', but you seem to be using 'by_category' to execute it. A method named 'by_categories' will

Re: have mltiple different models ForeignKey the same model and still conveniently get all the data from all other models?

2006-11-16 Thread Karsten W. Rohrbach
On Nov 16, 2:35 pm, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > Both these things are 'too custom' to work seamlessly in the current > admin. My bet is that it would be way simpler to implement custom views > for them. Though I should admit I'm not very experienced in hacking on > admin app. > >

Re: ImageField - CustomManipulator - save() - ???

2006-11-16 Thread [EMAIL PROTECTED]
no one a solution? --~--~-~--~~~---~--~~ 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

Search question

2006-11-16 Thread Giorgio Salluzzo
I've got some Organization, where each one has some User. A User can write a Ticket. How can I filter all the Ticket for a single Organization? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Blog engine

2006-11-16 Thread elake
Check out http://www.23excuses.com/2006/Jul/07/23-excuses-release-and-introduction/ too. Eric Lake On Nov 16, 7:49 am, Picio <[EMAIL PROTECTED]> wrote: > You can also try to build It yourself following this, It's funny! ;) > > http://www2.lamptraining.com/screencast/1 > > Picio > > 2006/11/16, G

Re: Curious error with Free Comments

2006-11-16 Thread Sir Knight
No, I neve touched any of those I guess it has to do with the fact that I do not have article.id property. What did I do wrong in models this time around Ramdas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D

Re: Pagination with Custom Views

2006-11-16 Thread soundseeker
hello, I'm desperately searching for a solution as described here (paginator + costom sql): http://groups.google.com/group/django-users/browse_frm/thread/1aa04d3ab8fc9203/ab1384a82c9d5508#ab1384a82c9d5508 and here: http://groups.google.com/group/django-users/browse_frm/thread/d6690c92c5b7347e/7985

Re: Pagination with Custom Views

2006-11-16 Thread Ivan Sagalaev
[EMAIL PROTECTED] wrote: > Specifically: > > unsupported operand type(s) for -: 'str' an Oh... I've forgot to cast a string to an int :-). The line: int(request.GET.get('page', '1')) In fact you should also check for errors here because user can submit something with "page=blah" and it w

Re: Pagination with Custom Views

2006-11-16 Thread [EMAIL PROTECTED]
Sorry, I meant: unsupported operand type(s) for -: 'str' and 'int' [EMAIL PROTECTED] wrote: > Specifically: > > unsupported operand type(s) for -: 'str' an --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: Pagination with Custom Views

2006-11-16 Thread [EMAIL PROTECTED]
Ivan: Thanks so much for your quick reply. One more question - how would I define the page in the URL... ?page=x throws errors at me --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Pagination with Custom Views

2006-11-16 Thread [EMAIL PROTECTED]
Specifically: unsupported operand type(s) for -: 'str' an --~--~-~--~~~---~--~~ 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 fro

Re: have mltiple different models ForeignKey the same model and still conveniently get all the data from all other models?

2006-11-16 Thread Ivan Sagalaev
Karsten W. Rohrbach wrote: > > > This is a very neat idea. > Two questions arise for me as a Django newbie: > - How do I convince django.contrib.admin to edit "*thing" contents > inline? > - What's the preferred method to implement a tree view for the > resulting structure in admin (for example

Re: Pagination with Custom Views

2006-11-16 Thread Ivan Sagalaev
[EMAIL PROTECTED] wrote: > Hey, > > I was just wondering if someone could help me out. I want to paginate > some views, but they are not generic. This is one of the views I want > to paginate: > > def category_list(request): > categories = Category.objects.order_by('name') > > retur

Cursor Delete Not Committing

2006-11-16 Thread Steve Wedig
I feel like this is a simple question, yet I haven't been able to solve it at 5am :) I'm trying to delete through a cursor like this: from django.db import models, connection, transaction cursor = connection.cursor() cursor.execute( query ) But it appears to not be committing. I su

Re: have mltiple different models ForeignKey the same model and still conveniently get all the data from all other models?

2006-11-16 Thread Karsten W. Rohrbach
On Nov 12, 3:52 pm, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > Container > | > + Thing ImageThing > | > + Thing TextThing > > In code this will look like this: [...] > Then you can add a fancy methods to Thing that will return its typed > counterpart (s

Pagination with Custom Views

2006-11-16 Thread [EMAIL PROTECTED]
Hey, I was just wondering if someone could help me out. I want to paginate some views, but they are not generic. This is one of the views I want to paginate: def category_list(request): categories = Category.objects.order_by('name') return shortcuts.render_to_response("blog/cate

Re: Blog engine

2006-11-16 Thread Picio
You can also try to build It yourself following this, It's funny! ;) http://www2.lamptraining.com/screencast/1 Picio 2006/11/16, Guillermo Fernandez Castellanos <[EMAIL PROTECTED]>: > > There is a few examples if you look in the mailing list: > http://code.djangoproject.com/browser/djangoprojec

Re: Curious error with Free Comments

2006-11-16 Thread [EMAIL PROTECTED]
Have you altered the freecomment model? I had the same error (well.. something similar) when I changed it to accept person_url and person_email. If so, it is an error in your view which is causing this. On Nov 16, 12:06 pm, "Ramdas S" <[EMAIL PROTECTED]> wrote: > Hi, > > I have been trying to int

Re: [patch] Generating slug for words with accents

2006-11-16 Thread John Lenton
On 11/16/06, Aidas Bendoraitis <[EMAIL PROTECTED]> wrote: > German ß should be translated to ss > ä to ae > ö to oe > ü to ue but «ü» in Spanish should be just «u» (as in pingüino -> pinguino). -- John Lenton ([EMAIL PROTECTED]) -- Random fortune: The trouble with a lot of self-made men is that

Curious error with Free Comments

2006-11-16 Thread Ramdas S
Hi, I have been trying to integrate Free Comments following the popular article -- http://code.djangoproject.com/wiki/UsingFreeComment I am getting this error. VariableDoesNotExist at /articles/2006/nov/11/shahjahan/ Failed lookup for key [id] in This my code snippet from article_detail.html

Re: Blog engine

2006-11-16 Thread Guillermo Fernandez Castellanos
There is a few examples if you look in the mailing list: http://code.djangoproject.com/browser/djangoproject.com/django_website/apps/blog http://www.fallingbullets.com/blog/2006/nov/02/falling-bullets-source-code-you-ninnies/ http://www.rossp.org/blog/2006/may/15/django-magic-removal-upgrade/ http

Re: Automatically adding http:// to a URLField

2006-11-16 Thread [EMAIL PROTECTED]
Thanks - I guess I will have to add the extra validator. Any chance you would know how to write one for this (i.e. how to add the validator to the model, and then pass it back to the default validator once it's done?) canen wrote: > On Nov 15, 2:45 pm, "Julio Nobrega" <[EMAIL PROTECTED]> wrote: >

Re: [patch] Generating slug for words with accents

2006-11-16 Thread Aidas Bendoraitis
German ß should be translated to ss ä to ae ö to oe ü to ue Regards, Aidas Bendoraitis [aka Archatas] On 11/16/06, Nicolas Steinmetz <[EMAIL PROTECTED]> wrote: > > Maciej Bliziński a écrit : > > > I'm including a patch with "from" and "to" constants extended with all > > the characters I found

Re: Generating slug for words with accents

2006-11-16 Thread Karsten W. Rohrbach
Would this make sense to integrate on the server side (instead of JS), say next to django.utils.text.get_valid_filename()? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Re: [patch] Generating slug for words with accents

2006-11-16 Thread Nicolas Steinmetz
Maciej Bliziński a écrit : > I'm including a patch with "from" and "to" constants extended with all > the characters I found on Wikipedia that seemed to be of any use. This > should cover all the Slavic countries except those which use cyrylic > alphabet. Was this page commit to svn version of d