Re: Multiple primary keys

2007-09-04 Thread Leo
Lars, have you made any progress on this? I agree that only the numeric types are interesting as multiple keys, so worrying about URL encoding is pointless (i.e., there's no reason to worry about supporting multiple arbitrary-string keys). I'm trying to convince a team to use Django for new deve

Re: markdown issue

2007-09-04 Thread [EMAIL PROTECTED]
so great, it is what i wanted now On 9月4日, 下午10时03分, Tim Chase <[EMAIL PROTECTED]> wrote: > > i find this code translate enter once to "" , and enter twice is > > still "". > > i want keep "", ie. enter once i get a "", enter twice i get a > > "" > > is this possible? > > Ah...I misunderstood wh

newforms to validate if unique

2007-09-04 Thread james_027
hi, how do I use the newforms for creating an object that has an attribute with unique = True? Thanks james --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email t

Re: Integrating Django with existing site.

2007-09-04 Thread Steve Potter
> > You can use url rewriting to point your users at the old site while you > code up the new one. Apache's mod_rewrite is pretty well documented. > You would capture incoming URLs that aren't yet in your new Django app > before they get to it, sending them to the legacy app instead. > > http://h

Re: Integrating Django with existing site.

2007-09-04 Thread Greg Donald
On Tue, 4 Sep 2007, Steve Potter wrote: > I have an existing website currently built with Joomla. I would like > to convert it to a custom designed Django site. The problem I am > running into is that I will not be able to do it all at once. To > start with, I would like to take some of the bu

Re: USStateField and Canada

2007-09-04 Thread [EMAIL PROTECTED]
Thanks, Malcolm, but I've been looking at this, and I'm in way over my head here. I found the USStateField in django.contrib.localflavor.us.forms and the associated state in us_states I attempted to create a StateProvinceField that looked more or less like the USStateField, appending my Canadian p

Re: Model.py not creating MYSQL tables.

2007-09-04 Thread Jeremy Dunck
On 9/4/07, John <[EMAIL PROTECTED]> wrote: > > Thanks. That works. > > Now I'm only getting partial form (NAME AND PHONE INBOX BOX IS > DISPLAYED) with a bunch of html code. The html code > isn't being rendered properly.The submit button isn't being displayed You'll have to show your form, view,

Re: Model.py not creating MYSQL tables.

2007-09-04 Thread John
Thanks. That works. Now I'm only getting partial form (NAME AND PHONE INBOX BOX IS DISPLAYED) with a bunch of html code. The html code isn't being rendered properly.The submit button isn't being displayed Any ideas? Contacts Name: Phone: (NAME AND PHONE BOX IS HERE)

Re: just can't get the database thing at all

2007-09-04 Thread eoc
Ok, a follow-up, perhaps this will help someone else- Be very careful using Python 2.4 on a new intel Mac when you've transferred your user data/settings from an older PPC Mac :) After digging around a bit, these errors seem to come up when the copy of Python you are using is compiled for PPC. I

Re: Model.py not creating MYSQL tables.

2007-09-04 Thread John
Thanks. That works. Now I'm only getting partial form (NAME AND PHONE INBOX BOX IS DISPLAYED) with a bunch of html code. The html code isn't being rendered properly. Any ideas Contacts Name: Phone: (NAME AND PHONE BOX IS HERE) On Sep 4, 3:51 pm, John <[EMAIL PR

Re: Help with One-to-Many Models

2007-09-04 Thread jake
hi jim, JimT wrote: > The way my models are below (abbreviated for clarity) the hours don't > show up in the business detail of the "Businesses" section in the > admin application but the hours do show in the "Hours" section of the > admin application. if this isn't the behavior you want, you ca

Help with One-to-Many Models

2007-09-04 Thread JimT
Here's a brief description of what I'm trying to do: I have a database of businesses and I want to let the business owners enter their hours of operation. In order to normalize the display of the hours I've decided to have owners enter hours for each day. This represents a one (business) to many

Check it out:download free,stock information,knowledge base,hot videos,hot games and hot tickets...

2007-09-04 Thread iamhere
Check it out:download free,stock information,knowledge base,hot videos,hot games and hot tickets... http://groups.google.com/group/all-good-things/web/very-useful-websites --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Re: Model.py not creating MYSQL tables.

2007-09-04 Thread Jeremy Dunck
On 9/4/07, John <[EMAIL PROTECTED]> wrote: > > I've created a forms application. After running syncdb without any > errors I thought database connection with MYSQL was working. Django > tables have been created. Ensure that your contacts app is listed in INSTALLED_APPS. --~--~-~--~~-

Model.py not creating MYSQL tables.

2007-09-04 Thread John
I've created a forms application. After running syncdb without any errors I thought database connection with MYSQL was working. Django tables have been created. After I entered http://localhost:8000/contacts I get the following error. ProgrammingError at /contacts/ (1146, "Table 'iansfree.conta

Re: Django freelance work finder

2007-09-04 Thread Thomas Badran
Doh, cant believe i missed that! Thanks Tom On Tue, 2007-09-04 at 17:31 -0500, Jeremy Dunck wrote: > On 9/4/07, Thomas Badran <[EMAIL PROTECTED]> wrote: > > > > I assume there are some other people on this list that do the occasional > > bit of freelance work. Is there anywhere you would recomm

Re: Django freelance work finder

2007-09-04 Thread Jeremy Dunck
On 9/4/07, Thomas Badran <[EMAIL PROTECTED]> wrote: > > I assume there are some other people on this list that do the occasional > bit of freelance work. Is there anywhere you would recommend to look for > this sort of work, or software development freelance work in general? > http://code.djangop

Read each email for $10....real money

2007-09-04 Thread Sudip
Hello, I hate to send this mail to you, as I think you might not like this. But I just want to tell you about great site I found. They pay me to read e-mail, visit web sites and much more. It's free to join and easy to sign up! All the below options in one site and you get all the benefit in y

just can't get the database thing at all

2007-09-04 Thread eoc
Hello again, I wrote yesterday with an issue of not being able to connect to a sqlite database for the purposes of getting through the tutorial - I was getting a "raise ImproperlyConfigured, "Error loading %s module: %s" % (module, e) django.core.exceptions.ImproperlyConfigured: Error loading py

Django freelance work finder

2007-09-04 Thread Thomas Badran
I assume there are some other people on this list that do the occasional bit of freelance work. Is there anywhere you would recommend to look for this sort of work, or software development freelance work in general? Sorry for being a bit off topic. Tom --~--~-~--~~~

Integrating Django with existing site.

2007-09-04 Thread Steve Potter
I have an existing website currently built with Joomla. I would like to convert it to a custom designed Django site. The problem I am running into is that I will not be able to do it all at once. To start with, I would like to take some of the business logic and form process and move to Django,

Re: Signing with mouse

2007-09-04 Thread Tim Chase
> I am looking for a python based utility that will allow a user to sign > their name with a mouse and save the resulting image for inclusion in > a PDF. Has anyone heard of something like this? Well, you're asking a python question on the Django list. Unless you're trying to do this in a Django

Signing with mouse

2007-09-04 Thread Kelsey Ruger
I am looking for a python based utility that will allow a user to sign their name with a mouse and save the resulting image for inclusion in a PDF. Has anyone heard of something like this? --~--~-~--~~~---~--~~ You received this message because you are subscribed

jellyroll app update.py

2007-09-04 Thread Chris H.
Anyone have experience using Jacob's jellyroll app, specifically the update.py script? I have started a new project, downloaded and installed the app, run syncdb and all looks good. But when I run bin/ update.py I get: ImportError: No module named jellyroll.providers In addition, there doesn't

Be you own Boss , Fire Your Boss - Be our Worldwide Business Partner

2007-09-04 Thread Spytips
Be you own Boss , Fire Your Boss - Be our Worldwide Business Partner Sunshine Empire Group - Be our Worldwide BusinessPartners If you are interested in another income business and getting results quickly, Sunshine Empire is the place to join. Becoming a partner of the Sunshine Empire is a wonder

How do I pull a javascript array into a form submission

2007-09-04 Thread eriku777
I have been tooling around with this wonderful javascript calendar that allows for the selections of multiple dates (with other really cool constraints) and then packs then all into an javascript array that can be walked though. All the Django forms examples I have seen presume a fixed number for

Re: A question about an interface via a Form

2007-09-04 Thread Nathaniel Whiteinge
On Sep 4, 4:24 am, Nader <[EMAIL PROTECTED]> wrote: > I am a new in Django world. I have installed Django and have made a Welcome! :-) > The Model in this application looks like : > > class ContactInfo(models.Model): > contactId = models.IntegerField(primary_key=True) Quick note: This isn't n

SonomaSunshine added to Google Code

2007-09-04 Thread SamFeltus
If anyone is amused, the Redneck Riviera's Best Python Powered Folk Art Server is now on Google Codes in a raw pre alpha... http://code.google.com/p/sonoma-sunshine/ Example Django generated pages are at... http://samfeltus.com/site_index.html --~--~-~--~~~---~--~-

Re: Recommended way for data duplication within forms

2007-09-04 Thread Jacek Trzmiel
Dan-Cristian Bogos wrote: > got one situation when I need to keep two different tables with > usernames and passwords, one with unencrypted and the other with > django auth tables (therefore ecrypted recommended). > What is the preferred way of doing data duplication when from the same > form it i

Re: django.contrib.seach | lucene unicode showstopper

2007-09-04 Thread jelle
> PyLucene on its own has no problems with unicode. The PyLucene API > accepts either unicode objects or utf-8 encoded strings. I suppose the > problem is in the django.contrib.search (I don't use it so I cann't be > sure). True, I've seen that as well. --~--~-~--~~~---

Re: django.contrib.seach | lucene unicode showstopper

2007-09-04 Thread jelle
> PyLucene on its own has no problems with unicode. The PyLucene API > accepts either unicode objects or utf-8 encoded strings. I suppose the > problem is in the django.contrib.search (I don't use it so I cann't be > sure). True, I've seen that as well. --~--~-~--~~~---

Re: django.contrib.seach | lucene unicode showstopper

2007-09-04 Thread jelle
> PyLucene on its own has no problems with unicode. The PyLucene API > accepts either unicode objects or utf-8 encoded strings. I suppose the > problem is in the django.contrib.search (I don't use it so I cann't be > sure). True, I've seen that as well. --~--~-~--~~~---

Re: task-distribution and multiple clients...

2007-09-04 Thread Jacek Trzmiel
Bram - Smartelectronix wrote: > I have some tasks (in my case songs that need "rendering") which are > executed on various amazon EC2 machines. I need to distribute each task > to one machine only and make sure there's no concurrent rendering. > > I tried this: > [...] > song_id = int

unique_true option of the fields works as case-sensitive, how can we make it case-insensitive?

2007-09-04 Thread parabol
When I mark a field as unique_true is works as case-sensitive and does not catch something like "problem" and "Problem". What is the correct way of making it case-insensitive? Thus it will catch even "problem" and "ProBLem". I tried to override the save() method, but this time the thrown excepti

Re: hai am new one to django

2007-09-04 Thread Ramdas S
Hi, We need to have a couple of marketing docs on Django, which can be reused whenever a newbie takes interest Ramdas On 9/4/07, Tim Chase <[EMAIL PROTECTED]> wrote: > > > > am new one to django > > welcome > > > am working in php mysql > > I'm sorry ;) > > > me whats django and how its defer

Re: hai am new one to django

2007-09-04 Thread Tim Chase
> am new one to django welcome > am working in php mysql I'm sorry ;) > me whats django and how its defer from php ruby on rails... Django is frequently describe as "Ruby on Rails, but using Python instead of Ruby". That alone is enough for me to like it ;) There are some other more subtle

hai am new one to django

2007-09-04 Thread Damodhar
hi, am new one to django am working in php mysql now learn ruby on rails can u help me whats django and how its defer from php ruby on rails... thanks damodharan.k --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

default value in a form

2007-09-04 Thread Rufman
hey how can i make a default value dynamic, so that i can define it when i create a form (with form_for_instance or form_for_model). i'm using a select field, which somehow choose "blank" as it's default. How can i change this with the django db/model api? e.g i want to have today' s date to be

Re: markdown issue

2007-09-04 Thread Tim Chase
> i find this code translate enter once to "" , and enter twice is > still "". > i want keep "", ie. enter once i get a "", enter twice i get a > "" > is this possible? Ah...I misunderstood what you wanted. Yes, the same sort of thing could work: r = re.compile('([^\n])\n([^\n])') text = r.su

Re: sessions in templates

2007-09-04 Thread Alex Koshelev
Must be installed request context process http://www.djangoproject.com/documentation/templates_python/#django-core-context-processors-request and {{request.session}} get session dict. On 4 сент, 17:58, Rufman <[EMAIL PROTECTED]> wrote: > is there a template tag that allows me to get a session var

sessions in templates

2007-09-04 Thread Rufman
is there a template tag that allows me to get a session variable that i previously defined in a view? I know that users and permissions can be accessed with the template tag {{ user.foo }} and {{ perms.foo }}. thx for the help stephane --~--~-~--~~~---~--~~ You

Re: overriding save, non-admin error

2007-09-04 Thread Alex Koshelev
What is self.title and self.title.title() ? On 4 , 15:18, canburak <[EMAIL PROTECTED]> wrote: > I have a problem on overriding the save() method. > my new save is: > class ClassName: > def save(self): > self.title = self.title.title() > super(ClassName, self).save() > > when admin s

Re: django.contrib.seach | lucene unicode showstopper

2007-09-04 Thread Jarek Zgoda
jelle napisał(a): > Has anyone has had a bit more luck with django.contrib.search than > what I've been getting so far? > The API seems quite nice, and its easy to set up, but it seems that > the lucene back end that I've been using so far is pretty useless > since it can't deal with Unicode text

django.contrib.seach | lucene unicode showstopper

2007-09-04 Thread jelle
Has anyone has had a bit more luck with django.contrib.search than what I've been getting so far? The API seems quite nice, and its easy to set up, but it seems that the lucene back end that I've been using so far is pretty useless since it can't deal with Unicode text. Which for me is a showstopp

Re: how to avoid blank content

2007-09-04 Thread Jeremy Dunck
On 9/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > i have a class which have two field: > author = models.ForeignKey(User) > body = models.TextField(blank=False,null=False) > i found in admin interface, i cannot save a record with blank content > for body,which will rise

how to avoid blank content

2007-09-04 Thread [EMAIL PROTECTED]
i have a class which have two field: author = models.ForeignKey(User) body = models.TextField(blank=False,null=False) i found in admin interface, i cannot save a record with blank content for body,which will rise a error. but in user interface, i can save it with blank content.

overriding save, non-admin error

2007-09-04 Thread canburak
I have a problem on overriding the save() method. my new save is: class ClassName: def save(self): self.title = self.title.title() super(ClassName, self).save() when admin site uses this save(), I get the non-unique exception at django/python level but I hope to see a red box in the adm

Re: Incrementing in django templates

2007-09-04 Thread Tomas Kopecek
Rufman napsal(a): > hey > > does anyone know if there is a way to increment a variable in a django > template? > > I was thinking somthing like this: > > {% for somthing in varFromView %} > {{ index = index+1 }} > > {% endfor %} If you only need this case (indexing for cycle), the

A question about an interface via a Form

2007-09-04 Thread Nader
I am a new in Django world. I have installed Django and have made a few examples to ge some feeling how it works. Now I would make a very simple application with one class (table). This class will be presented in a form such that a user can add a new one, or can change the content of fields if he

Recommended way for data duplication within forms

2007-09-04 Thread Dan-Cristian Bogos
Hi All, got one situation when I need to keep two different tables with usernames and passwords, one with unencrypted and the other with django auth tables (therefore ecrypted recommended). What is the preferred way of doing data duplication when from the same form it is necessary to insert data

Re: log in without loggin in

2007-09-04 Thread Chris Hoeppner
I think there's a chapter in the django book about authentication backends, and that's right what you need. El mar, 04-09-2007 a las 02:28 -0700, Dushyant Sharma escribi�: > hi it might sound strange but what i am thinking is to use two servers > one for authentication only and one for serving no

Incrementing in django templates

2007-09-04 Thread Rufman
hey does anyone know if there is a way to increment a variable in a django template? I was thinking somthing like this: {% for somthing in varFromView %} {{ index = index+1 }} {% endfor %} unfortunately this doesn't work thank for the help stephane --~--~-~--~~---

log in without loggin in

2007-09-04 Thread Dushyant Sharma
hi it might sound strange but what i am thinking is to use two servers one for authentication only and one for serving normal content. authentication server can not come into direct contact with users. here how it goes. suppose we have user server USrv and authentication server ASrv. auth_user ta

Re: markdown issue

2007-09-04 Thread [EMAIL PROTECTED]
Actually, after test for 2 days, i find this code translate enter once to "" , and enter twice is still "". i want keep "", ie. enter once i get a "", enter twice i get a "" is this possible? thx! On 9月3日, 下午4时15分, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > it is ok now, thx Tim > > On 9月

Re: Problem in current svn TRUNK

2007-09-04 Thread Michael Radziej
On Mon, Sep 03, Peter Nixon wrote: > Tomorrow I will setup a vm for you running openSUSE 10.3 beta2 that you can > play with to your hearts content. Would that be helpfull? Peter, this is going to take a substantial amount of time. I'm not a core developer, and I don't (any more) use SuSE, so i

Re: using querysets to populate a form

2007-09-04 Thread David Reynolds
No one have any ideas? Thanks, Dave On 3 Sep 2007, at 12:51 pm, David Reynolds wrote: > > Hi, > > I have a requirement to use querysets as choices in various elements > of a form, and as the data grows this is clearly going to have a big > hit on the database every time this form is loaded. C

Re: How to add a non database item to a python model

2007-09-04 Thread Iapain
> I want to have a non database item in this model class, which I can > populate in the views. What is the recommended way to do this. its quite simple: myObject.my_item_that_doesnt_exist_in_model = 'my value' #incase of model object --~--~-~--~~~---~--~~ You re

Re: existing tables

2007-09-04 Thread Iapain
> What can I do to reach existing tables ? Use inspectdb or write model class yourself, based on your table. if your table doesnt have "id" field then you might need to override save() and delete() methods --~--~-~--~~~---~--~~ You received this message because yo

Re: existing tables

2007-09-04 Thread Alex Koshelev
Look this: http://www.djangoproject.com/documentation/django-admin/#inspectdb Creates django models from the existing db structure On 4 сент, 11:25, [EMAIL PROTECTED] wrote: > hello > > I am very new to django. > > What can I do to reach existing tables ? > > in examples I met, new tables have be

existing tables

2007-09-04 Thread temiz
hello I am very new to django. What can I do to reach existing tables ? in examples I met, new tables have been created from scratch ? regards Ahmet Temiz Turkey --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups