Re: MS SQL Django suport is stable?

2006-06-21 Thread Jeroen Ruigrok van der Werven
On 6/21/06, mamcxyz <[EMAIL PROTECTED]> wrote: > Exactly the point: You don't know my situation and simply tell "switch > your EXPERIENCE to product XX... is easy!!" is a dangerous proposition. That's because most people never had to work in mixed environment shops. I get to support Novell

Re: Root URI in templates

2006-06-21 Thread Ivan Sagalaev
plungerman wrote: > perfect, just what we needed. one thing i noticed, however, is that > this manoeuvre does not work with 404.html and 500.html type pages. This is because they use a simple Context, not RequestContext. > we > have custom templates for those two errors, and the variable is

Re: admin ordering question

2006-06-21 Thread Adrian Holovaty
On 6/21/06, Mikeal Rogers <[EMAIL PROTECTED]> wrote: > class Item(models.Model): > name = models.Charfield(maxlength=100) > user = models.ForeignKey(User) > > def get_user_name(self): > return self.user.name > > class Admin: >

Re: Problem with date_based generic views

2006-06-21 Thread Patrick J. Anderson
Well, that fixed it. I guess development using mod_python can be a little cumbersome. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Problem with date_based generic views

2006-06-21 Thread Patrick J. Anderson
I'm trying to display my records based on date. I've removed object.list... same result, page returns the same error message. It's weird, because it was working fine just a few minutes ago. --~--~-~--~~~---~--~~ You received this message because you are

Re: Problem with date_based generic views

2006-06-21 Thread Malcolm Tredinnick
On Thu, 2006-06-22 at 03:47 +, Patrick J. Anderson wrote: > Hi, I've been working with date_based generic views in my application, > and while everything was going great, all of a sudden I'm getting this > error on, while trying to access records for a specific month: > > > ViewDoesNotExist

Problem with date_based generic views

2006-06-21 Thread Patrick J. Anderson
Hi, I've been working with date_based generic views in my application, and while everything was going great, all of a sudden I'm getting this error on, while trying to access records for a specific month: ViewDoesNotExist at /projects/2006/jun/ Could not import

Re: Idea: improved foreign key selection using auto-complete.

2006-06-21 Thread Jeremy Dunck
On 6/21/06, Matthew Flanagan <[EMAIL PROTECTED]> wrote: > Have a look at my > http://code.djangoproject.com/wiki/AJAXWidgetComboBox . I've actually > got an update to it that uses the new dojo.widget.Select widget (that > I wrote incidentally :), plus a bunch of template tags to make it > easier

admin ordering question

2006-06-21 Thread Mikeal Rogers
Hiya, Here is my issue I have a Model like this class Item(models.Model): name = models.Charfield(maxlength=100) user = models.ForeignKey(User) def get_user_name(self): return self.user.name class Admin: list_display = ('name',

Re: Idea: improved foreign key selection using auto-complete.

2006-06-21 Thread Matthew Flanagan
On 6/22/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > > On 6/21/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > For that, you could use either the "limit_choices_to" or > > "raw_id_admin" field options. > > I've seen the Ellington admin and the fact that it uses raw_id_admin a > good bit. I

Re: Using Exclude w/ Many to Many Relationships

2006-06-21 Thread Malcolm Tredinnick
On Wed, 2006-06-21 at 12:08 -0700, loki77 wrote: > I am messing with a server database that I've written in Django, and > I'm running into something that for some reason I can't figure out. > > Just some dependency info: > * Using Django from the svn repository- checked out revision 3189. > > I

Re: Idea: improved foreign key selection using auto-complete.

2006-06-21 Thread Scanner
Jeremy Dunck wrote: > I've seen the Ellington admin and the fact that it uses raw_id_admin a > good bit. I was thinking about making an auto-complete widget. > > Something like: > > class Article(models.Model): > headline=TextField() > > class Reporter(models.Model): > favorite_articles =

Re: MS SQL Django suport is stable?

2006-06-21 Thread mamcxyz
Yes, apt/yum is the way to go. Unfortunally, the packages availables for CentOS 3 are not Thanks... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Which IDE to debug django app? (Was "Using Pyscripter with Django")

2006-06-21 Thread Frankie Robertson
On 20/06/06, Michael Radziej <[EMAIL PROTECTED]> wrote: > > Hi, > > I really found I don't need a debugger for Django. If I have a > problem, I set some random variable to the data I am interested > in and raise a non-existing exception, like: > > bla = user.__dict__ > raise Bla > > Then I

Re: multiple templates on a single page

2006-06-21 Thread Frankie Robertson
Yes, I've found the code reuse to be a difficult sometimes because of the naive thinking one view becomes one template. There needs to be a way to flick a switch and render_to_response no longer return a HttpResponse, but instead a dictionary of the context. Unless you make all your views take a

Re: ANN: Screencast demo of the WebFaction control panel

2006-06-21 Thread Jay Parlar
On 6/21/06, Luke Plant <[EMAIL PROTECTED]> wrote: > I'm a WebFaction customer and I have to say I'm very impressed with them > so far. With zero experience of Trac I used their control panel to set > up a working Trac instance in a few minutes, as well as a Django app. > Switching the Django

Re: MS SQL Django suport is stable?

2006-06-21 Thread Lucas Vogelsang
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, mamcxyz wrote: > Wow! > > Exactly the point: You don't know my situation and simply tell > "switch your EXPERIENCE to product XX... is easy!!" is a dangerous > proposition. > It depends on which infrastructure you have. > But, before to start

Re: ANN: Screencast demo of the WebFaction control panel

2006-06-21 Thread Luke Plant
On Wednesday 21 June 2006 19:09, Jeremy Dunck wrote: > > The demo is available at: > > http://blog.webfaction.com/control-panel-demo > > > > Remi. > > http://www.webfaction.com - Hosting for an agile web > > Scary-cool. I'm a WebFaction customer and I have to say I'm very impressed with them

Re: overriding-default-model-methods what am i doing wrong ?

2006-06-21 Thread Luke Plant
On Tuesday 20 June 2006 17:17, coulix wrote: > when i add a tag element via the admin interface, or from a blog > entry. total_ref is always null. why doesnt it get affected to 28 ? > thanks It looks OK to me. I do have similar code that sets values like this, so it should work. To debug,

Re: MS SQL Django suport is stable?

2006-06-21 Thread Jeremy Dunck
On 6/21/06, mamcxyz <[EMAIL PROTECTED]> wrote: > 2- From the info I get, Apache support is not widely spread, mod-python > can have memory leaks?? (Maybe was a past version?) or the RAM > requeriments are more than my actual VPS, so I need to chosee other > option, and in a lot of places and

Re: MS SQL Django suport is stable?

2006-06-21 Thread DavidA
mamcxyz, I've had pretty good luck with Fedora Core 4. Here are my (terse) notes from setting up Django and my blog on FC4 a couple of weeks ago. Note that FC4 already had MySQL 4.1.x and Python 2.4.1 and Apache 2.0.54 (with mod_python) so I just went with them. On Windows I use MySQL 5 but I

Re: MS SQL Django suport is stable?

2006-06-21 Thread mamcxyz
Wow! Exactly the point: You don't know my situation and simply tell "switch your EXPERIENCE to product XX... is easy!!" is a dangerous proposition. But, before to start to make claims: - Yes, I'm from a Windows background, and I found django *itself* easy to grasp. However, something that is

Re: Initializing a PostgreSQL db with one-to-one models

2006-06-21 Thread Jay Parlar
> > Why are you using oids? For one, they are pretty much deprecated in > newer versions of Postgres. Second, the user should never create or > modify this value. Could be that your oid column name conflicts with > something low level in Postgres or psycopg. > > If you need a serial value for

Re: Initializing a PostgreSQL db with one-to-one models

2006-06-21 Thread Don Arbow
On Jun 21, 2006, at 1:00 PM, Jay Parlar wrote: > class TestProduct(models.Model): > oid = models.PositiveIntegerField() > product=models.OneToOneField(Product, related_name="test_oid") > Why are you using oids? For one, they are pretty much deprecated in newer versions of Postgres.

Re: Initializing a PostgreSQL db with one-to-one models

2006-06-21 Thread Jay Parlar
Oh jeez, nevermind. My double quotes around the product_name value is what's wrong. Arg. Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: MS SQL Django suport is stable?

2006-06-21 Thread Lucas Vogelsang
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Jeremy Dunck wrote: > On 6/21/06, Lucas Vogelsang <[EMAIL PROTECTED]> wrote: >> I think we pretty all know how painfull this is(not at all). >> Django on it's own is very easy to setup on any Linux. Maybe the >> packages you needed were hard to

Re: MS SQL Django suport is stable?

2006-06-21 Thread Douglas Campos
period? On 6/21/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > > On 6/21/06, Lucas Vogelsang <[EMAIL PROTECTED]> wrote: > > I think we pretty all know how painfull this is(not at all). Django on > > it's own is very easy to setup on any Linux. Maybe the packages you > > needed were hard to

Initializing a PostgreSQL db with one-to-one models

2006-06-21 Thread Jay Parlar
I've got an app that has the following models: class Product(models.Model): product_name = models.CharField(maxlength=64, blank=False) class Admin: pass def __str__(self): return self.product_name class TestProduct(models.Model): oid =

Re: multiple templates on a single page

2006-06-21 Thread hubritic
Thanks! >From the doc: include Loads a template and renders it with the current context. This is a way of "including" other templates within a template. The key is the *with current context* bit ... Julio Nobrega wrote: > {% include 'file.html' %} > >

Re: django-users spam

2006-06-21 Thread Don Arbow
On Jun 21, 2006, at 11:20 AM, Douglas Campos wrote: > Do we have some kind of spam filter at googlegroups? these marketing > spam is very annoying > It's actually not too bad, but I usually report spam to Google abuse. When you read the message at Google, there's a link called "Show

Re: MS SQL Django suport is stable?

2006-06-21 Thread Jeremy Dunck
On 6/21/06, Lucas Vogelsang <[EMAIL PROTECTED]> wrote: > I think we pretty all know how painfull this is(not at all). Django on > it's own is very easy to setup on any Linux. Maybe the packages you > needed were hard to install. Wow, that was amazingly unhelpful. mamcxyz is coming from

Re: multiple templates on a single page

2006-06-21 Thread Julio Nobrega
{% include 'file.html' %} http://www.djangoproject.com/documentation/templates/#include ? On 6/21/06, hubritic <[EMAIL PROTECTED]> wrote: > > I haven't seen this addressed in the documentation ... Say I want to > have a poll on how self-indulgent my blog post is. What I see in the > tutorial

Re: MS SQL Django suport is stable?

2006-06-21 Thread Tom Tobin
On 6/21/06, mamcxyz <[EMAIL PROTECTED]> wrote: > > I'm triying to setup a linux box with django, and frankly, I never > spect this task can be so HARD. Every step is a nightmare, I need > compile everything, the YUM/APT only have out-dated versions of the > things I need to run django. I have

multiple templates on a single page

2006-06-21 Thread hubritic
I haven't seen this addressed in the documentation ... Say I want to have a poll on how self-indulgent my blog post is. What I see in the tutorial shows how to make use a poll template and how to use a blog template, but I don't see how to use them both on the same page. I know that Django

Re: MS SQL Django suport is stable?

2006-06-21 Thread Lucas Vogelsang
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, You are talking rubbish. Maybe LFS(Linux from scratch) is hard to install, but on a debian/ubuntu it takes about 5mins. you mean that all the packages you need have up to date versions for windows but not for linux? I think we pretty all know

Re: manipulating images

2006-06-21 Thread kwe
thanks, that works great. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to

Re: MS SQL Django suport is stable?

2006-06-21 Thread Lucas Vogelsang
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 mamcxyz wrote: > Ok. Thanks > > If some progress is made I'm can test it. So back to mysql :( > It's progress, not regress. ;) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Signed with GPG & Enigmail - see

Re: Using Exclude w/ Many to Many Relationships

2006-06-21 Thread loki77
Sorry, I forgot to mention: There are around 300 servers WITHOUT the nopush tag in the database, and that's the set of servers I would like to return. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Using Exclude w/ Many to Many Relationships

2006-06-21 Thread loki77
I am messing with a server database that I've written in Django, and I'm running into something that for some reason I can't figure out. Just some dependency info: * Using Django from the svn repository- checked out revision 3189. I have two types of objects (well, more, but the others aren't

Re: MS SQL Django suport is stable?

2006-06-21 Thread mamcxyz
Also take in account that this "not problem, switch to XXX because is linux" mean lost of expertise. I'm triying to setup a linux box with django, and frankly, I never spect this task can be so HARD. Every step is a nightmare, I need compile everything, the YUM/APT only have out-dated versions

Best practices for filling in forms....

2006-06-21 Thread m h
Just wondering if there is a best practice for filling in forms (especially when you are coming back and editing a pre-filled in form). Does anyone have any magic or it is just putting selected,checked,etc attributes on the model and iterating/testing for the attribute in the template? looking

Re: Cutting output of flup's FastCGI server

2006-06-21 Thread Jeroen Ruigrok van der Werven
On 6/18/06, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > P.S. Looks like Allan considers this as a bug and is going to fix it. He did: http://www.saddi.com/software/news/archives/34-EPIPE-no-longer-ignored.html -- Jeroen Ruigrok van der Werven

Re: manipulating images

2006-06-21 Thread Doug Van Horn
I'm no expert either, but this seems to work for me: fp = StringIO() myImage.save(fp, 'jpeg') # or whatever format self.save_thumbnail_file(myName, fp.getvalue()) Nice thread. I was just fixin' to get to this for my demo app. Thanks! doug.

django-users spam

2006-06-21 Thread Douglas Campos
Do we have some kind of spam filter at googlegroups? these marketing spam is very annoying --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: ANN: Screencast demo of the WebFaction control panel

2006-06-21 Thread Jeremy Dunck
On 6/21/06, Remi <[EMAIL PROTECTED]> wrote: > The demo is available at: http://blog.webfaction.com/control-panel-demo > > Remi. > http://www.webfaction.com - Hosting for an agile web Scary-cool. I have a friend that runs an IIS/ASP ISP. I sent him a link. This'll give him a kick in the

Idea: improved foreign key selection using auto-complete.

2006-06-21 Thread Jeremy Dunck
On 6/21/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > For that, you could use either the "limit_choices_to" or > "raw_id_admin" field options. I've seen the Ellington admin and the fact that it uses raw_id_admin a good bit. I was thinking about making an auto-complete widget. Something

6000 IT Jobs + 100 IT Jobs Daily

2006-06-21 Thread Smith
Hello Now, I am sharing with you another website that is excellent  for IT Jobs. Currently, this website has more than 6000 IT Jobs And 100 new IT Jobs are coming daily. Please check this link and enjoy your dream job.   www.it-jse.com   Special thing about this website is, they are

Trouble with default values in model w/ sqlite

2006-06-21 Thread Jamie Scheinblum
Hi,I'm having trouble with default values in my model.  I've tried to establish what the default for a column should be when the input doesn't supply a value.  The model defaults seem to work fine when using django's python shell, but when I use either the admin interface or my own view, the

Re: Having many of one application.

2006-06-21 Thread Frankie Robertson
On 21/06/06, djx <[EMAIL PROTECTED]> wrote: *snip* Okay, so my original post was a bit vague, but I'll have another stab at explaining. -- Start example code --- /blogs/models.py ... class Blog(Model): title = CharField(maxlength=60, core=True, unique=True) tagline =

Re: Displaying an object's id in the Admin

2006-06-21 Thread Jay Parlar
No worries. I'm actually parsing the URL with some JavaScript to get it done. It actually works pretty nicely, and it means I don't have to dig into the DOM to pull out the value (although with MochiKit, digging into the DOM is almost a joy to do) Thanks, Jay P.

Re: Displaying an object's id in the Admin

2006-06-21 Thread [EMAIL PROTECTED]
Oh, damn. I just re-read your message and realized you already tried that. Sorry, reading too fast. :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Displaying an object's id in the Admin

2006-06-21 Thread [EMAIL PROTECTED]
I don't think you can display an automatically-added ID field in the Admin, since it's not present in the Model class. But, I think you can probably just add "id = models.AutoField(primary_key=True)" to your model and then display it in the admin. I think. :)

Re: Anyone got PyTextile?

2006-06-21 Thread William McVey
On Wed, 2006-06-21 at 11:53 -0400, Jay Parlar wrote: > On 6/21/06, Thomas Ashelford <[EMAIL PROTECTED]> wrote: > > > > I've been trying to source a copy of PyTextile 1.3 to use in a Django > > application I'm building, but the dealmeida.net server is down. Is > > there any kind soul out there who

Re: Anyone got PyTextile?

2006-06-21 Thread Jay Parlar
On 6/21/06, Thomas Ashelford <[EMAIL PROTECTED]> wrote: > > I've been trying to source a copy of PyTextile 1.3 to use in a Django > application I'm building, but the dealmeida.net server is down. Is > there any kind soul out there who could email a copy at > thomas-at-ether.com.au? > I was

Anyone got PyTextile?

2006-06-21 Thread Thomas Ashelford
I've been trying to source a copy of PyTextile 1.3 to use in a Django application I'm building, but the dealmeida.net server is down. Is there any kind soul out there who could email a copy at thomas-at-ether.com.au? --~--~-~--~~~---~--~~ You received this

Displaying an object's id in the Admin

2006-06-21 Thread Jay Parlar
Is there anyway to show what an object's primary key id is in the Admin? I tried adding "id" to the fields list, but that generates an error. I then tried having an explicit id, ie. id = models.AutoField(primary_key=True) but it was still no good. Essentially what I'm trying to do is grab the

Re: How would Django handle a large number of records

2006-06-21 Thread Adrian Holovaty
On 6/21/06, Patrick J. Anderson <[EMAIL PROTECTED]> wrote: > There are a few small admin interface issues I'd still need to work > out, mainly I might have a similar number of records related to > articles (the number of article assignments might be slighltly smaller > to the number of articles,

Re: How would Django handle a large number of records

2006-06-21 Thread Patrick J. Anderson
Thanks, guys! That's what I thought, but it helps to have a conformation, Wilson:). Great job on Django! There are a few small admin interface issues I'd still need to work out, mainly I might have a similar number of records related to articles (the number of article assignments might be

Re: MS SQL Django suport is stable?

2006-06-21 Thread Jeremy Dunck
On 6/21/06, aCiD2 <[EMAIL PROTECTED]> wrote: > Also, out of curiousity - why do you -need- MSSQL? I -need- MSSQL in the same sense that I -need- computers at all. Strictly speaking, I don't. But it's very useful. I "need" it because I have a few hundred thousand customers using an application

Re: How would Django handle a large number of records

2006-06-21 Thread Wilson Miner
> The World Online admin > interface (where Django was born) has a number of content types with > tens of thousands -- if not hundreds of thousands -- of records. 393,181 stories and counting... On 6/21/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 6/21/06, Patrick Anderson <[EMAIL

Re: Root URI in templates

2006-06-21 Thread plungerman
perfect, just what we needed. one thing i noticed, however, is that this manoeuvre does not work with 404.html and 500.html type pages. we have custom templates for those two errors, and the variable is not available in those templates. anyone have a suggestion how one might make the variable

Re: How would Django handle a large number of records

2006-06-21 Thread Adrian Holovaty
On 6/21/06, Patrick Anderson <[EMAIL PROTECTED]> wrote: > We have about 80,000 records which we will need to migrate. I'm wondering > how Django admin interface would deal with such amount of data (they > are of the same type, so they might be managed by a single app). I know > Django comes from

Re: "No module named models.auth" magic-removal confusion?

2006-06-21 Thread Peter Ferne
Hi GrigoryOn 6/21/06, Grigory Fateyev <[EMAIL PROTECTED]> wrote: http://code.djangoproject.com/wiki/RemovingTheMagic#IncludetemplateextensionexplicitlyI don't think that's the problem. In my urlconf I have:     (r'^json/trails/(?P\d+)/$',    'trail_detail_json',    {'template_name':

ANN: Screencast demo of the WebFaction control panel

2006-06-21 Thread Remi
Hello everyone, There is now a screencast demo of the WebFaction control panel. This screencast was shown to Adrian and Simon at a London Python meetup and they were quite enthusiastic about the control panel and the way we setup Django sites (we give each Django user their own Apache2 instance

Re: "No module named models.auth" magic-removal confusion?

2006-06-21 Thread Grigory Fateyev
Hello petef! On Wed, 21 Jun 2006 12:47:19 - you wrote: > > I've been developing an app (http://preview.sharing-places.com) > against Django v0.91. A little while back I started a branch on my > local dev machine (an OS X laptop) to incorporate the magic-removal > changes. I've suspended

Re: manipulating images

2006-06-21 Thread mwtb
kwe wrote: > I guess this means "if the PIL Image class can be used directly as > input to the save_FIELD_file() call." - it can't ? > > sorry new to python and just want to check I'm reading the error > correctly. Any ideas on how to change the type? Again, I'm not somewhere I can confirm

"No module named models.auth" magic-removal confusion?

2006-06-21 Thread petef
I've been developing an app (http://preview.sharing-places.com) against Django v0.91. A little while back I started a branch on my local dev machine (an OS X laptop) to incorporate the magic-removal changes. I've suspended work on that branch for the time being to carry on with bug fixing and

Re: manipulating images

2006-06-21 Thread kwe
Request Method: POST Request URL:http://localhost:8000/admin/photos/photo/add/ Exception Type: TypeError Exception Value:argument 1 must be string or read-only buffer, not instance Exception Location:

How would Django handle a large number of records

2006-06-21 Thread Patrick Anderson
Hi! I'm impressed with Django and all the fuss that it removed from my development. Our organisation is considering moving our document management from an old Access db to PostgreSQL and I thought of using django as an admin interface, plus public interface (sometime down the line.) We have

Re: Having many of one application.

2006-06-21 Thread djx
GenericRelations looks like a good fit for logging/auditing. eg. lion.log.create(action="create", action_by="userA") lion.log.create(action="modify", action_by="userB", field="weight", value="100") lion.log.create(action="modify", action_by="userB", field="weight", value="120")

Re: Please Help with Template for django.views.generic.create_update.update_object

2006-06-21 Thread Paul Childs
Hi Malcom, > I am not 100% certain what you are wanting to display in the repeating > section of the form. Is it every photo in the system? Or maybe every > photo associated with the existing "repair" instance? Sorry for being > dense; I'm trying to work out the context from some code fragments

Re: "Normalizing/cleaning" text of bad/unclosed tags?

2006-06-21 Thread Brett Parker
On Tue, Jun 20, 2006 at 06:58:46PM -0400, Jay Parlar wrote: > Well, as it stands right now, I only need this to make sure that text > entered into the Admin is ok, and that's all by trusted users, so > Beautiful Soup might do it. > > But what about the comments framework? I guess people are just

Re: MS SQL Django suport is stable?

2006-06-21 Thread aCiD2
Why not postgres? I've grown to love this db system, you might too. Also, out of curiousity - why do you -need- MSSQL? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,