Re: Looking for a developer

2011-03-04 Thread Kenneth Gonsalves
On Fri, 2011-03-04 at 13:10 +, delegb...@dudupay.com wrote: > Hi, my firm would love to have a look at it. If we get the RFP, you > sure would get a feedback from us. could you keep such posts offlist please -- regards KG http://lawgon.livejournal.com Coimbatore LUG rox

Re: current recommendations for using email as username

2011-03-04 Thread creecode
It would be grand if the max_length was upped. On Mar 4, 7:51 pm, Shawn Milochik wrote: > > Email addresses have been allowed since version 1.2 < > >http://docs.djangoproject.com/en/1.2/topics/auth/#api-reference>. > > Have you found place in 1.2.x where an email address

Re: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 0: ordinal not in range(128)

2011-03-04 Thread Karen Tracey
On Thu, Mar 3, 2011 at 8:24 AM, Karen Tracey wrote: > A real fix I believe would need to be made to the Python library code to > ensure that it doesn't die if the windows registry contains non-ASCII data. > In fact there is a bug open in the Python bug tracker for this:

Re: Syncing with an MS Exchange server...

2011-03-04 Thread Sam Lai
On 4 March 2011 23:23, illuminated wrote: > Hello everyone, > > Part of an application I'm developing at the moment is messaging and > one of the features should be ability to access an MS Exchange user > account (not through IMAP) and get his emails, contacts and

Re: Unable to process my form

2011-03-04 Thread Silvio
What does the error say now? Post the traceback. On Mar 4, 2:14 pm, vijay wrote: > Hi Silvio, >              Still i am getting TemplateDoesNotFound error.Please suggest me > > Regards > Vijay > > > > > > > > On Thu, Mar 3, 2011 at 6:41 PM, Silvio

Re: current recommendations for using email as username

2011-03-04 Thread Shawn Milochik
> > Email addresses have been allowed since version 1.2 < > http://docs.djangoproject.com/en/1.2/topics/auth/#api-reference >. > Have you found place in 1.2.x where an email address doesn't work? > > Toodle-lo.. > creecode The problem here is that the username is still limited

Re: current recommendations for using email as username

2011-03-04 Thread creecode
Hello Brian, On Mar 4, 1:29 pm, Brian Craft wrote: > I've found any number of threads on using email as username in django, > but none that are both current and conclusive. "Just do ", followed > by "But that breaks [the forms, the templates, the auth site, the >

Weird behaviour in Django logging (Django 1.3 RC)

2011-03-04 Thread Edwin
I'm getting a strange behaviour when setting up logging. Here's my logging configuration: LOGGING = { 'version': 1, 'disable_existing_loggers': True, 'formatters': { 'admin_configuration': { 'format': '%(asctime)s %(levelname)s %(category)s % (sub_category)s

Re: Form/view for ManyToMany relationship

2011-03-04 Thread kgardenia42
On Fri, Mar 4, 2011 at 1:08 PM, werefr0g wrote: > On Thu, Mar 3, 2011 at 11:50 AM, werefr0g wrote: > > Hello, > > Sorry if I misunderstand, but what is wrong about using a ModelForm on your > Film bounded to the film instance? > > My bad... how did I missed

Re: current recommendations for using email as username

2011-03-04 Thread Brian Craft
On Fri, Mar 4, 2011 at 1:34 PM, Shawn Milochik wrote: > What's wrong with writing your own auth backend? It's two piddly functions: > > http://dpaste.com/hold/473373/ > I think this has already been answered, in the comments here: http://djangosnippets.org/snippets/74/ and

Re: current recommendations for using email as username

2011-03-04 Thread Shawn Milochik
What's wrong with writing your own auth backend? It's two piddly functions: http://dpaste.com/hold/473373/ Shawn -- 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

current recommendations for using email as username

2011-03-04 Thread Brian Craft
I've found any number of threads on using email as username in django, but none that are both current and conclusive. "Just do ", followed by "But that breaks [the forms, the templates, the auth site, the registration, the db schema]" etc., where is something like "use email in the User username

Re: Form/view for ManyToMany relationship

2011-03-04 Thread werefr0g
sorry, I failed to pass the request to the view's function,.. Le 04/03/2011 22:08, werefr0g a écrit : On Thu, Mar 3, 2011 at 11:50 AM, werefr0g wrote: Hello, Sorry if I misunderstand, but what is wrong about using a ModelForm on your Film bounded to the film instance? My

Re: Form/view for ManyToMany relationship

2011-03-04 Thread werefr0g
On Thu, Mar 3, 2011 at 11:50 AM, werefr0g wrote: Hello, Sorry if I misunderstand, but what is wrong about using a ModelForm on your Film bounded to the film instance? My bad... how did I missed the intermediary model involved in the ManyToMany relashionship. Sorry. When

Re: Ordering of querysets

2011-03-04 Thread Michael Radziej
On Fri, 4 Mar 2011 21:40:36 +0100, Sidney Cadot wrote: Hi Sidney, > It is possible by using a nested query, e.g. > > SELECT * FROM (SELECT * FROM some_table ORDER BY timestamp DESC LIMIT 10) > ORDER BY timestamp ASC; Nice, but it doesn't make sense. It makes everything harder

Re: Ordering of querysets

2011-03-04 Thread Sidney Cadot
Hi Tom, > Unless I'm being dense, you cannot represent this as a single SQL > query, so logically you cannot represent this as a QuerySet. It is possible by using a nested query, e.g. SELECT * FROM (SELECT * FROM some_table ORDER BY timestamp DESC LIMIT 10) ORDER BY timestamp ASC; But I

Re: Django 1.2.5 postgres autocommit and contenttype sites tests failures

2011-03-04 Thread Tomasz Zieliński
On 4 Mar, 14:22, David De La Harpe Golden wrote: > On 04/03/11 10:01, Tomasz Zieliński wrote: > > > On 2 Mar, 00:10, Jason Culverhouse wrote: > >> Hi, > >> It seems that the contenttype framework and the sites contribs > >> conflict with

Re: Unable to process my form

2011-03-04 Thread vijay
Hi Silvio, Still i am getting TemplateDoesNotFound error.Please suggest me Regards Vijay On Thu, Mar 3, 2011 at 6:41 PM, Silvio wrote: > You don't want to pass an absolute path to render_to_response. You > want to pass a relative path. Right now you're

Training at Hyderabd

2011-03-04 Thread Vijay
Hi All, If anybody belongs to Hyderabad.Can you please provide me training on Dajngo framework.Or atleast guide me. Regards Vijay -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: adding model_dict['admin'] = model_admin is good idea?

2011-03-04 Thread hdknr
Thanks Bill You're right. I'll try in the other way with using template tags. Because the only useful information is "admin_url" like '/myapp/ mymodel', the tag will find tempate like 'templates/admin/myapp/mymodel/ menu.html' and return render_to_string() of that. --- hideki On 3月5日, 午前2:07,

Need a sample example code for posgresql oriented django project

2011-03-04 Thread gmsfirst gmsfirst
I need a sample example code for posgresql oriented django project It will do only insert, update, delete. I installed postgresql on windows. What would be the user,password for postgresql in settings.py? -- You received this message because you are subscribed to the Google Groups "Django

Re: AW: parameter, but not in the URL

2011-03-04 Thread Bill Freeman
You might also pass the necessary parameters in a POST type form, where the parameters don't appear in the URL, and if you're really security conscious you can require that the POST come over https. Bill On Fri, Mar 4, 2011 at 6:00 AM, Szabo, Patrick (LNG-VIE)

Re: adding model_dict['admin'] = model_admin is good idea?

2011-03-04 Thread Bill Freeman
On Fri, Mar 4, 2011 at 1:51 AM, hdknr wrote: > Hello, > > I'm customizing admin UI to add extra menus but I found it is not > easy. So thinking of adding "admin" to model_dict in index() and > app_index() ( source:django/trunk/django/contrib/admin/sites.py ) to > refere to

Re: newbie going through basic tutorial

2011-03-04 Thread Alex Hall
On 3/4/11, Karen Tracey wrote: > On Wed, Mar 2, 2011 at 4:43 PM, Alex Hall wrote: > >> Well, looks like things are suddenly working. I started over, and >> changed two things: I removed the path from the database file name and >> I gave it an extension of

Re: Ordering of querysets

2011-03-04 Thread Tom Evans
On Fri, Mar 4, 2011 at 4:06 PM, reddish wrote: > Hi, > > I have trouble getting a QuerySet to do what I want. I need to select > the last 10 items of a certain model (ordered by timestamp; so the > "most recent" 10 items), and when I iterate over them during template >

Ordering of querysets

2011-03-04 Thread reddish
Hi, I have trouble getting a QuerySet to do what I want. I need to select the last 10 items of a certain model (ordered by timestamp; so the "most recent" 10 items), and when I iterate over them during template processing I want the earliest item (with the oldest timestamp) to come first. I've

Re: curious about model classes

2011-03-04 Thread kost BebiX
On Thursday, March 3, 2011 5:33:56 PM UTC+2, bruno desthuilliers wrote: > > On 3 mar, 15:16, kost BebiX wrote: > > Yes, that's more a Python problem, not specifically django. > > > > You would normally do: > > > > class User(models.Model): > > def __init__(self): > >

Re: Using markdown within admin interface

2011-03-04 Thread Mike Ramirez
On Wednesday, February 23, 2011 06:36:46 am Jonas Geiregat wrote: > Hello, > > I love markdown for writing content on websites. I use it almost all the > time when I'm working with django. > > The only issue I hate is that the default django admin interface gives you > a standard textfield.

Re: Looking for a developer

2011-03-04 Thread Huy Ton That
I represent a two man designer/coder team which may be interested. RFP available for review? Curious as to what the scope is. - Huy On Fri, Mar 4, 2011 at 8:05 AM, Colleen wrote: > I'm representing an international company that needs a website > developed fast.

How to know when an admin form is completly saved to DB?

2011-03-04 Thread Marc Aymerich
Hi, I have an admin class with some arbitrary number of inline forms. I want to make some stuff when all the inlines are successfully saved. How can I do that? admin executes something else after save_model ?? Thanks!! -- Marc -- You received this message because you are subscribed to the

Re: Configuring Django-Sentry to send error mails

2011-03-04 Thread Tomasz Zieliński
On 4 Mar, 05:49, Ajay wrote: > am using django-sentry for logging errors. I also want to enable > throttled error mails to be sent to admins whenever an error occurs. > But I can not get it working. > > a) Normal django error mailing is working. b) but on removing ADMINS >

Re: Looking for a developer

2011-03-04 Thread Barnacle
Hi there - I am a freelance developer and would be delighted to look at the RFP and give you a quote. If I can be of further assistance please email me at b...@gtmuk.plus.com if you prefer not to use this group fro conact. May I ask what business sector the is for? Regards, Bill Tudor (UK) On

Re: Django 1.2.5 postgres autocommit and contenttype sites tests failures

2011-03-04 Thread David De La Harpe Golden
On 04/03/11 10:01, Tomasz Zieliński wrote: > On 2 Mar, 00:10, Jason Culverhouse wrote: >> Hi, >> It seems that the contenttype framework and the sites contribs >> conflict with using the autocommit:True database option. > > Do you really need that autocommit? Django has

Re: Where does admin.py go?

2011-03-04 Thread delegbede
This should further confirm to you there is always a need to put as many comments as you can in your application and codes as a matter of principle. Kind regards. Sent from my BlackBerry wireless device from MTN -Original Message- From: ALJ Sender:

Re: Looking for a developer

2011-03-04 Thread delegbede
Hi, my firm would love to have a look at it. If we get the RFP, you sure would get a feedback from us. Kind regards. Sent from my BlackBerry wireless device from MTN -Original Message- From: Colleen Sender: django-users@googlegroups.com Date: Fri, 4 Mar 2011

Looking for a developer

2011-03-04 Thread Colleen
I'm representing an international company that needs a website developed fast. (15weeks). We have the RFP to send out (today - March 4th) and are looking for interested developers. No parties will be considered after today. Sorry. Tight turnaround. -- You received this message because you are

Re: newbie going through basic tutorial

2011-03-04 Thread Karen Tracey
On Wed, Mar 2, 2011 at 4:43 PM, Alex Hall wrote: > Well, looks like things are suddenly working. I started over, and > changed two things: I removed the path from the database file name and > I gave it an extension of .db. The file appeared in the same place as > before, so my

permission module for Django views

2011-03-04 Thread Phui Hock
Hi, I have just released an experimental django-pobject, an expressive and concise permission module for django views at goo.gl/L6h7D. It is inspired by Q object of django.db. It supports bitwise operators AND , OR , XOR and invert ' ~ ' for complex permission construction. For example, you can do

Syncing with an MS Exchange server...

2011-03-04 Thread illuminated
Hello everyone, Part of an application I'm developing at the moment is messaging and one of the features should be ability to access an MS Exchange user account (not through IMAP) and get his emails, contacts and calendars (the code is not hosted on same server as Exchange; not even on a Windows

Re: Server HTTP Client

2011-03-04 Thread Rogério Luz
Hi all, Take a look at Twisted... http://twistedmatrix.com/trac/wiki/TwistedProject Regards, Rogerio Luz On Thu, Mar 3, 2011 at 9:02 PM, Julian wrote: > Hmm, yeah I heard about that. I was hoping to get something in Python. So > I'm can stay with one technology and language.

Configuring Django-Sentry to send error mails

2011-03-04 Thread Ajay
am using django-sentry for logging errors. I also want to enable throttled error mails to be sent to admins whenever an error occurs. But I can not get it working. a) Normal django error mailing is working. b) but on removing ADMINS and adding SENTRY_ADMINS(like below) it stops working: DEBUG

HTML size confusion.

2011-03-04 Thread Rob
Hi there, In my ModelForm I have a fields like this: argument= models.CharField (max_length=50, blank=True) media = models.CharField (max_length=50, choices = getChoices ('media')) For the 'media' field, the max_length results in a HTML select such as:

Re: Where does admin.py go?

2011-03-04 Thread ALJ
OK. Thanks. -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit

Re: logging in a user to more than one site

2011-03-04 Thread Benedict Verheyen
On 4/03/2011 10:05, Benedict Verheyen wrote: > Wow, what a pain this is. > I succeeded in making it work but I have to do some more testing to be sure > my solution is ok. > > I had to make a User for site B as well and then, the user is logged in, in > site A and B. > Off course, having the

AW: AW: parameter, but not in the URL

2011-03-04 Thread Szabo, Patrick (LNG-VIE)
Thats a good idea ! Thx . . . . . . . . . . . . . . . . . . . . . . . . . . Patrick Szabo XSLT Developer LexisNexis Marxergasse 25, 1030 Wien mailto:patrick.sz...@lexisnexis.at Tel.: +43 (1) 534 52 - 1573 Fax: +43 (1) 534 52 - 146 -Ursprüngliche Nachricht- Von:

Re: AW: parameter, but not in the URL

2011-03-04 Thread Shamail Tayyab
On 04/03/11 4:08 PM, Eric Abrahamsen wrote: On Fri, Mar 04 2011, Szabo, Patrick (LNG-VIE) wrote: Hi, Thanks for you fast response ! I've already made sure that users can only edit or delete objects that they've created but i thought it might be even better to hide those information. If you

Re: Where does admin.py go?

2011-03-04 Thread Daniel Roseman
On Friday, March 4, 2011 10:34:27 AM UTC, ALJ wrote: > > Where does "admin.py" actually go? Do you need one for each of your > applications or just one in the root of the project. Or does it go in > an "admin" directory in your project? > > (Sorry, for the stupid question. I'm returning to an

Re: AW: parameter, but not in the URL

2011-03-04 Thread Eric Abrahamsen
On Fri, Mar 04 2011, Szabo, Patrick (LNG-VIE) wrote: > Hi, > > Thanks for you fast response ! > > I've already made sure that users can only edit or delete objects that > they've created but i thought it might be even better to hide those > information. If you put the delete link in a form

Where does admin.py go?

2011-03-04 Thread ALJ
Where does "admin.py" actually go? Do you need one for each of your applications or just one in the root of the project. Or does it go in an "admin" directory in your project? (Sorry, for the stupid question. I'm returning to an old project and restructuring it. In the process I have, as you

Re: Need help with this basic query (annotate vs aggregate)

2011-03-04 Thread Tomasz Zieliński
On 4 Mar, 01:19, Steven Sacks wrote: > Here is my model: > > class PlaylistTag(models.Model): >     playlist = models.ForeignKey(Playlist) >     tag = models.CharField(max_length=128) >     tag_count = models.PositiveIntegerField(default=1) > > The way this model works is

Re: Django 1.2.5 postgres autocommit and contenttype sites tests failures

2011-03-04 Thread Tomasz Zieliński
On 2 Mar, 00:10, Jason Culverhouse wrote: > Hi, > It seems that the contenttype framework and the sites contribs > conflict with using the autocommit:True database option.   Do you really need that autocommit? Django has its own concept of autocommit, which seems to just

Re: Override default django Registration email

2011-03-04 Thread Tomasz Zieliński
On 3 Mar, 14:23, bruno desthuilliers wrote: > On 3 mar, 13:39, Kenneth Gonsalves wrote: > > > On Thu, 2011-03-03 at 00:36 -0800, pols wrote: > > > Anyone knows how to override djangos default registration email.I > > > need to alter it to

AW: parameter, but not in the URL

2011-03-04 Thread Szabo, Patrick (LNG-VIE)
Hi, Thanks for you fast response ! I've already made sure that users can only edit or delete objects that they've created but i thought it might be even better to hide those information. Kind regards . . . . . . . . . . . . . . . . . . . . . . . . . . Patrick Szabo XSLT Developer

Re: parameter, but not in the URL

2011-03-04 Thread Eric Abrahamsen
On Fri, Mar 04 2011, Szabo, Patrick (LNG-VIE) wrote: > 127.0.0.1:800/93/1 > > > > This would delete an object with the id 93. > > This is very unsecure and once the user notices how this works he > could delete any object he wants. > > > > How can i make this more secure ?! There's pretty

Re: ANN: Django 1.3 release candidate available

2011-03-04 Thread Thomas Guettler
Hi, all of my 211 unittests pass, no single failure. Thank you for this high quality framework. Thomas Güttler On 04.03.2011 07:00, James Bennett wrote: > Tonight we're proud to announce the first release candidate for Django > 1.3; if all goes well, the final release will happen in about a

parameter, but not in the URL

2011-03-04 Thread Szabo, Patrick (LNG-VIE)
Hi, Currently i pass all my parameterst hat a views needs over the URL. Eg. 127.0.0.1:800/93/1 This would delete an object with the id 93. This is very unsecure and once the user notices how this works he could delete any object he wants. How can i make this more secure ?!

Re: logging in a user to more than one site

2011-03-04 Thread Benedict Verheyen
On 3/03/2011 15:15, Benedict Verheyen wrote: > Hi, > > i have a problem with logging in a user to more than one site. > SIte A and B are on the same subdomain. > > When a user visits site B, he is redirected to site A. > Site A shows a login screen, checks the credentials with LDAP. > After a