Re: CI

2010-11-16 Thread Johannes Nel
Nice. Kudos to the people who did virtualenv, neat tool. On Tue, Nov 16, 2010 at 9:07 AM, Nick Lo wrote: > Hi Johannes, > > You may be interested in this project: > > https://github.com/kmmbvnr/django-hudson > > Cheers, > > Nick > > On Nov 14, 5:36 am, Johannes Nel

Re: Django Dropdown List

2010-11-16 Thread Derek
Any examples showing this approach readily available? On 16 November 2010 20:16, Simone Dalla wrote: > > > 2010/11/16 Derek > > Sean >> >> I hear what you say - but is this approach also readily available inside >> the Admin framework? > > > Absolutely

Re: loggin limits

2010-11-16 Thread Michael Sprayberry
While the state is stateless you can create a user list and then control the number of user allowed to be logged on a given time. Read through this.   http://www.djangobook.com/en/beta/chapter12/   Your best bet is to create a count that keeps track of total active session and only allows

Re: loggin limits

2010-11-16 Thread Shawn Milochik
On Tue, Nov 16, 2010 at 7:40 PM, Alex s wrote: > Hi, > > I am planning to limit the number of users logged online in my application. > > How can I do it? > > Thanks > Alex There is no "logged in" state for a user. You will have to store user IDs and the last time a

Re: loggin limits

2010-11-16 Thread RadicalEd
You can use a table with the quantity of users logged, so if the quantity is X then you don't let nobody else get loggin On Tue, Nov 16, 2010 at 7:40 PM, Alex s wrote: > Hi, > > I am planning to limit the number of users logged online in my application. > > How can I do

loggin limits

2010-11-16 Thread Alex s
Hi, I am planning to limit the number of users logged online in my application. How can I do it? Thanks Alex -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe

Re: appling fix from fixed ticket's backport

2010-11-16 Thread Russell Keith-Magee
On Wed, Nov 17, 2010 at 2:59 AM, Cek wrote: > Hello all! > > I'm quite new to Django, and this is my first post to this group, so > pls excuse and correct me if it's the wrong place or something like > that. You've got the right place. Welcome! > I am trying to use

Re: script adding FileField, no attribute chunks

2010-11-16 Thread Mitch Anderson
On Tue, Nov 16, 2010 at 3:28 AM, Tom Evans wrote: > Django doesn't want a python file or text for a django file field, it > wants a django.core.files.File. I find the easiest one to use is the > InMemoryUploadedFile. Here is a snippet I use for fetching an image > from

Re: representing a possible future object in a form?

2010-11-16 Thread Toby Champion
Preston, I had a similar problem to solve when working on a research project that collected a lot of data from companies, much of which was missing. As I understand it, your data set is effectively a sparse, two-dimensional matrix [1], and you want to be able to edit this in the browser. I'd

Re: OT: getting strange attempted gets

2010-11-16 Thread Steve Holden
On 11/16/2010 10:52 AM, Scot Hacker wrote: > On Nov 15, 8:45 pm, Steve Holden wrote: >> >> Perhaps he did, but that's no reason to believe him until we know that >> his assessment of the situation is likely to be realistic. Don't forget >> that a lot of people who post here

HttpResponse generator and HTML5 EventSource

2010-11-16 Thread msimr
I'm trying to build a simple view that send and HttpResponse(my_generator()) back to the new HTML5 EventSource object on the client. Only the first iteration of my infinite generator is passed. Afterwards, all I get is a broken pipe error. Seems like the HttpResponse connection is dropped after

appling fix from fixed ticket's backport

2010-11-16 Thread Cek
Hello all! I'm quite new to Django, and this is my first post to this group, so pls excuse and correct me if it's the wrong place or something like that. I am trying to use eav-django (http://pypi.python.org/pypi/eav- django), but it won't work because of Ticket #14471 (http://

Re: Django Dropdown List

2010-11-16 Thread Simone Dalla
2010/11/16 Derek > Sean > > I hear what you say - but is this approach also readily available inside > the Admin framework? Absolutely yes. -- Simo - Registered Linux User #395060 - Software is like sex, it is better when it is free --> Linus B. Torvalds -- You

Vobject

2010-11-16 Thread MikeKJ
Anyone got any experience of the vObject associated to vcard entry, specifically to enter a work telephone number AND a fax number as well as a web page address, I've read through the vobject stuff and vcard stuff and I am none the wiser, what I have at the moment can write the tel and can write

Guidelines for changing the default encoding of a Django site

2010-11-16 Thread George Sakkis
Hi all, sorry for reposting this from stackoverflow [1] but I'm hoping to hear from more people who may have experience with this sort of thing. Django comes with unicode support out of the box and it supports utf-8 by default. Say that you have developed, debugged and tested successfully a site

Re: Send emails form multiple accounts

2010-11-16 Thread Tom Evans
On Tue, Nov 16, 2010 at 4:26 PM, diegue...@gmail.com wrote: > my issue is more related with the bound of emails per day and etc... we have > a app for newsletter and nearby of 2000 users, so, is usefull have one > account for newsletter and another for errors and email of

Re: Send emails form multiple accounts

2010-11-16 Thread diegue...@gmail.com
On Tue, Nov 16, 2010 at 11:20, Tom Evans wrote: > On Tue, Nov 16, 2010 at 4:07 PM, diegue...@gmail.com > wrote: > > On Tue, Nov 16, 2010 at 10:52, Tom Evans > wrote: > >> > >> Yeah, don't bother, send them all from the

Re: Send emails form multiple accounts

2010-11-16 Thread Tom Evans
On Tue, Nov 16, 2010 at 4:07 PM, diegue...@gmail.com wrote: > On Tue, Nov 16, 2010 at 10:52, Tom Evans wrote: >> >> Yeah, don't bother, send them all from the same account, with >> different from addresses in the message - no-one looks at the

Re: Send emails form multiple accounts

2010-11-16 Thread diegue...@gmail.com
My mistake, Shawn was right, almost in part, in this http://docs.djangoproject.com/en/dev/topics/email/#send-mail i can call de method send_mail with a auth_user and auth_password for authentication with the smtp backend, but this doesn't have connection with get_connection method. -- Diego

Re: Send emails form multiple accounts

2010-11-16 Thread Tom Evans
On Tue, Nov 16, 2010 at 3:47 PM, diegue...@gmail.com wrote: > I already read that part of doc, but i dont find the answer, should i read > the code? Yeah, don't bother, send them all from the same account, with different from addresses in the message - no-one looks at the

Re: Send emails form multiple accounts

2010-11-16 Thread diegue...@gmail.com
I think my question wasn't explicit, in the file django/core/mail/backends/smtp.py i found the class EmailBackend, in the constructor i can send the host, user and password for the smtp connection, but in what moment y can call this constructor with the new user/password? should i make a diferent

Re: OT: getting strange attempted gets

2010-11-16 Thread Scot Hacker
On Nov 15, 8:45 pm, Steve Holden wrote: > > Perhaps he did, but that's no reason to believe him until we know that > his assessment of the situation  is likely to be realistic. Don't forget > that a lot of people who post here aren't particularly experienced and > so may not

Re: django tagging app choices

2010-11-16 Thread Scot Hacker
On Nov 15, 8:55 pm, Thomas Schreiber wrote: > check the grids on django packages:http://djangopackages.com/grids/g/tagging/ django-taggit seems to be the new hotness. Unfortunately we've been waiting for months for a conversion script to help us migrate from django-tagging to

Re: Send emails form multiple accounts

2010-11-16 Thread diegue...@gmail.com
I already read that part of doc, but i dont find the answer, should i read the code? -- Diego Andrés Sanabria Ingeniería de Sistemas Universidad Distrital about:me http://www.google.com/profiles/diegueus9 cel 3015290609 On Tue, Nov 16, 2010 at 10:44, Shawn Milochik wrote:

Re: Send emails form multiple accounts

2010-11-16 Thread Shawn Milochik
On Tue, Nov 16, 2010 at 10:39 AM, diegue...@gmail.com wrote: > I'm using django 1.2 but i dont know how connections works exactly, i wish > use only one backend, SMTP, but how i tell the connection, the new user for > authentication for smtp? > Read the fine Django docs at

Re: Send emails form multiple accounts

2010-11-16 Thread diegue...@gmail.com
I'm using django 1.2 but i dont know how connections works exactly, i wish use only one backend, SMTP, but how i tell the connection, the new user for authentication for smtp? Diego Andrés Sanabria Ingeniería de Sistemas Universidad Distrital about:me http://www.google.com/profiles/diegueus9 cel

RE: Django mod_python under apache

2010-11-16 Thread Sells, Fred
I find that flushing stdout sometimes crashes the dev server -- weird. Anyway, if you make a minor mod to any file and save changes it flushes stdout. But the guys who suggested python logging are right on for doing it the "right way" -Original Message- From:

Re: Send emails form multiple accounts

2010-11-16 Thread Shawn Milochik
What version of Django are you using? Also, you can create a customized Connection() for each piece of mail you send: http://docs.djangoproject.com/en/dev/topics/email/ Shawn -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

ValueError: Empty module name

2010-11-16 Thread ErritG
Hi everybody, While taking the tutorial 'Writing your first Django app, part 1' if stumbled on the command 'python manage.py sql polls' Running this command gave the following output (if only listed the last part) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/

Send emails form multiple accounts

2010-11-16 Thread diegue...@gmail.com
Hi Guys, We have many projects with django and in one project we need send 3 kinds of email: - newsletter - contact email - errors now, my question is how i can use multiple accounts, multiple user/password from gmail for send this mails, i mean, in the settings i have this:

Re: Django Dropdown List

2010-11-16 Thread derek
" you'll have to have all the states/provinces as 'choices' in the ChoiceField in the form, otherwise the form won't validate." Yup, this is a "real" gotcha. IMO, its not really true filtering if you take this approach, as the initial form will still load the X million items, even though the

Re: -bash: django-admin.py: command not found

2010-11-16 Thread Nuño Iglesias
El Tue, 16 Nov 2010 00:43:21 -0800 (PST) ErritG escribió: > Hello everybody, > > Even though many posts on the internet address this issue I haven't > been able to tackle it using version Python 2.7. Any help is welcom > for this new comer! > > Thanks in advance for

Re: -bash: django-admin.py: command not found

2010-11-16 Thread Matthias Runge
Make sure wether django is properly installed on your system. I think your problem lies there. Matthias "ErritG" schrieb: >Hello everybody, > >Even though many posts on the internet address this issue I haven't >been able to tackle it using version Python 2.7.

Re: Django NameError in first web app

2010-11-16 Thread Recep KIRMIZI
You should uncomment admin from the top of the urls.py it should be imported from django.contrib import admin and also admin.autodiscover() Sal, 2010-11-16 tarihinde 03:49 -0800 saatinde, frank yazdı: > hi all, > > i just doing Django..tried the first example in Django book...i > encountered

Django NameError in first web app

2010-11-16 Thread frank
hi all, i just doing Django..tried the first example in Django book...i encountered problem at admin page. it says that admin is not defined. i followed each step in tutorial and i am able to run django server also. pls help me to solve it. i am adding error output here. Environment: Request

Re: CI

2010-11-16 Thread Nick Lo
Hi Johannes, You may be interested in this project: https://github.com/kmmbvnr/django-hudson Cheers, Nick On Nov 14, 5:36 am, Johannes Nel wrote: > answering my own questions here: > > By the looks of things I will stick with hudson for now, I found some > information

Re: Django, Eclipse, Autocomplete

2010-11-16 Thread Recep KIRMIZI
use vim and feel happy :D here are the django template and model templates. https://github.com/msanders/snipmate.vim Pzt, 2010-11-15 tarihinde 23:44 -0800 saatinde, xpanta yazdı: > Hi, > > I am using eclipse Galileo (Build id: 20100218-1602) and PyDev to > build a Django project. > >

Re: -bash: django-admin.py: command not found

2010-11-16 Thread Robbington
Thats ok, I can appriciate how frustrating it can be trying to learn of your own back from the beginning as a lot of the advice can seem to be in a foreign language. But if you dont understand you need to state that, as often if you double post people will just ignore you, noone gets paid to

como instalar bibliotecas ReportLab dentro do projeto django?

2010-11-16 Thread Josueh Machado
ola a todos, estou desenvolvendo um sistema web com django e estou com dificuldades da geração de relatórios... na hospedagem eles nao tem o ReportLab e Pisa instalados, entao, eu queria instalar essas biblitecas dentro do proprio projeto, tem como? obrigado -- You received this message because

Re: Django, Eclipse, Autocomplete

2010-11-16 Thread Simone Dalla
2010/11/16 xpanta > Thanks a lot. > > it seems to work, now :-) > > I don't know why, but I also had to remove PYTHONPATH environment > variable (my computer -> properties -> etc...) in order for auto- > config to configure python-django properly... > > Thanks again for your

Re: -bash: django-admin.py: command not found

2010-11-16 Thread ErritG
Let me start of with apologising for a double post and thanking you for your reference. I think my problem lays with finding the right directory. From the offered solution (http://code.djangoproject.com/wiki/ InstallationPitfalls) I don't now how to determine the right 'Link /bin/django-admin.py

Re: script adding FileField, no attribute chunks

2010-11-16 Thread Tom Evans
On Tue, Nov 16, 2010 at 12:24 AM, Mitch Anderson wrote: > I'm having a problem with a command script that I want to create a > object that has a FileField as part of the model. > > My Model Looks like this: > > class Files(models.Model): >    STATUS = ( >                

Re: Set Language in the Admin

2010-11-16 Thread Tom Evans
On Tue, Nov 16, 2010 at 9:58 AM, Federico Capoano wrote: > This will affect the frontend too? > Yes, I'd replace it with a customized version of the LocaleMiddleware, something like this ought to do the trick: from django.middleware.locale import LocaleMiddleware from

Re: Nested Categories in Admin

2010-11-16 Thread Federico Capoano
Any suggestion? On Nov 14, 6:15 pm, Federico Capoano wrote: > Hi all, > > I would like to find a way to get categories and subcategories > displayed in the admin, in the form of a multiple select. > > Like: > > parent > child1 > child2 > parent2 > child3 >

Re: Set Language in the Admin

2010-11-16 Thread Federico Capoano
This will affect the frontend too? On Nov 16, 4:57 am, someLiang wrote: > just make it seems like this: > > MIDDLEWARE_CLASSES = ( >     'django.middleware.common.CommonMiddleware', >     'django.contrib.sessions.middleware.SessionMiddleware', >    

Re: Automatically assume "models." prefix in models.py

2010-11-16 Thread bruno desthuilliers
On Nov 15, 3:57 pm, James wrote: > On Mon, Nov 15, 2010 at 7:48 AM, bruno desthuilliers > wrote: > > On a more general level, I very > > strongly suggest you spend some time learning Python > > > Good point. I've actually been working through

Re: -bash: django-admin.py: command not found

2010-11-16 Thread Robbington
I dont think you are going to get a great deal of help if you just repeat your posts, http://groups.google.com/group/django-users/browse_thread/thread/bab395cd78eca494?hl=en# There was some sound advice from experienced users of Django and Linux. There are also already some great tutorials on

Re: Django, Eclipse, Autocomplete

2010-11-16 Thread xpanta
Thanks a lot. it seems to work, now :-) I don't know why, but I also had to remove PYTHONPATH environment variable (my computer -> properties -> etc...) in order for auto- config to configure python-django properly... Thanks again for your time, Chris On Nov 16, 10:33 am, Simone Dalla

-bash: django-admin.py: command not found

2010-11-16 Thread ErritG
Hello everybody, Even though many posts on the internet address this issue I haven't been able to tackle it using version Python 2.7. Any help is welcom for this new comer! Thanks in advance for kind coop. Errit. -- You received this message because you are subscribed to the Google Groups

Re: Django, Eclipse, Autocomplete

2010-11-16 Thread Simone Dalla
2010/11/16 xpanta > Hi, > > I am using eclipse Galileo (Build id: 20100218-1602) and PyDev to > build a Django project. > > Autocompletion works fine for python language but not for django. For > example in models.py I cannot get the > field = models.CharField(max_length=100)