Re: Multiple stackinline all sharing relation need assistance

2012-12-05 Thread Chris Cogdon
When you say "recommendations inline lists work history from all users" do you mean its showing up as multiple fields, or do you mean the selection box that gives you the option of adding a recommendation from the list of possible recommendations ? On Wednesday, December 5, 2012 8:06:55 PM UTC

Multiple stackinline all sharing relation need assistance

2012-12-05 Thread Detectedstealth
Hi, I have a custom user who has work experience, and for each work experience there can be multiple recommendations for the work experience. My models: CustomUser class WorkExperience(models.Model): user = models.ForeignKey(CustomUser, verbose_name=_('user profile')) company = models

Re: Help with registration backend

2012-12-05 Thread Chris Cogdon
In the end all you need to do is create a User object and possibly set a password on it. That's it. Create your own form for it and go wild. I strongly suggest wrapping the view in a @has_perm decorator so that only people who are allowed to create users (or some other permission) can get to th

Re: pyodbc utf-8

2012-12-05 Thread Chris Cogdon
You're totally correct. This is why I said "but please find out what pyodbc uses" :) sqlite3 uses %s On Wednesday, December 5, 2012 3:46:01 PM UTC-8, Dennis Lee Bieber wrote: > > On Wed, 5 Dec 2012 13:13:31 -0800 (PST), Chris Cogdon > > > > declaimed the following in gmane.comp.python.django.u

Re: Help with registration backend

2012-12-05 Thread Johnny Pyhtonic
Thanks for the idea. I followed up on this found that the django-registration backend is really only ment for anonymous account creation - it will log an athenticated user out upon reaching the page. The deal seems to be that in order the create an account, the user must not already have an acc

Re: pyodbc utf-8

2012-12-05 Thread Chris Cogdon
Perhaps you can help the django team figure out why the ORM doesn't work with MSSQL? I understand that its not technically supported, but there must be SOME people working on it. If you're going straight to pyodbc, then this is likeyl to be a python/pyodbc issue, and not django. So... you're no

Re: HELP!!! Admin Site app name rename

2012-12-05 Thread Chris Cogdon
Most objects have a way of giving them a "label" attribute, or even a "short_description" attribute. So, if you didn't want to go to the trouble of internationalizing (i17ning?) your application, just use those idioms to create visible names for your custom-created models and forms, etc. To cha

Re: django + fastcgi + lighttpd outlog and errlog not working

2012-12-05 Thread Chris Cogdon
Another way would be to set up a receiver for a signal, emit a message via the logging module, configure LOGGING to log those messages to stderr. Question for others: Is there a good document on what signals django sends? Since I have it available, here's how you would adjust the LOGGING setting

Re: django synchronize database over REST

2012-12-05 Thread Chris Cogdon
If you're not using synchronous replication (ie, something like a two-phase commit, or something very close to it), then it is impossible to come up with a generic solution for replication. you might be able to "come close", but how to deal with desync is application specific. Ie, say you had t

django synchronize database over REST

2012-12-05 Thread psychok7
So I have this 2 applications connected with a REST API (json messages). One written in Django and the other in Php. I have an exact database replica on both sides (using mysql). My question is, how can i keep this 2 applications databases synchronized? In other words, when i press "submit" o

Re: pyodbc utf-8

2012-12-05 Thread Nebros
It was not possible to find a way by myself. thats maybe cause im new in python / django. i know there is one who can helps... it will be very friendly for a usable response. :) Am Dienstag, 27. November 2012 09:49:37 UTC+1 schrieb Nebros: > Hello community > > i have a next problem. i hav

Re: Obtaining related model name during form creation

2012-12-05 Thread Axel Rau
Am 05.12.2012 um 11:23 schrieb Axel Rau: > In __init__ in my form class I have: > > for name, field in self.fields.items(): > model_field = self.instance._meta.get_field_by_name(name)[0] > if isinstance(field, forms.models.ModelChoiceField):# foreign key > x = geta

Re: GAE+Django+Threaded comments

2012-12-05 Thread Javier Guerra Giraldez
On Wed, Dec 5, 2012 at 3:04 AM, JG wrote: > I found a lot of examples on the internet, but the thing is - I am also > working with Google App Engine. (disclaimer, i haven't developed on GAE, I've just read the specs a few times) yes, that's a problem. In your specific example, the tutorial you

Re: django + fastcgi + lighttpd outlog and errlog not working

2012-12-05 Thread Tom Evans
On Wed, Dec 5, 2012 at 6:44 AM, Gontran Magnat wrote: > So you mean there is no way to get this kind of log with fastcgi mode: > There is always a way, it just doesn't do it by default. If you require this output even in fastcgi mode than you can create a trivial middleware to print this output t

HELP!!! Admin Site app name rename

2012-12-05 Thread Pedro J. Aramburu
I hope someone could help me. My main language is Spanish but when I write code I like it to be en english. Being that way it will be easier to open source something in the future. The main problem is the app name in the Admin Site. For example, I'm writing a kind of eCommerce site without the

GAE+Django+Threaded comments

2012-12-05 Thread JG
Dear Folks, I am developing a blog. Every post should have a threaded comment system. I found a lot of examples on the internet, but the thing is - I am also working with Google App Engine. All example I found are not specified for GAE, but then I try to implement them I get errors( for example

Re: django + fastcgi + lighttpd outlog and errlog not working

2012-12-05 Thread Gontran Magnat
So you mean there is no way to get this kind of log with fastcgi mode: Validating models... 0 errors found Django version 1.4.2, using settings 'finderauto_dj.settings' Development server is running at http://127.0.0.1:8080/ Quit the server with CONTROL-C. [04/Dec/2012 23:10:47] "GET /admin/ HTTP

Obtaining related model name during form creation

2012-12-05 Thread Axel Rau
In __init__ in my form class I have: for name, field in self.fields.items(): model_field = self.instance._meta.get_field_by_name(name)[0] if isinstance(field, forms.models.ModelChoiceField):# foreign key x = getattr(self.instance, name, '')# repres