Re: IP based permissions

2006-09-11 Thread Håkan Johansson
On Sep 7, 2006, at 16:58, James Bennett wrote: > > On 9/7/06, Håkan Johansson <[EMAIL PROTECTED]> wrote: >> How do I do this the "right" way in Django? > > For some basic ideas you might want to look at the 'INTERNAL_IPS' > setting; the biggest use Django makes of it is in enabling or > disablin

error with inspectdb using oracle (v0.95)

2006-09-11 Thread world_domination_kites
A lazy django newby, first time poster, newly subscribed, wanted a quick and squeaky-clean admin interface for a legacy Oracle database. He installed Django 0.95 and PostgreSQL on his windows XP workstation, did the tutorial, had a bit of a tinker and fell in love. He installed cx_Oracle, rewrote

Re: Database events?

2006-09-11 Thread cyberco
I've been looking around and the dispatcher/signals combo seems like a possible solution. I could raise the signals using cronjobs or so. Unfortunately I can't find any decent documentation on dispatcher/signals. Does anybody here have a pointer? --~--~-~--~~~---~--~-

Re: Re: serving static images

2006-09-11 Thread Allan Henderson
Thanks Jay but that doesn't appear to make any difference. I wonder is it how i have settings.py set up but nothing jumps out at me when trying to find where I've gone wrong. Don't know if its important but I'm on a mac and I'm trying to accomplish this through the built-in dev server. Not much

Re: Overriding .save and Image upload

2006-09-11 Thread libraM
Hello, hope this will help: http://groups.google.com/group/django-users/browse_frm/thread/ad819fa9daa9e51/e514ba4c416e1b0a?lnk=gst&q=Sandro&rnum=2#e514ba4c416e1b0a Good luck, Alex. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: How about a Django apps public repository?

2006-09-11 Thread Sean Schertell
Wow -- you're fast ;-) Could you let us in on how it's gonna work, what your plans are? Sean On Sep 11, 2006, at 12:19 PM, Ian Holsman wrote: > > I've nearly got something together now. > I just need to add some basic templates for it. > > Give me a day or two to get it up ;-) > > regards > I

Re: Backwards relation (ie XXX_set) across apps

2006-09-11 Thread Russell Keith-Magee
On 9/10/06, Jay Parlar <[EMAIL PROTECTED]> wrote: > I've created a patch (http://code.djangoproject.com/ticket/2684) that > mentions all of this. The ticket now has a patch to solve the problem. This was a nasty little edge case; details attached to the patch. Ordinarily, I would just commit the

Re: How about a Django apps public repository?

2006-09-11 Thread Marc Fargas
Oh, I was going for .ORG! Luckylly I read the list before going for it ;) If you, or another volunteer can setup a system (debian etch preferred) I can go on configuring the mailling lists, the TRAC hosting, SVN repositories and so on (and some scripts to manage them). It would be better to use a

Re: How about a Django apps public repository?

2006-09-11 Thread Russell Keith-Magee
On 9/11/06, Sean Schertell <[EMAIL PROTECTED]> wrote: > > Wow -- you're fast ;-) > Well, this is the web framework for perfectionists with deadlines ;-) Russ %-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djan

Re: How about a Django apps public repository?

2006-09-11 Thread charles sibbald
I think Djangoforge should have the ability to host projects as follows:1. Full projects2. Useful Classes3. Useful Functions - similar to a mini hotscripts, sometimes someone has written a great project/application but no one has the time to trall through to look for particular featureful classes/f

Re: How about a Django apps public repository?

2006-09-11 Thread Marc Fargas
Full applications, patches and snippets? (like templatetags,filters, middlewares...) Forums sucks, any decent mail client can show a list ordered by threads, and any mail manager can create archives for a list easy searchable by Google. Any decent python script can send mails to mailling lists on

Re: How about a Django apps public repository?

2006-09-11 Thread Ian Holsman
On 11/09/2006, at 10:53 PM, charles sibbald wrote: > I think Djangoforge should have the ability to host projects as > follows: > > 1. Full projects > 2. Useful Classes > 3. Useful Functions - > > similar to a mini hotscripts, sometimes someone has written a great > project/application but n

Re: How about a Django apps public repository?

2006-09-11 Thread charles sibbald
Ok agreed, full applications, reusable snippets, templatetages etc.regarding forums/mailing lists, if we can have a forum/mailing list interface then thats great.- Original Message From: Marc Fargas <[EMAIL PROTECTED]>To: django-users@googlegroups.comSent: Monday, September 11, 2006 2:20:55

Re: How about a Django apps public repository?

2006-09-11 Thread Marc Fargas
I agree on those, maybe the greatest thing to get on would be to provide that svn+trac that some people was interested in, and to put the snippets inside. And setup something like a "django portal" with not only information about what is inside the repositories but also projects, applications and

Running .91 and .95 at the same time (with Windows)

2006-09-11 Thread [EMAIL PROTECTED]
I have been working with version .95, and now I also need to be able to use .91 on my Windows dev box to support an older app. Not sure how to accomplish this with Apache/modpy or even with the built-in dev server. Any guidance on how to accomplish this would be greatly appreciated! Not sure if

Re: Concurrency and data modification

2006-09-11 Thread Hawkeye
How does the cache framework with respect to transactions? If I update a field at the database level, and it locks it... wouldn't it still be possible to grab a stale copy from the cache? Thanks, --Ben --~--~-~--~~~---~--~~ You received this message because you

Re: Re: serving static images

2006-09-11 Thread Jay Parlar
On 9/12/06, Allan Henderson <[EMAIL PROTECTED]> wrote: > > Thanks Jay but that doesn't appear to make any difference. I wonder > is it how i have settings.py set up but nothing jumps out at me when > trying to find where I've gone wrong. Don't know if its important but > I'm on a mac and I'm try

Re: Concurrency and data modification

2006-09-11 Thread Hawkeye
How does raw SQL interact with the 'save' function? Say I need to: increment 'count' set another variable on the same object Do I need to write custom SQL to update the second variable? Can I just use .save() and have it work as I want it to (or will count be changed to the old value)? How can

Re: Backwards relation (ie XXX_set) across apps

2006-09-11 Thread Jay Parlar
On 9/12/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > On 9/10/06, Jay Parlar <[EMAIL PROTECTED]> wrote: > > I've created a patch (http://code.djangoproject.com/ticket/2684) that > > mentions all of this. > > The ticket now has a patch to solve the problem. This was a nasty > little edge c

Re: serving static images

2006-09-11 Thread Allan Henderson
Removed the path bit, navigating to http://localhostL:8000/static gets me: ViewDoesNotExist at /static/ Could not import janeraven.products.views.django.views.static. Error was: No module named django.views.static Allan On 11 Sep 2006, at 14:57, Jay Parlar wrote: > > On 9/12/06, Allan Hend

Admin Tags

2006-09-11 Thread [EMAIL PROTECTED]
I can´t figure out how to use admin tags on my non admin templates. I load the tags correctly with {% load admin_list %} or {% load admin_modify %} but all the tags require a cl object. How can I use the date_hierarchy tag? --~--~-~--~~~---~--~~ You received this

forms -> is_required

2006-09-11 Thread [EMAIL PROTECTED]
Hi all, I have a custom manipulator like this : ... forms.TextField(field_name="username",length=30,maxlength=30,is_required=True,validator_list=[validators.isAlphaNumeric]) ... does anyone know how I can define a specific error message for "is_required" function, without changing the code in f

Re: forms -> is_required

2006-09-11 Thread patrickk
def isRequired(self, field_data, all_data): if not field_data: raise validators.ValidationError("please fill in data.") isRequired.always_test = True Am 11.09.2006 um 16:44 schrieb [EMAIL PROTECTED]: > > Hi all, > > I have a custom manipulator like this : > > ... > form

Re: Re: forms -> is_required

2006-09-11 Thread James Bennett
On 9/11/06, patrickk <[EMAIL PROTECTED]> wrote: > def isRequired(self, field_data, all_data): He doesn't seem to be asking about writing a new validator; instead he wants to replace the message provided by the built-in one (and, of course, the built-in one will always respond on a non-blank field

Syndication Question

2006-09-11 Thread keukaman
I hope to get a bit of clarification on syndication. Does it need its own app by running 'django-admin.py startapp feeds' or something similar? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. T

Gone live

2006-09-11 Thread [EMAIL PROTECTED]
I hope this isn't inappropriate for the list, but I just wanted to say my first Django site, gretschpages.com, has gone live. This was a major project for me, dragging 10 years of static pages into a usable database-driven app, and I couldn't have done it without the help of the folks on this boar

Re: serving static images

2006-09-11 Thread Jay Parlar
On 9/11/06, Allan Henderson <[EMAIL PROTECTED]> wrote: > > Removed the path bit, navigating to http://localhostL:8000/static > gets me: > > ViewDoesNotExist at /static/ > Could not import janeraven.products.views.django.views.static. Error > was: No module named django.views.static Ahh, I think I

Many-to-many and Forms

2006-09-11 Thread Gnissem
I have the following (simplified) model: class Mineral(models.Model): name=models.CharField(maxlength=60,unique=False,db_index=True) formula=models.CharField(maxlength=100,blank=True) class Specimen(models.Model): name = models.CharField(maxlength=50) minerals = models.ManyToManyFiel

Trackback spam in Blogs

2006-09-11 Thread [EMAIL PROTECTED]
Hi. My two sites, trogger.de and trogger.info , were recently subjected to a large trackback-spam attack. We're talking in the area of ten thousand trackbacks within two or three days. Plus a couple hundred spam somments in the same period. For the time being, I've disabled trackbacks and anonymo

Initial SQL data using Django ORM - A HowTo

2006-09-11 Thread [EMAIL PROTECTED]
I've added a small tutorial: http://code.djangoproject.com/wiki/InitialSQLDataDiangoORMWay It describes how to use Django ORM to add initial SQL data to freshly installed apps without files with RAW SQL --~--~-~--~~~---~--~~ You received this message because you

Django and transactions

2006-09-11 Thread Andreas Eigenmann
Hi all, Im writing a financial web application with Django and postgresql. This application needs a lot of database transactions. The Django Transactions Documentation is a little bit unclear for me, so i have a some questions. 1. Using the transaction middleware, when is BEGIN TRANSACTION calle

switching to mod_python

2006-09-11 Thread Filipe
I'm testing my django app on mod_python, using the development server it works fine, but under mod_python the following exception appears: ViewDoesNotExist at /myapp/ Could not import myapp.views. Error was: No module named myapp.views I'm accessing the builtin server with the URL: http://local

Re: Handling data from multiple checkboxes for a single field

2006-09-11 Thread l3e3e7
[EMAIL PROTECTED] wrote: > I have been struggling with this same problem and found little help > with using prepare(). I will share my solution although I am still > hoping that a more efficient method exists. I am using version 0.95 > > In my custom manipulator.save() -

Re: Initial SQL data using Django ORM - A HowTo

2006-09-11 Thread James Bennett
On 9/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > It describes how to use Django ORM to add initial SQL data to freshly > installed apps without files with RAW SQL There's actually a much better way to do this, which won't require any additional scripts to be run manually: 1. Create a fi

Re: Trackback spam in Blogs

2006-09-11 Thread Steven Armstrong
On 09/09/06 09:45, [EMAIL PROTECTED] wrote: > Hi. > > My two sites, trogger.de and trogger.info , were recently subjected to > a large trackback-spam attack. We're talking in the area of ten > thousand trackbacks within two or three days. Plus a couple hundred > spam somments in the same period.

Re: Re: serving static images

2006-09-11 Thread Allan Henderson
i'll give you the settings file too- here you go! bear in mind i've been changing things within so likely has changed from last time. Thanks for all this. URLS.PY from django.conf.urls.defaults import * from django.conf import settings STATIC_LOC="/django/django_projects/ja

Re: Trackback spam in Blogs

2006-09-11 Thread James Bennett
On 9/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Has someone already built an interface to Akismet or a similar service? I don't do trackback, but I use Akismet filtering for comments on my blog and I've been insanely happy with it (around 60% of comments I get are spam, and Akismet stop

Re: Gone live

2006-09-11 Thread charles sibbald
This is great stuff.If you can, please include a very small link to the Django siteany publicity is good publicity.- Original Message From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>To: Django users Sent: Monday, September 11, 2006 5:32:57 PMSubject: Gone liveI hope this isn't inappropriat

Re: error with inspectdb using oracle (v0.95)

2006-09-11 Thread DavidA
world_domination_kites wrote: > --- > But then, alas: > --- > Traceback (most recent call last): > File > "c:\Python23\Lib\site-packages\Django-

Re: Concurrency and data modification

2006-09-11 Thread Michael Radziej
Hawkeye wrote: > How does raw SQL interact with the 'save' function? > > Say I need to: > increment 'count' > set another variable on the same object > > Do I need to write custom SQL to update the second variable? > Can I just use .save() and have it work as I want it to (or will count > be cha

Re: Syndication Question

2006-09-11 Thread James Bennett
On 9/9/06, keukaman <[EMAIL PROTECTED]> wrote: > I hope to get a bit of clarification on syndication. Does it need its > own app by running 'django-admin.py startapp feeds' or something > similar? No. You do need to have 'django.contrib.syndication' in your INSTALLED_APPS setting, but provided th

Uploading.

2006-09-11 Thread Gabriel Puliatti
I've uploaded a tutorial on uploading files into Django. I had some problems doing this when I started working on Django, and thought that perhaps people would appreciate it. I know that the files are not indented, blame Wordpress. It would be good to get some feedback, as I adapted it from my prog

Re: Re: serving static images

2006-09-11 Thread Jay Parlar
On 9/11/06, Allan Henderson <[EMAIL PROTECTED]> wrote: > > i'll give you the settings file too- here you go! bear in mind i've > been changing things within so likely has changed from last time. > Thanks for all this. > > > URLS.PY > from django.conf.urls.defaults import * >

Re: Gone live

2006-09-11 Thread Adrian Holovaty
On 9/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I hope this isn't inappropriate for the list, but I just wanted to say > my first Django site, gretschpages.com, has gone live. This was a major > project for me, dragging 10 years of static pages into a usable > database-driven app, and I

Re: serving static images

2006-09-11 Thread Allan Henderson
That's so obvious now that you point that out, I don't know how I could have missed that. Really thanks a million Jay! it all works perfectly now. Allan On 11 Sep 2006, at 18:14, Jay Parlar wrote: > > On 9/11/06, Allan Henderson <[EMAIL PROTECTED]> wrote: >> >> i'll give you the settings fi

Re: switching to mod_python

2006-09-11 Thread Filipe
solved it! there was an error in urls.py I have an second urls.py inside the app dir and had to fix this: 'myapp.views.start' to this: 'myproject.myapp.views.start' seems like relative "paths" are relative to the project's base dir, instead of the scripts dir. Still don't understand why it wor

Re: switching to mod_python

2006-09-11 Thread Filipe
solved it! there was an error in urls.py I have an second urls.py inside the app dir and had to fix this: 'myapp.views.start' to this: 'myproject.myapp.views.start' seems like relative "paths" are relative to the project's base dir, instead of the scripts dir. Still don't understand why it wor

Re: serving static images

2006-09-11 Thread Jay Parlar
On 9/11/06, Allan Henderson <[EMAIL PROTECTED]> wrote: > > That's so obvious now that you point that out, I don't know how I > could have missed that. Really thanks a million Jay! it all works > perfectly now. > Glad it worked for you. One last thing you might want to consider is adding this to

Re: error with inspectdb using oracle (v0.95)

2006-09-11 Thread Jeremy Dunck
On 9/11/06, DavidA <[EMAIL PROTECTED]> wrote: > ... > You could try implementing those three functions, using one of the > other backends as a starting point, but you'll need to be fairly > familiar with Oracle to get through it, me thinks. This will help: http://www.ss64.com/orad_v8/index.html

Re: Concurrency and data modification

2006-09-11 Thread Joseph Heck
We're just using "right down to SQL" invocations to atomically increment numbers. In our case, we're counting the cumulative creations of an object with certain values - so on the save, we're doing the following:    cursor = connection.cursor()   cursor.execute("UPDATE application_modelname set cum

Re: switching to mod_python

2006-09-11 Thread Waylan Limberg
On 9/11/06, Filipe <[EMAIL PROTECTED]> wrote: > > solved it! there was an error in urls.py > I have an second urls.py inside the app dir and had to fix this: > > 'myapp.views.start' > > to this: > > 'myproject.myapp.views.start' > > seems like relative "paths" are relative to the project's base di

Re: Gone live

2006-09-11 Thread [EMAIL PROTECTED]
Thanks! I do have small link down in the footer. And Adrian, I should tell ya, two things that sold me on Django... I come from a journalism background, so that was huge, and the name: http://gretschpages.com/about/2006/jul/31/django/ --~--~-~--~~~---~--~~ You re

magic removal mean?

2006-09-11 Thread Picio
sorry guys for the boring question, what is the meaning , exactly, of the "magic removal"? Thanks. Picio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dja

Re: How about a Django apps public repository?

2006-09-11 Thread Joeboy
Ok, here's an attempt to elicit some kind of response, having failed last time I asked this question: http://groups.google.com/group/django-developers/browse_frm/thread/5b5b9070f8ca36d7 If I submit a reusable app, should its views pass a RequestContext to the templates or not? If they don't, the

Documentation on dispatcher/signals?

2006-09-11 Thread cyberco
I can't find any documentation on dispatcher/signals. Is there any documentation or should I just 'fork the code'? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send em

Re: magic removal mean?

2006-09-11 Thread Justin
This should answer your question: http://code.djangoproject.com/wiki/RemovingTheMagic In short, a while back the Django developers made some big changes to remove "magic" behavior, where stuff got done behind the scenes. And to clean things up and make it more understandable. For a while there we

Re: magic removal mean?

2006-09-11 Thread Don Arbow
In Django 0.91 and before, there was certain code that was "magic", essentially, code that did things in a non-Pythonic, non-intuitive or hidden way. So the code was cleaned up and operations were made much more explicit. Code after 0.91 is known as the magic-removal branch, which was then

Re: magic removal mean?

2006-09-11 Thread James Bennett
On 9/11/06, Picio <[EMAIL PROTECTED]> wrote: > sorry guys for the boring question, what is the meaning , exactly, of the > "magic removal"? The older versions of Django did some things which happened behind the scenes and weren't necessarily intuitive to an experienced Python programmer; the bigg

Re: Documentation on dispatcher/signals?

2006-09-11 Thread Don Arbow
Here are a couple of articles that describe how signals work: http://feh.holsman.net/articles/2006/06/13/django-signals http://www.b-list.org/weblog/2006/06/13/how-django-processes-request Don --~--~-~--~~~---~--~~ You received this message because you are subs

Re: magic removal mean?

2006-09-11 Thread Jay Klehr
Check out the djangoproject site for more info: http://code.djangoproject.com/wiki/RemovingTheMagic Jay Picio wrote: > sorry guys for the boring question, what is the meaning , exactly, of the > "magic removal"? > > Thanks. > Picio > > > > > --~--~-~--~~~---~--~

Re: Documentation on dispatcher/signals?

2006-09-11 Thread James Bennett
On 9/11/06, cyberco <[EMAIL PROTECTED]> wrote: > I can't find any documentation on dispatcher/signals. Is there any > documentation or should I just 'fork the code'? There isn't any official documentation for it within Django, but it's just PyDispatcher, which does have its own documentation: ht

Re: Documentation on dispatcher/signals?

2006-09-11 Thread Tyson Tate
Don't forget to search the list archives! -Tyson On Sep 11, 2006, at 12:33 PM, cyberco wrote: > I can't find any documentation on dispatcher/signa

submit your complete resume freshers jobs :: MNC companies searching for resumes everyday

2006-09-11 Thread moneytask
Hello, YOUR IMMEDIATE ACTION REQUIRED If you have not already submitted complete resume with us please do so immediately by clicking on the link below. Post Your Resume http://www.careertel.com - Be visible to MNC companies searching for resumes everyday. Thousands of jobseekers like you have g

Re: Initial SQL data using Django ORM - A HowTo

2006-09-11 Thread aaloy
2006/9/11, James Bennett <[EMAIL PROTECTED]>: > > On 9/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > It describes how to use Django ORM to add initial SQL data to freshly > > installed apps without files with RAW SQL > > There's actually a much better way to do this, which won't require a

Re: Re: Initial SQL data using Django ORM - A HowTo

2006-09-11 Thread James Bennett
On 9/11/06, aaloy <[EMAIL PROTECTED]> wrote: > just works if you have just one application in your project. If you > have two for example the function is going to be called twice. Hence my comment in my first reply about narrowing the listening to when the signal is sent by that specific app :)

[no subject]

2006-09-11 Thread database . 36852739
Hi, I have a table, as follows: class Thing(models.Model): name = models.CharField(maxlength=100) color = models.CharField(maxlength=100) weight = models.IntegerField() [...] I want to have an HTML table as follows: +--+++ | Thing 1

Re: Django under IIS with ISAPI

2006-09-11 Thread [EMAIL PROTECTED]
Yes, we run Django under IIS. However we use the jk connector from the Apache Tomcat project on the IIS side (http://tomcat.apache.org/tomcat-4.1-doc/config/jk.html) and flup's AJP interface on the Django side. Django's running on a separate Linux box behind the firewall. It works reasonably we

Re: How about a Django apps public repository?

2006-09-11 Thread Marc Fargas
Uhm... maybe we should define some "reusabillity recommendations" to make sure thing behave nicelly and similar to the django behaviours.On the linked thread have you checked:  http://www.b-list.org/weblog/2006/06/14/django-tips-template-context-processors ? You can use a context processor to make

Re: Re: How about a Django apps public repository?

2006-09-11 Thread James Bennett
On 9/9/06, Sean Schertell <[EMAIL PROTECTED]> wrote: > But what about the actual stuff? So far we've got a couple people > willing to contribute an app or two. And as I've said, I've got three > I can put in to get started. I run a smallish web hosting company so > I'm happy to provide the servers

Transpose table in HTML view (show data per column instead of per row)

2006-09-11 Thread database . 36852739
I wrote (in http://groups.google.com/group/django-users/msg/f218d4fe0680f5d8 ): > | Thing 1 | Thing > 2| Thing 3| > > | white| green | black | > > | 23 | > 23 | 35 | Ugh, sorry about the ugly formatting and lack of subject. I hope it is cl

Re: Concurrency and data modification

2006-09-11 Thread Hawkeye
I think that this would be great (for my purposes)... It doesn't look like this exists in Django right now. Are there plans to implement this? Maybe a ticket that already exists? I'd still be concerned about the cache getting in the way, but as a first step the 'for_update' addition would be fan

Re: my private django repository goes public

2006-09-11 Thread garaged
On 9/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi Max, > > garaged schrieb: > > > > That was easy, but the main problem I have is that I really don't > > understand how to implement the new functionallity, I want to use > > libs.dojo, I installed it, but I don't know how to update my

Advanced copy/duplicate

2006-09-11 Thread Tim
I'm fairly new to python and Django but I've got a fair bit of experience with general web development. My problem is that I'm having trouble figuring out the best way in Django to copy an object (with several foreign keys and many to many items) into an other completely different object and addin

Re:

2006-09-11 Thread Adam Kelly
Hi, I'm a newcomer to django, so there may be a better way to do this, but the python way would seem to be: In the view: rows = zip( *[ ( thing.name, thing.color, thing.weight ) for thing in object_list ] ) In the template: {% for row in rows %} {% for item in row %} {{item}} {% endfor %} {%

Re:

2006-09-11 Thread database . 36852739
--- django-users@googlegroups.com wrote: > Hi, > > I'm a newcomer to django, so there may be a better way to do this, but > the python way would seem to be: > > In the view: > rows = zip( *[ ( thing.name, thing.color, thing.weight ) for thing in > object_list ] ) > > In the template

Rails/Django comparison synopsis

2006-09-11 Thread Jeff Rodenburg
I'm trying to get some education on rather quick order and was looking for feedback from the Django side of the equation.I've seen a bit of comparison in public forums of Rails and Django.  I'm trying to eval these things from a higher level, or one might call "management" perspective.  (No, I'm no

Re: Many-to-many and Forms

2006-09-11 Thread Russell Keith-Magee
On 9/11/06, Gnissem <[EMAIL PROTECTED]> wrote: > 1. In the create form, while this works, it is ugly as choosing from > 6500 minerals is a bit unwieldy. While I am investigating dojo as an > alternative, surely someone must already have dealt with a similar > situation. Any suggestions? Dojo or

Re: Advanced copy/duplicate

2006-09-11 Thread Russell Keith-Magee
On 9/12/06, Tim <[EMAIL PROTECTED]> wrote: > > Would it be better to run a function in Postgres? Is there a Django way > to do this? Is there a python way to do this? I'm open to any > suggestions. There isn't a native Django way; however, you could use Python to introspect models, walking throug

FilePathField displaying file in template

2006-09-11 Thread James Punteney
I have a photo field in a model that is a FilePathField. It works great in that it lists the photos and the user can then choose one to associate with the model. My question is how would you display the selected photo in a template? The file and image field types have the get_field_name_url to di

Re: Rails/Django comparison synopsis

2006-09-11 Thread charles sibbald
dont have all answers to your questions, but Django is powered by python which is more mature than Ruby and has more docs than ruby.and sometimes something overly hyped may just be that...overly hypedDjango docs are comming out at speed alsoi would be interested in developers opinions a

Re: Rails/Django comparison synopsis

2006-09-11 Thread Sean Schertell
Hi Jeff, I defected to Django from Rails and so far I'm loving it. But it really depends on what you need to do. If you're creating a single monolithic application, Rails is pretty sweet. I did a giant invoicing/accounting application for an insurance company in Rails. It handles tens of t

Re: Re:

2006-09-11 Thread DavidA
Adam Kelly wrote: > In the view: > rows = zip( *[ ( thing.name, thing.color, thing.weight ) for thing in > object_list ] ) > > In the template: > {% for row in rows %} > > {% for item in row %} > {{item}} > {% endfor %} > > {% endfor %} To generalize this a bit more, you could do: rows = zip(

Re: Syndication Question

2006-09-11 Thread Kenneth Gonsalves
On 09-Sep-06, at 11:45 PM, keukaman wrote: > I hope to get a bit of clarification on syndication. Does it need its > own app by running 'django-admin.py startapp feeds' or something > similar? http://www.djangoproject.com/documentation/syndication/#initialization -- regards kg http://lawgon.

Re: How about a Django apps public repository?

2006-09-11 Thread limodou
On 9/11/06, Ian Holsman <[EMAIL PROTECTED]> wrote: > > > On 11/09/2006, at 10:53 PM, charles sibbald wrote: > > > I think Djangoforge should have the ability to host projects as > > follows: > > > > 1. Full projects > > 2. Useful Classes > > 3. Useful Functions - > > > > similar to a mini hotscrip

Re: Rails/Django comparison synopsis

2006-09-11 Thread Gabriel Puliatti
On Mon, 2006-09-11 at 16:41 -0700, Jeff Rodenburg wrote: > My question: how would you (you = someone with solid Django > background) characterize similarities and differences with Rails? Django is slightly older, having been developed two years before the initial release in July 2005. They have

Re: Rails/Django comparison synopsis

2006-09-11 Thread Russell Keith-Magee
On 9/12/06, Jeff Rodenburg <[EMAIL PROTECTED]> wrote: > My question: how would you (you = someone with solid Django background) > characterize similarities and differences with Rails? Disclaimer: I'm a Django developer; I looked at Rails before I got involved with Django, and I occasionally 'peek

Re: Initial SQL data using Django ORM - A HowTo

2006-09-11 Thread limodou
On 9/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I've added a small tutorial: > http://code.djangoproject.com/wiki/InitialSQLDataDiangoORMWay > > It describes how to use Django ORM to add initial SQL data to freshly > installed apps without files with RAW SQL > I think the steps is some

Re: Rails/Django comparison synopsis

2006-09-11 Thread Kenneth Gonsalves
On 12-Sep-06, at 6:15 AM, Sean Schertell wrote: > I defected to Django from Rails and so far I'm loving it. this is the best write-up on django vs rails that i have seen - could you wikify it? -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~

Re: Rails/Django comparison synopsis

2006-09-11 Thread tao
I can use cakephp instead, that is not ruby, but a ROR styled framework --~--~-~--~~~---~--~~ 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 uns

Sites or custom hack to limit related fields in Admin

2006-09-11 Thread [EMAIL PROTECTED]
(Reposted since my thread was hijacked...) I have a "legacy database" filled with data for many customer's website content. In the admin I always want to filter the queries so that only the current customer's inventory, categories and subcategories are viewable. Can this be done with the "sites

Rails/Django comparison synopsis (a BIG summary)

2006-09-11 Thread Jeff Rodenburg
For summarization, I've added two of the responses below.  Very well articulated, thanks for the insight.  I appreciate the clear thought on distinctions between the two without some form of java-versus-dotnet war of words. Some additional observations from a veteran dev that's a newcomer to both o

Forms with error reporting

2006-09-11 Thread Hawkeye
The FormWrapper design pattern seems to be great, but I have a question. Is there any way that I can put errors in the response that aren't linked with form fields? For example, in an authentication page... if the authentication fails, I don't want to link an error to either the user or password

Add Functionality to Admin Interface

2006-09-11 Thread chrisdo
Hi there I wanted to write a nice CMS software with modules and all the stuff, so I wanted to ask if it's possible to add functionality to the admin interface, like uploading a zip and then unpacking the files to a specified folder. Is this possible? Or do I have to write my own Fields? --~--~-