Re: Custom primary key using Oracle 10g

2007-08-15 Thread Ian
On Aug 15, 9:43 pm, Catriona <[EMAIL PROTECTED]> wrote: > Hi Ian > > Sorry I wasn't really clear in what I want to achieve. I really just > want to call my primary key, in this case, employee_id and have it > incremented automatically. Sorry I misunderstood you. The code you tried appears to be

production instance on windowsxp

2007-08-15 Thread james_027
Hi, Ask I have successfully try to run django apps on apache/mod_python/ winxp, I learn that apache for winxp only support worker_mpm oppose to what django is suggesting (prefork_mpm). Should I worry about this? Or should I go with fast cgi? THanks james --~--~-~--~~~-

Re: Settings.py variables in CSS file

2007-08-15 Thread simonbun
Why not use relative paths in your css files? They're relative to the css file, not the html file, so you can do url(../images/diag.gif). I'm assuming that all media files are on the same host and that only the base media directory name is adapted to the svn version though. regards, Simon On Aug

Re: Using Nesh Thumbnail - Not displaying correct dimensions

2007-08-15 Thread Kenneth Gonsalves
On 16-Aug-07, at 8:05 AM, Greg wrote: > The file I uploaded was called 'IMG_0090'. When I looked in the site- > media folder it has been renamed to 'myphototest-photo-none' try an image without '_' or spaces or special characters in the name -- regards kg http://lawgon.livejournal.com http:

Re: multi level category table with parent_id field

2007-08-15 Thread gt7658b
Thanks, it worked. On Aug 13, 1:31 am, Nicola Larosa <[EMAIL PROTECTED]> wrote: > Hai Dong wrote: > > I was wondering how to use django to achieve the following application. > > Suppose my articles are organized in categories, subcategories, and > > subsubcategories. Database wise it will be good

Re: default values within postgres as defined in the model

2007-08-15 Thread Malcolm Tredinnick
On Wed, 2007-08-15 at 13:37 -0700, hiddenhippo wrote: > Recently new to the Django world and having a slight issue with > default values as defined within my django model. take the following, > which has been stripped, for clarity purposes. > > class test(models.Model): > language_code = mod

Re: Site Map template required?

2007-08-15 Thread Malcolm Tredinnick
On Wed, 2007-08-15 at 12:52 -0700, MikeHowarth wrote: > I've read through the site maps documentation, and seem to have > followed it to the letter, however I've getting a NoReverseMatch at / > sitemap.xml error. Where are you getting this error from? It's not really enough to report the error wi

Re: Weird problem with memcached enabled

2007-08-15 Thread Jeremy Dunck
On 8/15/07, TheMaTrIx <[EMAIL PROTECTED]> wrote: > > This with v1.38 of python-memcached. (still didn't get cmemcached to > build first gona learn some python so I can work my end of running > Django sites a bit better aka systems administration) > > It was released a couple days ago and seems to h

Re: 404 Page not found handling

2007-08-15 Thread TheMaTrIx
Forest: Those were the same arguments I made for using them, added that that it might also be handy to incorperate the following conditions into the 404: 1: There is nothing related to their typo, so we return the normal looking 404. 2: There is 1 page that relates to their typo, so we automatic

Re: Custom primary key using Oracle 10g

2007-08-15 Thread Catriona
Hi Ian Sorry I wasn't really clear in what I want to achieve. I really just want to call my primary key, in this case, employee_id and have it incremented automatically. I tried the following: from django.db import models class Employee(models.Model): employee_id = models.AutoField(max_len

Re: Settings.py variables in CSS file

2007-08-15 Thread James Bennett
On 8/15/07, Andy <[EMAIL PROTECTED]> wrote: > It works, except it seems horribly inefficient. The problem is *each > time* a page is requested, it would have to do a remote URL Request, > write the new css file, etc. Has anyone been confronted with this > problem. Is there an easier solution?

Re: Filter on related model problem...

2007-08-15 Thread [EMAIL PROTECTED]
Yes, you have to sort by the column you are regrouping--the regrouping doesn't change the position of the rows. Good example here: http://www.djangoproject.com/documentation/templates/ On Aug 14, 9:18 pm, Carl Karsten <[EMAIL PROTECTED]> wrote: > Collin Grady wrote: > > Regroup generates a list

Settings.py variables in CSS file

2007-08-15 Thread Andy
We are hosting our media files on a separate server from our web server. We are also using SVN for all of the django files, and the parent directories for the remote media files will correlate to the SVN version (i.e. see "media_231" below). The goal here is to be able to embed django settings.p

Re: 404 Page not found handling

2007-08-15 Thread Malcolm Tredinnick
On Wed, 2007-08-15 at 23:12 -0400, Forest Bond wrote: > Hi, > > On Wed, Aug 15, 2007 at 08:04:20PM -0700, TheMaTrIx wrote: > > Is it, in your opinions, "nice", "appropriate" and "correct", in other > > words, ethical, for an internet site to setup 404 pages so that when > > for instance: > > > >

Re: 404 Page not found handling

2007-08-15 Thread Forest Bond
Hi, On Wed, Aug 15, 2007 at 08:04:20PM -0700, TheMaTrIx wrote: > Is it, in your opinions, "nice", "appropriate" and "correct", in other > words, ethical, for an internet site to setup 404 pages so that when > for instance: > > http://www.domain.com/banana/ > > that doesn't exist, gets called, th

Re: 404 Page not found handling

2007-08-15 Thread James Bennett
On 8/15/07, TheMaTrIx <[EMAIL PROTECTED]> wrote: > that doesn't exist, gets called, the user gets a 404 page inline with > the sites main layout + a bunch of suggestions for pages that might > fit what the user was looking for, like there are pages relevant to > banana at Write a view which does

404 Page not found handling

2007-08-15 Thread TheMaTrIx
We're having a bit of a discussion here about an idea I came up with. The Django site we're developing is the first friendly URL site we're building (with php we never bothered, mostly because we mainly do intranet sites and SEF urls havent ever been a requirement and in PHP with mod rewrite, SEF

Re: Using Django to generate Flash/Flex content

2007-08-15 Thread SamFeltus
It's up, in a raw pre-Alpha version with a simple tutorial. http://samfeltus.com/django/SonomaSunshine_v0.1_raw_for_django.tar.gz I'll be upgrading it again soon... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: django hosting companies

2007-08-15 Thread Ben Ford
I use slicehost... been really happy with them so far. You get a dedicated virtual machine, so you can set up whatever you want. It's $20 per month. Ben On 16/08/07, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > > > On 15-Aug-07, at 10:33 AM, Jay Parlar wrote: > > > I have Django sites hosted w

Re: Using Nesh Thumbnail - Not displaying correct dimensions

2007-08-15 Thread Greg
The file I uploaded was called 'IMG_0090'. When I looked in the site- media folder it has been renamed to 'myphototest-photo-none' Thanks On Aug 15, 9:18 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > On 16-Aug-07, at 7:37 AM, Greg wrote: > > > is all I see - . > > are there spaces in your

Re: Using Nesh Thumbnail - Not displaying correct dimensions

2007-08-15 Thread Kenneth Gonsalves
On 16-Aug-07, at 7:37 AM, Greg wrote: > is all I see - . are there spaces in your filename? -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

Using Nesh Thumbnail - Not displaying correct dimensions

2007-08-15 Thread Greg
Hello, I've installed the nesh library. I've added a field in my models with type ImageWithThumbnailField. Here is my template code to display the image When I view this page in the browser it displays the image with the original dimensions. When I do a View -> Source in the browser this is

Re: Weird problem with memcached enabled

2007-08-15 Thread TheMaTrIx
Extra note, eventhough Iarsholm's suggestion fixed one problem, I immediately got another error. (2 params passed to a function while it requires 3) This with v1.38 of python-memcached. (still didn't get cmemcached to build first gona learn some python so I can work my end of running Django sites

Re: django hosting companies

2007-08-15 Thread Kenneth Gonsalves
On 15-Aug-07, at 10:33 AM, Jay Parlar wrote: > I have Django sites hosted with both DreamHost and Webfaction. While > Dreamhost is pretty good, once you get it working, I recommend > Webfaction. So much easier to setup, direct contact on the forums with > the people who run it, it's just fantast

Re: 0.96 tarball is corrupt

2007-08-15 Thread Kenneth Gonsalves
On 15-Aug-07, at 12:59 AM, Tim Chase wrote: >> I've downloaded the tarball several times - each time the archiver >> shows it as corrupt (other tarballs work fine). Using Ubuntu Feisty. >> (and the Feisty backport package is broken as well). > > Given the multiple responses that the tarball see

Re: Logout with TestClient

2007-08-15 Thread Russell Keith-Magee
On 8/16/07, eXt <[EMAIL PROTECTED]> wrote: > > Hi! > >TestClient has a login function (which is very useful :)), but > doesn't have a logout one. After browsing throught the code I > discovered that I can log a user out with a very simple call: > c.cookies = SimpleCookie(). Is this a proper wa

Re: CacheMiddleware and middleware orders matters

2007-08-15 Thread Kai Kuehne
Hi Erarothene, On 8/16/07, Eratothene <[EMAIL PROTECTED]> wrote: > > I am totally confused with CacheMiddleware docs and middleware docs. > > I want to use such middlewares in project: > ConditionalGetMiddleware > GZipMiddleware - addes Vary on Accept-Encoding > SessionMiddleware - addes Vary on

Re: accessing id attribute of a ForeignKey without additional DB queries

2007-08-15 Thread Russell Keith-Magee
On 8/16/07, kahless <[EMAIL PROTECTED]> wrote: > I have a simple 'Post' model which has a 'author' ForeignKey linking > to a 'User' object - is there a way to access post.author.id without > django triggering a database query ? > - i tried to use the db column name - post.author_id .. and it > wo

CacheMiddleware and middleware orders matters

2007-08-15 Thread Eratothene
I am totally confused with CacheMiddleware docs and middleware docs. I want to use such middlewares in project: ConditionalGetMiddleware GZipMiddleware - addes Vary on Accept-Encoding SessionMiddleware - addes Vary on Cookie CacheMiddleware - I am trying to find correct order for this middleware

Re: Using order_by with a field from a different table

2007-08-15 Thread Michael
Hi Greg, I think the documentation needs an update, but you need to make sure that the query includes the column that you want to order by... in Django terms the easiest way is to use the select_related method. So you should find that your view query works if you modify it slightly to: Entry.obj

Re: object doesn't have get_absolute_url() methods

2007-08-15 Thread RajeshD
On Aug 15, 4:33 pm, Drasty <[EMAIL PROTECTED]> wrote: > Which actually works. Oh, you Django with your various appropriate > ways to call things! You would get a faster response here next time if you'd make your sample model more like the one that's giving you the problem :) --~--~-~-

Logout with TestClient

2007-08-15 Thread eXt
Hi! TestClient has a login function (which is very useful :)), but doesn't have a logout one. After browsing throught the code I discovered that I can log a user out with a very simple call: c.cookies = SimpleCookie(). Is this a proper way of logging out or did I miss something? regards -- J

default values within postgres as defined in the model

2007-08-15 Thread hiddenhippo
Recently new to the Django world and having a slight issue with default values as defined within my django model. take the following, which has been stripped, for clarity purposes. class test(models.Model): language_code = models.CharField(default="en-gb",maxlength=10) when i run the sycnd

Re: object doesn't have get_absolute_url() methods

2007-08-15 Thread Drasty
Which actually works. Oh, you Django with your various appropriate ways to call things! --~--~-~--~~~---~--~~ 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@googleg

Re: object doesn't have get_absolute_url() methods

2007-08-15 Thread Drasty
Aha! It has to do with #2. I get an AttributeError that leads me to think I'm asking the wrong question. So: Is there a way to call a field from a related ForeignKey for one of the attributes of get_absolute_url()? That is: class Thing(models.Model): slug = models.SlugField() class Other

ORM API and applications best practice

2007-08-15 Thread Fabien Schwob
Hello, I'm currently rewriting an old Django project (the original was build on Django 0.95), and I'm trying to rewrite it with the best practice. My application is centered around a Clubber model which extend the built-in User model. So the models are currently : In the clubber app: class Club

Re: Changing database structue

2007-08-15 Thread James Bennett
On 8/15/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > What I'd normally do is use alter table to update the fields. I was > surprised to see django won't do it, while using manage.pl syncdb. Is > there a practical way to handle this issue? Or am I doomed to live > with the tables I've created

Changing database structue

2007-08-15 Thread [EMAIL PROTECTED]
Hi. I'm about to start my own django project soon. I just wanted to know how you handle table structure change? For instance, I have this model from the tutorial: class Poll(models.Model): question = models.CharField(maxlength=200) pub_date = models.DateTimeField('date published') def

django-cart integration?

2007-08-15 Thread MikeHowarth
Does anyone have experience of integrating django-cart in to an app? I've tried adding this to my project, however soon as I use runserver I get issues with the models: name 'Teacher' is not defined Anyone any idea? --~--~-~--~~~---~--~~ You received this messa

Site Map template required?

2007-08-15 Thread MikeHowarth
I've read through the site maps documentation, and seem to have followed it to the letter, however I've getting a NoReverseMatch at / sitemap.xml error. urls.py looks like this: from django.conf.urls.defaults import * from django.contrib.sitemaps import FlatPageSitemap, GenericSitemap from eshop

Re: Localflavor ChoiceField Select example

2007-08-15 Thread zorba
Additional i've created example project with all LocalFlavor Fields. It's based on my patch with Polish Localflavor (now it's only on my page. If everything is fine in next few days with it, i'll post it to the Django Trac ticket system for future inclusion). Mini-example is provieded on the follo

Re: object doesn't have get_absolute_url() methods

2007-08-15 Thread RajeshD
I don't see anything wrong with what you have there. Try these: 1. Make sure the get_absolute_url method uses correct indentation (tab vs. 4 spaces) consistent with the rest of your models.py 2. Drop into a shell with "python manage.py shell" and get an instance of your model object. Then issue

Re: Django Book Site is down

2007-08-15 Thread Jacob Kaplan-Moss
On 8/15/07, eriku777 <[EMAIL PROTECTED]> wrote: > Its back up. My apologies for the thread but I could not figure out > how to get in touch with the server admins. [EMAIL PROTECTED] will do it. FYI, my colo facility is having routing issues; might be a bit more downtime in the next day or so.

Re: Dynamic default value in models

2007-08-15 Thread Grupo Django
I think I found the answer here: http://www.b-list.org/weblog/2006/11/02/django-tips-auto-populated-fields Grupo Django ha escrito: > Hello, I'm writing an application for publishing news, one of the > fields is: > author = models.CharField( maxlength=100) > > I want that that field is fille

Re: Localflavor ChoiceField Select example

2007-08-15 Thread zorba
On Aug 15, 2:27 pm, zorba <[EMAIL PROTECTED]> wrote: > After some searching i've gave up with select field with localflavor > select widget. > Could someone give an example of this code ? > > My current code: > > from django.contrib.localflavor.us.forms import * > > class LocalForm(forms.Form):

Dynamic default value in models

2007-08-15 Thread Grupo Django
Hello, I'm writing an application for publishing news, one of the fields is: author = models.CharField( maxlength=100) I want that that field is filled automatically when someone add a new from the administration zone. Is there any way of defining a default parameter with the username who is

Re: Map of Django users

2007-08-15 Thread John Shaffer
There's also a map on Ohloh: http://www.ohloh.net/projects/3338;map --~--~-~--~~~---~--~~ 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 unsubscr

Re: object doesn't have get_absolute_url() methods

2007-08-15 Thread Drasty
On Aug 15, 1:26 pm, RajeshD <[EMAIL PROTECTED]> wrote: > What error does it throw? Page not found (404) Request Method: GET Request URL: http://127.0.0.1:8000/admin/r/7/1/ thing objects don't have get_absolute_url() methods -- I should note that I don't receive a

Re: object doesn't have get_absolute_url() methods

2007-08-15 Thread RajeshD
On Aug 15, 1:03 pm, Drasty <[EMAIL PROTECTED]> wrote: > I have a get_absolute_url() method on the object, but it doesn't > appear in the template, and the admin throws the error in the subject > line if I try to follow the "view on site" link. What error does it throw? --~--~-~--~

Re: object doesn't have get_absolute_url() methods

2007-08-15 Thread Drasty
Additional information: I'm using the *latest* SVN version, checked out less than 2 minutes ago. In addition, I converted all of the varables in get_absolute_url() to the SlugField model, in an attempt to overcome any potential unicode hiccups. I still have the same problem--get_absolute_url() rem

Webcool24.com : Biggest worldwide Asian free Video multi language web , Travel, Sports, Racing cars , Massages techniques, Games , Fashions, Jokes , Top models , Free online IT learning , 5000 li

2007-08-15 Thread web2007
Hi , I'd like to introduce you a biggest Asian free Video multi language entertainment website: http://www.webcool24.com/ Best regards. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" gr

Map of Django users

2007-08-15 Thread Rob Hudson
I live and work in Eugene, OR and because of the Django Master Class at OSCON I found out that there were a number of other people in Eugene using Django. So I thought it would be nice if there were a map of Django users to see if there were others nearby. To that end, I quickly created a Frappr

help me

2007-08-15 Thread adriannalynn
http://www.firstgiving.com/adriannalynn --~--~-~--~~~---~--~~ 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 e

object doesn't have get_absolute_url() methods

2007-08-15 Thread Drasty
I have a get_absolute_url() method on the object, but it doesn't appear in the template, and the admin throws the error in the subject line if I try to follow the "view on site" link. Here's a sample model: class Thing(models.Model): subject = models.CharField(maxlength=10) slug = mode

Re: unwanted SQL queries

2007-08-15 Thread Jeremy Dunck
On 8/15/07, Michal Konvalinka <[EMAIL PROTECTED]> wrote: > What I see is not one query but four queries. http://www.djangoproject.com/documentation/db-api/#querysets-are-lazy If you want only one query, call list() on the queryset: users = list(users) This will have the effect of "freezing" the

unwanted SQL queries

2007-08-15 Thread Michal Konvalinka
Hi group, create new view: def test_view(request): from django.contrib.auth.models import User users = User.objects.all() u0 = users[0] u1 = users[1] u2 = users[2] assert False Then access this view and see your SQL log. What I see is not one que

accessing id attribute of a ForeignKey without additional DB queries

2007-08-15 Thread kahless
Hi, I have a simple 'Post' model which has a 'author' ForeignKey linking to a 'User' object - is there a way to access post.author.id without django triggering a database query ? - i tried to use the db column name - post.author_id .. and it worked.. so the question remains - is this behavior i c

Re: Using Django to generate Flash/Flex content

2007-08-15 Thread SamFeltus
I'd be happy to put it up before midnight tonight Alabama time. I need to clean out the DB setts, images and such, and include a simple example... It will be on this page... http://samfeltus.com/site_index.html On Aug 15, 11:26 am, "Jon Atkinson" <[EMAIL PROTECTED]> wrote: > > Anyways, it's j

RE: How to change the size of input field from Django

2007-08-15 Thread Richard House
-Original Message- From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jordi.f Sent: 08 May 2007 19:27 To: Django users Subject: Re: How to change the size of input field from Django Hi L.B., I copy to 'myproject/templates/admin/base_site.html' the template fro

Re: Hard-coded sting in IFEQUAL

2007-08-15 Thread Brisingman
Upgrade to 0.96 went smoothly. On Jul 10, 10:42 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 7/11/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > running .91 due to upgrade soon. > > For future reference, that would have been a very useful piece of data > to provide with

Re: Django Book Site is down

2007-08-15 Thread eriku777
Its back up. My apologies for the thread but I could not figure out how to get in touch with the server admins. On Aug 15, 11:47 am, eriku777 <[EMAIL PROTECTED]> wrote: > Anyone have any idea when it will be up again? --~--~-~--~~~---~--~~ You received this mess

Welcome

2007-08-15 Thread action841
New message board: http://www.fashion-forum.org --~--~-~--~~~---~--~~ 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 grou

Re: Using Django to generate Flash/Flex content

2007-08-15 Thread Jon Atkinson
> Anyways, it's just an experiment. I'll stick the latest version up on > the net tonight in case someone else finds it amusing... I would be interested in seeing this. Could you make some of the source available? --Jon > > > > --~--~-~--~~~---~--~~ You receive

Re: Using Django to generate Flash/Flex content

2007-08-15 Thread SamFeltus
"""You don't and you shouldn't compile flash on a request basis. """ I wasn't suggesting that. I was suggesting a tool to prebuild swfs in a browser (to supplement not replace the Flash/Flex tools, which require a large learning curve to do anything). Then, have a library of content (swfs, aud

Django Book Site is down

2007-08-15 Thread eriku777
Anyone have any idea when it will be up again? --~--~-~--~~~---~--~~ 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,

Re: django.db.models.query.QOr bug?

2007-08-15 Thread Malcolm Tredinnick
On Wed, 2007-08-15 at 13:56 +, [EMAIL PROTECTED] wrote: > [...] > I also noticed that #2080 is closed. If #1801 being open > sufficient for this issue to be tracked? Yes, #1801 is sufficient. I haven't yet done the necessary Trac spamming to organise all those ticjets, but I'll eventually do

Re: django.db.models.query.QOr bug?

2007-08-15 Thread [EMAIL PROTECTED]
On Aug 15, 9:42 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > It's not completely clear to me whether this is a bug or not, although > enough people think it's counter-intuitive that it might be worth > changing. The problem is that both answers are correct, depending on > your interpret

Re: Newforms file upload

2007-08-15 Thread Brian Morton
I hit reply to author instead of reply. I think that is definitely the problem. I assumed that the file data would be in request.POST. I will go back and re-read the docs for newforms since it sounds like there are some API changes. Thanks to everyone who worked on this ticket, including Malco

Re: Using Django to generate Flash/Flex content

2007-08-15 Thread arthur debert
I'll second Patrick's opinion. It's an interesting idea, but I doubt it will be practical at all to put together classes at the backend and make that into an application somehow. You're probably better off developing modules, precompiled swf with functionality and a shell loading what modules you

Re: How to reuse a component in numerous templates, like turbogears widgets?

2007-08-15 Thread Jonathan Buchanan
On 8/15/07, Matt Wilson <[EMAIL PROTECTED]> wrote: > > I'm working on a django view for my office's homemade ticket-based > workflow system. > > I have a view that shows all tickets assigned to each employee. > > I also have a view that shows all tickets attached to parent tickets. > > I want to d

Re: How to reuse a component in numerous templates, like turbogears widgets?

2007-08-15 Thread Paul Rauch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matt Wilson schrieb: > I'm working on a django view for my office's homemade ticket-based > workflow system. > > I have a view that shows all tickets assigned to each employee. > > I also have a view that shows all tickets attached to parent tickets

Re: How to reuse a component in numerous templates, like turbogears widgets?

2007-08-15 Thread Tim Chase
> I want to define just once how to render any arbitrary lists of > tickets into HTML, and then use that same operation in both places. > > In TurboGears, I would build a custom widget, and then use that inside > my template. I suspect that the Django community has a similiar tool > available, b

How to reuse a component in numerous templates, like turbogears widgets?

2007-08-15 Thread Matt Wilson
I'm working on a django view for my office's homemade ticket-based workflow system. I have a view that shows all tickets assigned to each employee. I also have a view that shows all tickets attached to parent tickets. I want to define just once how to render any arbitrary lists of tickets into

Re: Newforms file upload

2007-08-15 Thread Malcolm Tredinnick
On Wed, 2007-08-15 at 12:26 +, Brian Morton wrote: > As I understand it, ticket 3297 is closed as resolved. However, I am > still experiencing problems uploading files in newforms as of the > latest svn checkout. Am I incorrect in my assumption that this has > been fixed? Or am I experienci

Re: Newforms file upload

2007-08-15 Thread Jonathan Buchanan
On 8/15/07, Brian Morton <[EMAIL PROTECTED]> wrote: > > As I understand it, ticket 3297 is closed as resolved. However, I am > still experiencing problems uploading files in newforms as of the > latest svn checkout. Am I incorrect in my assumption that this has > been fixed? Or am I experiencin

Re: checking if the model instance is not saved for 1-to-1 models

2007-08-15 Thread Kai Kuehne
Hi, On 8/15/07, omat <[EMAIL PROTECTED]> wrote: > No, because auto_now & auto_now_add are deprecated and the recommended > way to provide auto_now functionality is by overriding the save() > method. That's why I am doing it that way... >From where do you get that information? --~--~-~--

Re: How to I unsubscribe from this group

2007-08-15 Thread Rafael \"SDM\" Sierra
On 8/15/07, Brad Cathey <[EMAIL PROTECTED]> wrote: > > To unsubscribe from this group, send email to > [EMAIL PROTECTED] -- Rafael "SDM" Sierra http://stiod.com.br/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Localflavor ChoiceField Select example

2007-08-15 Thread zorba
After some searching i've gave up with select field with localflavor select widget. Could someone give an example of this code ? My current code: from django.contrib.localflavor.us.forms import * class LocalForm(forms.Form): testchoice = [('test','select')] test = forms.ChoiceField(choi

Newforms file upload

2007-08-15 Thread Brian Morton
As I understand it, ticket 3297 is closed as resolved. However, I am still experiencing problems uploading files in newforms as of the latest svn checkout. Am I incorrect in my assumption that this has been fixed? Or am I experiencing issues of my own? Thanks. --~--~-~--~~---

Re: Tagcloud for *all* TaggedItems

2007-08-15 Thread Kai Kuehne
Thanks Era! On 8/15/07, Eratothene <[EMAIL PROTECTED]> wrote: > [Code] I think I will create a ticket. Maybe Jonathan can integrate such a function directly into django-tagging. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Re: Tagcloud for *all* TaggedItems

2007-08-15 Thread Eratothene
For that I have written by own function, put it where is usage_for_model is located def usage_for_models(self, Models=[], counts=False, min_count=None): """ @param Model: the list of models to count. Empty list means all models. Inspired by usage_for_model, I needed

Re: translating numbers

2007-08-15 Thread Malcolm Tredinnick
On Wed, 2007-08-15 at 15:01 +0300, Heba Farouk wrote: > that's what i already did, but is there any method in python that > translates numbers ??, this means that i'll translate all the numbers > in the .po file No. Python doesn't come with any translation files at all. This is a flaw, in my opin

Re: translating numbers

2007-08-15 Thread Heba Farouk
that's what i already did, but is there any method in python that translates numbers ??, this means that i'll translate all the numbers in the .po file On 8/15/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > On Wed, 2007-08-15 at 11:50 +0300, Heba Farouk wrote: > > Hello > > i would like t

Re: translating numbers

2007-08-15 Thread Malcolm Tredinnick
On Wed, 2007-08-15 at 11:50 +0300, Heba Farouk wrote: > Hello > i would like to use i18n in translating variable numbers with the > current language, is it possible ? You would have to treat those numbers as strings and make sure you have translated each of the numbers in the PO file for your app

Re: django.db.models.query.QOr bug?

2007-08-15 Thread Malcolm Tredinnick
On Wed, 2007-08-15 at 06:06 +, [EMAIL PROTECTED] wrote: > Hi, > > I've think I've found a bug with complex queries and QOr. Here is the > test case model I've reduced it to: > > from django.db import models > > class Author(models.Model): > name = models.CharField(max_length=100) > >

Re: sending a welcome message to new users using signals

2007-08-15 Thread omat
I decided to use checking date_join aproach, until I found the simple and universal way. It is a little hacky but more straightforward. This is my dispatcher in the models.py of the messaging aplication: from django.dispatch import dispatcher from django.db.models import signals from messaging.v

How to I unsubscribe from this group

2007-08-15 Thread Brad Cathey
No offense, but we¹ve decided to head in another direction and now I can¹t get off the list. clicking the unsubscribe link is not working (I get a confirmation that I am not part of this group), but the emails flow. Thanks --~--~-~--~~~---~--~~ You received this m

Re: Using Django to generate Flash/Flex content

2007-08-15 Thread Patrick Lauber
I work as a Flash Developer and Django Programmer. You don't and you shouldn't compile flash on a request basis. You should make your flash app smart enough that you can give it some parameters or let it talk with the backend with something like django- amf. Then it can load images, mp3 etc. or

Free guitars!!!!!

2007-08-15 Thread knjaz milos
http://freeguitars.blogspot.com/ --~--~-~--~~~---~--~~ 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 [

sending a welcome message to new users using signals

2007-08-15 Thread omat
Hi, To send a welcome message to a new user, I am listening for a "post_save" signal from an auth.models.User class and it works fine. But I need to determine whether the user is newly created. I can hook to the "pre_save" instead of "post_save" and check for the "instance.id". This way I can de

translating numbers

2007-08-15 Thread Heba Farouk
Hello i would like to use i18n in translating variable numbers with the current language, is it possible ? -- Yours Heba --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, s

Re: Custom primary key using Oracle 10g

2007-08-15 Thread Ian
Catriona, Only AutoFields are auto-incrementing in Django. If you want to use a custom primary key that isn't an AutoField, you will need to populate the primary key yourself (or else create a custom trigger for it), just as you would for any other column that is both NOT NULL and UNIQUE. This

Re: Design plus admin question

2007-08-15 Thread Jon Atkinson
I'd not seen that page before - there are some much better solutions on there than my method. I particularly like Michael Radziej's solution which uses the ConfigParser and a .ini file. --Jon On 8/14/07, larsholm <[EMAIL PROTECTED]> wrote: > > On top of above approach you can use ideas from > ht

Re: django hosting companies

2007-08-15 Thread Jon Atkinson
I've just started running a Django friendly host (though I'm not sure Django-friendly is the correct term - maybe Django *preferred* is better). We're currently looking for a few (maybe five) people to test our service before we launch to the world. We offer Django SVN and Django 0.95, git, svn a