newforms - How to add class attribute for the text field.

2007-11-22 Thread Nicholas Ding
Hi, guys: I'm using the newforms library, but I wanna add class attribute to the text field, I don't know how to add those html attributes into suchs fields. Any ideas? Thanks -- Nicholas @ Nirvana Studio http://www.nirvanastudio.org --~--~-~--~~~---~--~~ You rec

how to use django.db module out of django views?

2007-11-22 Thread [EMAIL PROTECTED]
i have file named dump.py at the root folder of django project,i want to connect database using django settings.py, so here is my code: from django.db import connection, transaction cursor = connection.cursor() cursor.execute( .) and i got this error: from django.db import connection

Re: Popup 'add another' and custom widget in newforms-admin

2007-11-22 Thread Julien
Doesn't anyone know how to help me on this? Also, I've found another problem. Using the custom form field CitiesField makes the attribute required (I get an error if I don't put any cities in a person's profile). But it is not required if I switch back to the regular ManyToManyField form field. H

New Program Send Big File Fast and Easy Apply For FREE!!!

2007-11-22 Thread peter borman
WHO WE ARE YouSendIt is the No. 1 digital file delivery company serving business and individuals businesses who want a easy, secured, reliable and faster way to SEND, RECEIVE and TRACK DIGITAL FILES. YOUSENDIT SOLUTION We replace the hassles of dealing with unreliable FTP servers, eliminate the fr

Re: Does a model have a fields attribute?

2007-11-22 Thread Russell Keith-Magee
On Nov 23, 2007 4:07 AM, Ken <[EMAIL PROTECTED]> wrote: > > Does a Model have a fields dict attribute like a Form? I did a dir() > on a model and don't see one. I see, instead, that the model fields > are themselves attributes. Is this the case? This sort of detail is all kept in the _meta att

Re: Does a model have a fields attribute?

2007-11-22 Thread Alex Koshelev
._meta.fields - list of model's fields instances ._meta.get_field - returns field instance with given name On 22 нояб, 22:07, Ken <[EMAIL PROTECTED]> wrote: > Does a Model have a fields dict attribute like a Form? I did a dir() > on a model and don't see one. I see, instead, that the model fiel

Does a model have a fields attribute?

2007-11-22 Thread Ken
Does a Model have a fields dict attribute like a Form? I did a dir() on a model and don't see one. I see, instead, that the model fields are themselves attributes. Is this the case? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscrib

Re: efficiently search for ManyToMany links?

2007-11-22 Thread Joe
You can query the database directly: from django.db import connection # Database connection cursor = connection.cursor() # Raw Query cursor.execute("SELECT statement;") rows = cursor.fetchall() J On Nov 22, 12:55 pm, Adam Seering <[EMAIL PROTECTED]> wrote: > Hi all, > I have code that

Re: Django Web Hosting Service

2007-11-22 Thread Kenneth Gonsalves
On 22-Nov-07, at 2:15 AM, Daniel Roseman wrote: >> http://www.webfaction.com/ >> >> They are amazing and reasonably priced. Their support is great. They >> have exceeded my expectations many times. >> >> Chuck > > Second this recommendation. I am very happy with them, and they have > responded t

If you are in need of fast, effective tax debt assistance, we are here to help.

2007-11-22 Thread sari RU
*What we will do for you:* - *Speak to the IRS so you don't have to* - *Stop Enforced Collections* - *Release Wage/Bank Levies* - *Settle Federal & State back taxes and unfiled returns* - *Bring you back into full tax filing compliance* - *Negotiate an affordable tax debt resolu

efficiently search for ManyToMany links?

2007-11-22 Thread Adam Seering
Hi all, I have code that, greatly simplified, looks like the following: class CheckBoxType(models.Model): name = models.TextField() class Course(models.Model): name = models.TextField() checkboxes = models.ManyToManyField(CheckBoxType) Essentially, a Course has m

Join Now in the Referral Contest and Start Earning 20,000,00 USD

2007-11-22 Thread [EMAIL PROTECTED]
Aglocomails Referral Contest It is 100% FREE. You will receive 10% earnings from your referral work. All will be credited to your account daily Minimum payout for free members is 20,000,00 USD - easy to reach. Join Now http://aglocomailsreferralcontest.blogspot.com/ --~--~-~--~~

FastCGI shared hosting

2007-11-22 Thread Dwarf
Hello, the problem is getting to be annoyed. I have shared django hosting with Apache, fcgid module and flup. The problem is that my app.fcgi sript does not respawn when I make changes in it or say: " touch app.fci" It runs with rights of "apache" user and I have no clue how to restart it. Admin

Re: weird "can't adapt" error

2007-11-22 Thread Jarek Zgoda
Michael napisał(a): > Thanks Thomas... your shot in the dark hit it's mark for me :) > > I was suffering the same "can't adapt" psycopg2 error (worked fine > with sqlite), but it was due to the exact reason you stated. > > Although your solution is probably better in the long run, another > solu

Re: weird "can't adapt" error

2007-11-22 Thread Sandro Dentella
On Tue, Nov 20, 2007 at 03:04:09PM -0600, Jeremy Dunck wrote: > > On Oct 26, 2007 2:47 AM, sandro dentella <[EMAIL PROTECTED]> wrote: > ... > > > > once again I stumble into this problem. This time I gathered some > > more > > info so I describe them. > > http://groups.google.com/group/djang

cartas comerciais gratuitas

2007-11-22 Thread Paula
Carta Comercial Modelos de Cartas Comerciais Modelos de documentos comerciais, carta comercial cartas modelo. tipos de cartas comerciais modelos prontos. Visite agora: http://www.modelosdecartascomerciais.com Cartas Comerciais elaborados com criatividade e conhecimento, convites contratos propos

Re: Django and PyAMF, AMF remoting

2007-11-22 Thread Bert Heymans
Hi Arnar, Cool, I'm checking it out at this moment, I'd love to use it. I'm trying out the example on the wiki here http://pyamf.org/wiki/DjangoHowto but I can't get it to work just yet. Maybe I did something wrong or the install script didn't behave like it's supposed to in my environment (Mac

Re: GeoDjango Distances

2007-11-22 Thread Justin Bronn
Dan, You raised some excellent questions, thanks for sharing. > 1 - Is there anyway in Geodjango to calculate distances between two > points? GEOSGeometry objects may be used to calculate the distance between two points. For example: >>> from django.contrib.gis.geos import Point >>> p1 = Poin

Work

2007-11-22 Thread Dave
I am a recruiter looking for excellent Django/Python developers, the role is with a company based in Central London and the salary is very competitive. Please see my ad below and if you are interested please contact me: Python Developer - Central London - £45k - Python, Django, Plone, Zope £4500

Uploading images

2007-11-22 Thread [EMAIL PROTECTED]
Hi! I've a model like this: class Photo(models.Model): name = models.CharField(_("Nome"),max_length=50 ,blank=False) image = models.ImageField(_("Immagine"), upload_to= settings.MEDIA_ROOT+"/%Y/%m/") caption = models.CharField(_("Didascalia"), max_length=4000, blank=False) I'm develo

Re: Receiving an XML from client and parsing into django db

2007-11-22 Thread Simon
Thank you for the quick reply DR. I'll look into it. --~--~-~--~~~---~--~~ 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 gr

SEE MY PICS????????

2007-11-22 Thread cute
SEE MY PICS http://earnmac.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,

Re: Receiving an XML from client and parsing into django db

2007-11-22 Thread Daniel Roseman
On 22 Nov, 11:59, Simon <[EMAIL PROTECTED]> wrote: > Hi everyone, > I'm actually very new to django and I haven't been able to find any > answers to my problem. > I was wondering if there was a way I could receive an xml from a > client and parse that into > the database that I created with django

Re: starting point?

2007-11-22 Thread Daniel Roseman
In another thread many people (including myself) have recommended Webfaction. It's the same sort of price level as Dreamhost, but much more reliable for Django hosting. In fact they set everything up for you, all you need to do is add your app. -- DR. On 22 Nov, 10:08, "[EMAIL PROTECTED]" <[EMAIL

Re: Django Web Hosting Service

2007-11-22 Thread Chris Hoeppner
Yeah, Slicehost have a nice name in the industry, though you gotta order with some time in advance. Don't rely on them for "I need a server for yesterday" situations ;) ~ Chris El jue, 22-11-2007 a las 04:37 -0800, [EMAIL PROTECTED] escribi�: > > > Can anybody recommend me a Django Web Hosting

Re: Django Web Hosting Service

2007-11-22 Thread [EMAIL PROTECTED]
> Can anybody recommend me a Django Web Hosting Service? I recommend buying a VPS, and one of the very best VPS services is slicehost.com which i really recommend! If VPS is to expensive for you then WebFaction is the solution you should go with. --~--~-~--~~~---~--

Re: Permissions and user.has_perm

2007-11-22 Thread Jon Atkinson
> What's your app_label (usually the lowercase name of the app whose > models.py contains your Person class")? > > The has_perm method should be called with .add_person > and not with .add_person Thank you for that - I can't believe I didn't try that myself :-) --Jon --~--~-~--~~---

Receiving an XML from client and parsing into django db

2007-11-22 Thread Simon
Hi everyone, I'm actually very new to django and I haven't been able to find any answers to my problem. I was wondering if there was a way I could receive an xml from a client and parse that into the database that I created with django? Originally, I had a server side script that would take in th

Re: Popup 'add another' and custom widget in newforms-admin

2007-11-22 Thread Julien
Ooops, just realised I didn't finished writing the first sentence of my previous post. So here it is: "I have created a custom widget using the branch newforms-admin to represent a ManyToMany relation with checkboxes." On Nov 22, 10:49 pm, Julien <[EMAIL PROTECTED]> wrote: > Hi all, > > I have cr

Re: Custom ManyToManyField widget in admin

2007-11-22 Thread Julien
Hi Kamil and all, I have finally found what I was looking for by using the branch newforms-admin. It could be tidied up a bit, but at least it works! Hope that will help others. (Note: all this led me to some other questions, which I have posted there: http://groups.google.com/group/django-user

Popup 'add another' and custom widget in newforms-admin

2007-11-22 Thread Julien
Hi all, I have created a custom widget using the branch newforms-admin to represent (see code below): To test it, create a couple of countries, then a few cities attached to those countries, and then create a new Person. In the class PersonOptions, the line "formfield.widget.render = widgets.R

**A site of all General Information IMPORTANT for ALL**

2007-11-22 Thread superstar
**Whatever is your need Click and get the information on this site** http://indianfriendfinder.com/go/g906183-pmem http://www.geocities.com/klmklmlam/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

2nd Swiss Django User group meeting (5.Dez/19:00h/FAM)

2007-11-22 Thread OliverMarchand
To all Swiss Django users: We will hold the 2nd Swiss Django User group meeting Where: Fisch Asset Management AG, Bellerive 241, CH-8034 Zürich (next to Bahnhof Tiefenbrunnen) When: Wednesday Dec 5th., starting at 19:00h Topics: - Demo of extending the admin screen to allow list actio

Re: Django Web Hosting Service

2007-11-22 Thread Niels Sandholt Busch
> Can anybody recommend me a Django Web Hosting Service? Webfaction is really good. I'm a happy customer. \Niels --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

Re: starting point?

2007-11-22 Thread [EMAIL PROTECTED]
thanks! slicehost sounds nice too. it just is a bit expensive for what i do (even if it is cheap compared to similar offers). i find virtual private servers very interesting and i hope such webhosting will become cheaper once more extreme multicore processors (8 or 16 cores,...) come out. On Nov

Re: Error Handeling

2007-11-22 Thread Rufman
> All > other status codes are generated directly by your views by returning an > HttpResponse and setting the status code (or returning one of the > special classes in django/http/__init__.py). > What is the best way (method that follows the Django design pattern) to catch these status codes,

Re: GeoDjango Distances

2007-11-22 Thread Samuel Adam
I don't have answers for you but as you're working with geo data, you might find this library useful: http://exogen.case.edu/projects/geopy/ On Nov 22, 7:15 am, Dan <[EMAIL PROTECTED]> wrote: > Hi > > I started using the Geodjango branch, it seems to be working really > well so far, I have a few

الأن يمكنك مع ان ترسل اكثر من 150 رسالة للجوال من خلال هذا الموقع

2007-11-22 Thread [EMAIL PROTECTED]
الأن يمكنك مع ان ترسل اكثر من 150 رسالة للجوال من خلال هذا الموقع الموقع لايريد سواء ان تقوم بتسجيل حسابك البريدي حتى يتمكن من وضع الخدمة لك ويرفع اسعار اسهمة بين المواقع هذا هو http://free10.tk --~--~-~--~~~---~--~~ You received this message because you are subs

الأن يمكنك مع ان ترسل اكثر من 150 رسالة للجوال من خلال هذا الموقع

2007-11-22 Thread [EMAIL PROTECTED]
الأن يمكنك مع ان ترسل اكثر من 150 رسالة للجوال من خلال هذا الموقع الموقع لايريد سواء ان تقوم بتسجيل حسابك البريدي حتى يتمكن من وضع الخدمة لك ويرفع اسعار اسهمة بين المواقع هذا هو http://free10.tk --~--~-~--~~~---~--~~ You received this message because you are subs