Re: Webservices using Django

2006-10-17 Thread Malcolm Tredinnick
On Wed, 2006-10-18 at 15:51 +1000, Devraj Mukherjee wrote: > SOAP is what I was after. If I used SOAPpy could I still import the > django model stuff in the SOAP service script? Yes, you can do this. The only thing you need to work out is how you are going to handle the Django-side configuration.

Re: Django and Media Temple Grid Server

2006-10-17 Thread [EMAIL PROTECTED]
Wilson Miner написав: > > They suggest contacting their sales staff to let them know if you'd be > interested in a Django grid server: > http://www.mediatemple.net/company/contact_us/ > > Now I wonder where I can find a large group of Django users to fill up > their inboxes... Contacted. And of

Re: Webservices using Django

2006-10-17 Thread Devraj Mukherjee
SOAP is what I was after. If I used SOAPpy could I still import the django model stuff in the SOAP service script? On 10/18/06, Mikhail Gusarov <[EMAIL PROTECTED]> wrote: > > > You ([EMAIL PROTECTED]) wrote: > > DM> Is there a chance that Django will support the provisions of > DM> Webservices

Re: Webservices using Django

2006-10-17 Thread Mikhail Gusarov
You ([EMAIL PROTECTED]) wrote: DM> Is there a chance that Django will support the provisions of DM> Webservices in the future. It would be nice to use the same data DM> models to provide WebServices for an application. REST interfaces and RPC ones (like SOAP) are nearly orthogonal, and you c

Re: Webservices using Django

2006-10-17 Thread Malcolm Tredinnick
On Wed, 2006-10-18 at 14:45 +1000, Devraj Mukherjee wrote: > Is there a chance that Django will support the provisions of > Webservices in the future. It would be nice to use the same data > models to provide WebServices for an application. > > Googled around but found nothing. Thanks Since "Web

Webservices using Django

2006-10-17 Thread Devraj Mukherjee
Is there a chance that Django will support the provisions of Webservices in the future. It would be nice to use the same data models to provide WebServices for an application. Googled around but found nothing. Thanks -- "I never look back darling, it distracts from the now", Edna Mode (The Incr

Re: Re: Dojo vs Mochikit for Django dev?

2006-10-17 Thread James Bennett
On 10/17/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > You know about Ruderman's shell, right? What's the interactive > interpreter do that the shell doesn't? The shell bookmarklet works in > the context of whatever page you were on when you opened it. Am I > missing something cool? Interactiv

Re: Dojo vs Mochikit for Django dev?

2006-10-17 Thread Jeremy Dunck
On 10/17/06, sago <[EMAIL PROTECTED]> wrote: > IMHO MochiKit's interactive interpreter is an absolute > godsend to serious javascript development, and I find I can't do > without some of MochiKit for anything other than trivial javascript > coding. You know about Ruderman's shell, right? What's

Re: psycopg trouble

2006-10-17 Thread Malcolm Tredinnick
On Tue, 2006-10-17 at 09:31 -0700, juampa wrote: > It returns /usr/local/pgsql/lib , just as in the configure command. > > I also included /usr/local/pgsql/bin in the PATH variable in case > configure was using any postgres related commands, but no luck. > > Thanks for the help Jeremy. I'm no M

Re: Dojo vs Mochikit for Django dev?

2006-10-17 Thread Cheng Zhang
On Oct 18, 2006, at 2:53 AM, iain duncan wrote: > I have not dug into either Dojo or Mochikit yet and am wondering if > one > is more suited to Django dev than the other for adding AJAX type bells > and whistles. Pros and Cons of either? Recently we ran into JQuery [1], a very exciting Javasc

Re: search engine

2006-10-17 Thread mamcxyz
For www.paradondevamos.com (in construction!) I integrate PyLucene... I test in local machine for 3000+ pages and is good enough for me. None of the integrated full-text on any Sql server in town can match the performance and in the case of Lucene, flexibility of a dedicate tool for the task. The

Re: RSS syndication and URLs

2006-10-17 Thread Malcolm Tredinnick
On Tue, 2006-10-17 at 17:45 -0700, JHeasly wrote: > Just to verify, to get something like the "complex example" of the docs > (http://www.djangoproject.com/documentation/syndication/) to work -- > where feeds publish different data for different URL parameters -- is > there anything special you ne

Re: RSS syndication and URLs

2006-10-17 Thread RajeshD
> with a URL like: > > http://www.foo.com/rss/the_slug/11344/bar/ > > and this from the URLConf: > > feeds = { > 'rss': CustomRSS, > > }supposed to work? To be consistent with your example URL above, that dictionary definition should read: feeds = { 'the_slug': CustomRSS, } > > It's my

Re: Can I embed php code in my Django templates?

2006-10-17 Thread Malcolm Tredinnick
On Tue, 2006-10-17 at 12:29 +0100, Rachel Willmer wrote: > I've got a website which is written in Django (love it!) but I'd like > to be able to use that look-and-feel to cover the blog part of the > website which is hosted in WordPress. > > Is it possible to include PHP code in the Django templa

Re: Dojo vs Mochikit for Django dev?

2006-10-17 Thread sago
I've used both MochiKit and Scriptaculous in Django production projects. I've only used Dojo in test projects. I've never used YUI. MochiKit is (pretty uniquely) focussed on providing programming features, rather than wiz-bang Web2.0 functionality. It does things like add easy handling of deferr

Custom administration interfaces

2006-10-17 Thread Devraj Mukherjee
Hi Everyone, I wish to produce custom administration interfaces. For example, a list of all items that have been marked as containing inappropriate content by the public interface. I want administrators to be able to produce a list of these items and untick a box to re-enable the visibility of th

Re: New Django Screencast

2006-10-17 Thread rockmh
MerMer wrote: > Great screencast. As a newbie - very helpful and I'm looking forward > to seeing more content on the site when it launches. I am far from a newbie, but I picked up a couple of useful tidbits. Very nice! --~--~-~--~~~---~--~~ You received this me

RSS syndication and URLs

2006-10-17 Thread JHeasly
Just to verify, to get something like the "complex example" of the docs (http://www.djangoproject.com/documentation/syndication/) to work -- where feeds publish different data for different URL parameters -- is there anything special you need to do to the URLConf regex? Is (r'^rss/(?P.*)/$', 'dja

Re: advice needed - how to manage 100+ django sites in a scaleable, manageable setup

2006-10-17 Thread James Bennett
On 10/17/06, tonemcd <[EMAIL PROTECTED]> wrote: > What I'd really like to know is how we could replicate this level of > functionality with a django setup. I highly, highly, highly recommend taking a look at Perlbal[1] for load balancing. Don't let the fact that it's written in Perl turn you off;

Re: Many-to-One Trouble with Edit_Inline Django 0.91

2006-10-17 Thread Russell Keith-Magee
On 10/17/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > At the add stage, my num_in_admin =12 ( from Photo class) show up in > admin, but when I " save and continue editing" I am left with only one > blank inline photo object. Can't see what the problem is. Here is the > code. Any help an

Re: Dojo vs Mochikit for Django dev?

2006-10-17 Thread James Bennett
On 10/17/06, iain duncan <[EMAIL PROTECTED]> wrote: > I have not dug into either Dojo or Mochikit yet and am wondering if one > is more suited to Django dev than the other for adding AJAX type bells > and whistles. Pros and Cons of either? I don't know a whole lot about MochiKit, but I've liked w

Re: Dojo vs Mochikit for Django dev?

2006-10-17 Thread Panos Laganakos
You might wanna give a look at http://script.aculo.us/ I've used it outside of Django and was pretty satisfied. On Oct 18, 3:18 am, João Cruz Morais <[EMAIL PROTECTED]> wrote: > I suggest using prototype or the smaller/limited version, mooflex. > > João > > Wilson Miner wrote: > > Dojo is design

Re: Dojo vs Mochikit for Django dev?

2006-10-17 Thread João Cruz Morais
I suggest using prototype or the smaller/limited version, mooflex. João Wilson Miner wrote: > Dojo is designed to be flexible, but can be too heavyweight for small > tasks. Mochikit is designed to be super-lightweight but has a much > more limited scope as far as what it's capable of. > > On 10

Re: Dojo vs Mochikit for Django dev?

2006-10-17 Thread Wilson Miner
Dojo is designed to be flexible, but can be too heavyweight for small tasks. Mochikit is designed to be super-lightweight but has a much more limited scope as far as what it's capable of. On 10/17/06, iain duncan <[EMAIL PROTECTED]> wrote: > > I have not dug into either Dojo or Mochikit yet and a

Re: Django and Media Temple Grid Server

2006-10-17 Thread Wilson Miner
Sounds like they're leaning toward adding a Django option in the future, but I think we can help speed them along by letting them know there's plenty of demand out there. They suggest contacting their sales staff to let them know if you'd be interested in a Django grid server: http://www.mediatem

Re: New Django Screencast

2006-10-17 Thread MerMer
Ian, Great screencast. As a newbie - very helpful and I'm looking forward to seeing more content on the site when it launches. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: advice needed - how to manage 100+ django sites in a scaleable, manageable setup

2006-10-17 Thread Ian Holsman
Hi Tone. I have about 10 sites running the same/similar codebases on 3 different machines. send me some more info offline (or skype me on iholsman) and we can chat about it. regards Ian. On 18/10/2006, at 9:07 AM, tonemcd wrote: > > Hi all, > We're about to put our first django site onlin

advice needed - how to manage 100+ django sites in a scaleable, manageable setup

2006-10-17 Thread tonemcd
Hi all, We're about to put our first django site online on Monday, which is a major departure for us. We currently host 100+ Zope instances, almost all of which are load balanced over more than one physical server using pound. Our databases are MySQL and increasingly, PostgreSQL, and these are als

New Django Screencast

2006-10-17 Thread sago
At http://www.lamptraining.com/screencast/1/ Have fun Ian. --~--~-~--~~~---~--~~ 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 f

Re: Database API

2006-10-17 Thread RajeshD
> > p.id = ??? (max_id in table + 1 or NOT SET > but how can i do > this) > p.save() Try: p.id = None p.save() Django will select the next id in the sequence for your new product. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

extending the auth model to display more fields in admin

2006-10-17 Thread orestis
Hello, I have a simple need: I'd like to view/sort in the admin the signup date of my users. How can I add a field in the User Admin list_display ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" gro

Django and Media Temple Grid Server

2006-10-17 Thread [EMAIL PROTECTED]
I have been in contact with Media Temple over the last week discussing Django and their new Grid Server system. The good news is "After doing some research Django will not run properly with our (gs) Grid-Server. We will be creating a container to handle Django in the near future." Here is some m

Re: Can I catch missing file when using include built-in template tag?

2006-10-17 Thread RajeshD
> > My default action if I can't find a better way, is to write a view > just so I can do this check, but I'd rather not if there's an > alternative I can use within the generic view. Another alternative is to write a custom include tag to replace the built in one. Django's built in include tag

Re: Dojo vs Mochikit for Django dev?

2006-10-17 Thread Noah
I can't say for sure but I imagine the answer you're going to get from most people is to use whichever one you like. Since they aren't going to communicate with Django over a special API but rather through the same methods they would if you were using any other setup for development you're pretty

Dojo vs Mochikit for Django dev?

2006-10-17 Thread iain duncan
I have not dug into either Dojo or Mochikit yet and am wondering if one is more suited to Django dev than the other for adding AJAX type bells and whistles. Pros and Cons of either? Thanks Iain --~--~-~--~~~---~--~~ You received this message because you are subsc

Re: search engine

2006-10-17 Thread canen
http://www.mercurytide.com/knowledge/white-papers/django-full-text-search is a good article on adding full-text search to django using mysql. A search api branch of django can also be found here http://code.djangoproject.com/browser/django/branches/search-api. I hope that helps. On Oct 17, 9:58

Re: Security of Django Templates?

2006-10-17 Thread Sam Sutch
James - thank you for your reply! On 10/17/06, James Bennett <[EMAIL PROTECTED]> wrote: > Templates have the following access: > > * Any variables defined in the context passed from the view will be available. > * If the view used RequestContext instead of the base Context class, > any variables

Re: Can I catch missing file when using include built-in template tag?

2006-10-17 Thread Rachel Willmer
Thanks for your suggestion. I do use that in other parts of the website, but in this one, I'm using a generic view - so what I need (I think) is a mechanism to check the existence of the included page within the template. My default action if I can't find a better way, is to write a view just so

Re: ForeignKey in other models.py

2006-10-17 Thread Michael Radziej
Vittorino Parenti schrieb: > Hi, > i found this in django documentation: > > "Note, however, that you can only use strings to refer to models in the > same models.py file -- you cannot use a string to reference a model in a > different application, or to reference a model that has been imported

Re: Can I embed php code in my Django templates?

2006-10-17 Thread James Bennett
On 10/17/06, Rachel Willmer <[EMAIL PROTECTED]> wrote: > Is it possible to include PHP code in the Django templates? Well. It's probably possible, just not pretty. One thing you might do is write a custom template loader which calls out to /usr/bin/php and runs PHP over the contents before retur

Re: Security of Django Templates?

2006-10-17 Thread James Bennett
On 10/17/06, samuraisam <[EMAIL PROTECTED]> wrote: > I'm currently implementing a system which will allow users to make > custom templates based on the Django templating engine. Before I deploy > or even develop any further, though, I guess I should find out--how > secure are Django templates are.

Re: email_user with text/html type

2006-10-17 Thread Rafael SDM Sierra
Hi all, thanks for the help, I do like you Guillermo, and I create another function to send the email. ThanksOn 10/13/06, Guillermo Fernandez Castellanos <[EMAIL PROTECTED] > wrote:Hi,This might help you get going (see at the end). I modified a bit the function that sends the mail in Django. It is

Re: psycopg trouble

2006-10-17 Thread juampa
It returns /usr/local/pgsql/lib , just as in the configure command. I also included /usr/local/pgsql/bin in the PATH variable in case configure was using any postgres related commands, but no luck. Thanks for the help Jeremy. Juampa Jeremy Dunck wrote: > On 10/16/06, juampa <[EMAIL PROTECTED

Re: Can I embed php code in my Django templates?

2006-10-17 Thread [EMAIL PROTECTED]
http://www2.jeffcroft.com/2006/jul/14/django-admin-your-php-app/ --~--~-~--~~~---~--~~ 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 unsubscrib

Security of Django Templates?

2006-10-17 Thread samuraisam
I'm currently implementing a system which will allow users to make custom templates based on the Django templating engine. Before I deploy or even develop any further, though, I guess I should find out--how secure are Django templates are. Do they allow any access to the system? Is there something

Re: Pro Django Book preview

2006-10-17 Thread Peter Bailey
It would be cool if Apress could use some type of process with that book like Dave Thomas did with Agile Web Development With Rails (and some of their other titles). The Pragmatic Programmers released early beta versions of the book in pdf format, automated input from their readers to deal with er

ForeignKey in other models.py

2006-10-17 Thread Vittorino Parenti
Hi, i found this in django documentation: "Note, however, that you can only use strings to refer to models in the same models.py file -- you cannot use a string to reference a model in a different application, or to reference a model that has been imported from elsewhere." i have different mo

Re: search engine

2006-10-17 Thread Eric Walstad
Hi Enquest, Enquest wrote: > How hard is it to set up a search engine with Django? Easy! Just search the model documentation for 'search_fields'. That is, the admin interface has this feature built in, you just need to tell it which fields you want searched. > In PHP I used to explode, implo

Re: Field to use for a Duration?

2006-10-17 Thread [EMAIL PROTECTED]
Rejesh, you're my saviour! Thanks so much, exactly what I was looking for. 5 stars! --~--~-~--~~~---~--~~ 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@googlegroup

Re: Can I catch missing file when using include built-in template tag?

2006-10-17 Thread RajeshD
> All works just fine, but I'd like to be able to catch the > non-existence of a page so I can put up a 404 page rather than just > displaying blank content, as currently happens. Assuming that you have a view that passes the params.pagename variable to your template, you could make that view rai

Re: Need an advice: simple Online Store project (long)

2006-10-17 Thread Chris Moffitt
I see that you've already found Satchmo. I can comment on some of the features you're looking for. Feel free to subscribe to the google group for more discussion. > > * Item. Representation of actual goods. Belong to one of the > Categories. Category defines attributes, which may have values.

search engine

2006-10-17 Thread Enquest
How hard is it to set up a search engine with Django? In PHP I used to explode, implode all words of an insert, update. Each word I would put in to a table words and an other tabel that referred to the words and id of where it came. You know the drill. In my own little failed framework in php I

Re: Postgresql duplicate keys and django problem

2006-10-17 Thread James Bennett
On 10/17/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Few days ago I've started to get such errors in the Admin Panel when I > want to add something: I'm curious about why you reset the sequence, rather than using setval() to push it up to a working value, but this just sounds like a sequen

Re: Postgresql duplicate keys and django problem

2006-10-17 Thread Michael Radziej
[EMAIL PROTECTED] schrieb: > Few days ago I've started to get such errors in the Admin Panel when I > want to add something: > ## > IntegrityError: ERROR: duplicate key violates unique constraint > "rk_news3_pkey" > > INSERT INTO "rk_news3" > ("news_title","news_t

Re: DateTime field validation

2006-10-17 Thread Alex Dedul
Thanks Malcolm for this detailed answer Regards, Alex --~--~-~--~~~---~--~~ 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 thi

Database API

2006-10-17 Thread Daniel Austria
Hi, to those who are experienced in django: i just want to avoid making mistakes at the database level. intro: I have an existing produkt p (class produkt) in the database. It has a few other keys to the table attribute. So attribute (class attribute) has a ForeignKey to produkt. todo: Take the

Can I embed php code in my Django templates?

2006-10-17 Thread Rachel Willmer
I've got a website which is written in Django (love it!) but I'd like to be able to use that look-and-feel to cover the blog part of the website which is hosted in WordPress. Is it possible to include PHP code in the Django templates? Or is there another way (which doesn't involved migrating the

Postgresql duplicate keys and django problem

2006-10-17 Thread [EMAIL PROTECTED]
Few days ago I've started to get such errors in the Admin Panel when I want to add something: ## IntegrityError: ERROR: duplicate key violates unique constraint "rk_news3_pkey" INSERT INTO "rk_news3" ("news_title","news_text","news_more","news_date","news_keywords

Many-to-One Trouble with Edit_Inline Django 0.91

2006-10-17 Thread [EMAIL PROTECTED]
At the add stage, my num_in_admin =12 ( from Photo class) show up in admin, but when I " save and continue editing" I am left with only one blank inline photo object. Can't see what the problem is. Here is the code. Any help and I would be grateful. from django.core import meta #done status

Can I catch missing file when using include built-in template tag?

2006-10-17 Thread Rachel Willmer
I'm using a set of templates which provide a standard layout to my website, where the actual content for any particular page is given using {% include params.pagename %}. All works just fine, but I'd like to be able to catch the non-existence of a page so I can put up a 404 page rather than just