Re: User names not support Unicode in 1.5

2013-10-30 Thread Alex Strickland
On 2013-10-30 04:49 PM, tim wrote: See https://code.djangoproject.com/ticket/20694 for a discussion of this. In summary: "[Allowing unicode in user names] would be considered a regression for anyone who relies on Django to validate that usernames are ASCII-only. A custom user model (introduced

Re: Django Outbox Released

2013-10-30 Thread Nikolas Stevenson-Molnar
That's a great idea! I've had the same problem myself. I usually just use the console email backend but that's less useful with HTML emails. I will definitely check this out. Thanks, _Nik On 10/30/2013 8:36 PM, Paulo Gabriel Poiati wrote: > Hi guys, > > If you want a better way to debug and evalu

Re: Speed Improvements: Properties, Database Denormalization, Caching, Connection Pooling, etc.

2013-10-30 Thread Mike Dewhirst
On 31/10/2013 3:09pm, Carlos D. wrote: Note: one other thing is that the legacy DB we're using has a character varying (PostGres) type as its primary key, even though it's really just an integer that should probably be auto incrementing serial type. If you install South you should be able to ad

Re: Speed Improvements: Properties, Database Denormalization, Caching, Connection Pooling, etc.

2013-10-30 Thread Carlos D.
Note: one other thing is that the legacy DB we're using has a character varying (PostGres) type as its primary key, even though it's really just an integer that should probably be auto incrementing serial type. We're not adding anything new to this DB so the auto behavior isn't a big deal. It

Django Outbox Released

2013-10-30 Thread Paulo Gabriel Poiati
Hi guys, If you want a better way to debug and evaluate emails while coding your application, please, take a look at http://blog.paulopoiati.com/2013/10/31/django-outbox-released/. Any feedback will be appreciated. =) []'s Paulo Poiati blog.paulopoiati.com -- You received this message becaus

Speed Improvements: Properties, Database Denormalization, Caching, Connection Pooling, etc.

2013-10-30 Thread Carlos D.
So, first thing: I come from a C++ background and I've been building my first site with Django. As I normally try to do in C++, I don't want to store any more information than I have to since that can lead to big problems with data consistency. In C++, I do this with private members / methods

django - differentiate users in the template

2013-10-30 Thread Robin Lery
So, I am trying to create a user page, and its url will be associated with its username, something like this http://domain.com/accounts/profile/robin/ And in that page, I want all the photo's uploaded by that user (here 'robin') to be displayed in the template. And another thing is, in the menu b

Re: User names not support Unicode in 1.5

2013-10-30 Thread Mike Dewhirst
On 31/10/2013 1:49am, tim wrote: See https://code.djangoproject.com/ticket/20694 for a discussion of this. In summary: "[Allowing unicode in user names] would be considered a regression for anyone who relies on Django to validate that usernames are ASCII-only. A custom user model (introduced in

New to django,need help! just trying to retrieve values from a template to a view.py (ie user may input text, make choice selection, select a radio button value)

2013-10-30 Thread pete
Hi New to django,need help! just trying to retrieve values from a template to a view.py (ie user may input text, make choice selection, select a radio button value) like to know the poll list section, market selection, coupon code, and discount text, and poll choice selection from radio button

Re: Freelance Django Developer

2013-10-30 Thread Team UK
This project is suitable for remote developers. * * *The Project* We have been developing a website that sales printing services and the project is now in the final stages. We need front end developer with JS backbone and HTML5, Bootstrap experience to help polish up the front end (user end) an

Re: Freelance Django Developer

2013-10-30 Thread Tim Chase
On 2013-10-30 11:37, Team UK wrote: > We are looking for a freelance Django developer to join our team. > Please email us if you are interested to know more. You might get more interest if you provided some details about *where* you're looking to hire geographically, or if you'd accept remote work

Thanks to all in this community who helped me create this django app controlled art!

2013-10-30 Thread 7equivalents
It's just a raspberry Pi Logo but it is just the beginning. There is a user interface created with html, css, and javascript libraries. When a user changes colors or pushes a button, the in

Re: 1.5.4 /static/ serving 500 error

2013-10-30 Thread Thomas Murphy
Hi Mike, Thank you for the answer. You're right about the directory structuring, and quoting the BDFL's "Better Explicit than Implicit". For future reference(and list archive), the solution is this: Remove (STATIC_ROOT,) from this line: STATICFILES_DIRS = (STATIC_ROOT,) The root directory for

Freelance Django Developer

2013-10-30 Thread Team UK
We are looking for a freelance Django developer to join our team. Please email us if you are interested to know more. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email

simple translation not working

2013-10-30 Thread LiteWait
Django 1.5 I am just testing that translation is working. I generated /locale/es/LC_MESSAGES/django.po|mo I added LOCALE_PATHS as 'locale' I set my LANGUAGE_CODE = "es-ES" Admin site is in Spanish, however my translations are not working. What am I missing here? Thanks. -- You received

Re: Dynamic queries

2013-10-30 Thread Domagoj Kovač
Thanks Tom, I deleted my question because i find an answer in the meantime. I am having a problem with ForeignKey values, it would be cool to search trough them. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group a

Dynamic query with Foreign Key

2013-10-30 Thread Domagoj Kovač
Hi guys, I have a question. I have a a code like this: where model_object is an instance of an Model. for field in model_object._meta.fields: field_type = type(field) if field_type is not AutoField and \ field.name != "created" and \

Re: reauest.session[] not working.

2013-10-30 Thread Nigel Legg
I'll try that, but why does this work under windows and not ubuntu On 30 Oct 2013 13:59, "Tom Evans" wrote: > On Wed, Oct 30, 2013 at 1:44 PM, Nigel Legg wrote: > > My view: > > > > @login_required > > def list(request): > > user = User.objects.get(pk=request.session['user.id']) > > What is

Re: User names not support Unicode in 1.5

2013-10-30 Thread tim
See https://code.djangoproject.com/ticket/20694 for a discussion of this. In summary: "[Allowing unicode in user names] would be considered a regression for anyone who relies on Django to validate that usernames are ASCII-only. A custom user model (introduced in 1.5) is the way to go." On Wedne

Re: Dynamic queries

2013-10-30 Thread Tom Evans
On Wed, Oct 30, 2013 at 1:25 PM, Domagoj Kovač wrote: > Hi guys, > > I would like to have dynamic query. For example i have a query like: > > rows_list = model_object.objects.not_deleted() > query = Q(name__contains=search_term) > query |= Q(equipment_manufacturer__name__co

Re: Dynamic queries

2013-10-30 Thread Tom Evans
On Wed, Oct 30, 2013 at 1:25 PM, Domagoj Kovač wrote: > Hi guys, > > I would like to have dynamic query. For example i have a query like: > > rows_list = model_object.objects.not_deleted() > query = Q(name__contains=search_term) > query |= Q(equipment_manufacturer__name__co

Re: reauest.session[] not working.

2013-10-30 Thread Tom Evans
On Wed, Oct 30, 2013 at 1:44 PM, Nigel Legg wrote: > My view: > > @login_required > def list(request): > user = User.objects.get(pk=request.session['user.id']) What is putting this 'user.id' key in the session? d.c.auth puts "_auth_user_id" in the session (but if the 'user' is the logged in u

Re: django difference between - one to one, many to one and many to many

2013-10-30 Thread Aamu Padi
Thank you! That did helped. On Tuesday, October 29, 2013 12:36:20 AM UTC+5:30, Aamu Padi wrote: > > So, this is my first time learning computer language. And I chose python > and django. Now, I got many of the basic concepts of python and also > django. I can create new page with the views and a

reauest.session[] not working.

2013-10-30 Thread Nigel Legg
My view: @login_required def list(request): user = User.objects.get(pk=request.session['user.id']) # Handle file upload if request.method == 'POST': form = dataFileForm(request.POST, request.FILES) if form.is_valid(): newdat = dataFiles(datafile = request.FI

Dynamic queries

2013-10-30 Thread Domagoj Kovač
Hi guys, I would like to have dynamic query. For example i have a query like: rows_list = model_object.objects.not_deleted() query = Q(name__contains=search_term) query |= Q(equipment_manufacturer__name__contains=search_term) rows_list = rows_list.filter(query) I

Re: User names not support Unicode in 1.5

2013-10-30 Thread Timothy W. Cook
What version of Python are you using? Tried 3.3? On Wed, Oct 30, 2013 at 4:37 AM, Григорий Крамаренко wrote: > Hello. > My applications version 1.4.x contained Unicode characters in user names. > In version 1.5.x is not possible due to the validator. So I can't go on > this version. > Whether

User names not support Unicode in 1.5

2013-10-30 Thread Григорий Крамаренко
Hello. My applications version 1.4.x contained Unicode characters in user names. In version 1.5.x is not possible due to the validator. So I can't go on this version. Whether it is impossible to change in the future validator like this: re.compile(u'^[\W@+-]+$', re.UNICODE)? Or are there other w

Re: What is the best solution to deploy Django on a Windows server?

2013-10-30 Thread DJ-Tom
Am Freitag, 11. Oktober 2013 22:54:38 UTC+2 schrieb Javier Guerra: > just don't mess with IIS, Apache+mod_wsgi is a perfectly good > platform. (personally, I prefer nginx+uWSGI, but that would need a lot > more work to run on windows) > > Can only confirm that... I'm using the following se

Trouble with (unwanted) field validation

2013-10-30 Thread DJ-Tom
Hi, given the following model field: room_setup = models.ForeignKey("roomsetup", verbose_name='Default room setup', blank=True, null=True, default='') In the modelform __init__ method I'm setting the choices for this field like this: self.fields['room_setup'].choices = roomsetups_as_c

Re: multiple databases and syncdb problem

2013-10-30 Thread Tom Evans
On Tue, Oct 29, 2013 at 9:35 PM, Simon Charette wrote: > syncdb defaults to syncing the 'default' database when no --database is > specified. > > Try specifying which database to synchronize, with the --database=inserv > flag in your case. > syncdb will only synch one DB at a time, and as Simon s