Re: migrating DailyStockSelect.com to django

2013-12-27 Thread d ss
thanks Javier you are right i just got done with the tutorial now still looking tho for the different parts i need more hopeful now tho i ll find them soon Samir On Monday, December 23, 2013 8:29:00 AM UTC-5, Javier Guerra wrote: > > On Mon, Dec 23, 2013 at 6:02 AM, d ss > > wrote: > > best woul

Accessing attributes of the current view in Django middleware?

2013-12-27 Thread alk...@gmail.com
I'm trying to access an attribute of the current view instance in the middleware layer. For example, given a class-based view like this: # views.pyclass MyView(View): my_attribute = 'something' I'd love to be able to get a handle on my_attribute in the middleware by doing something like

djorm-ext-pgjson field value returned by queryset as string not dict

2013-12-27 Thread Bulat Shaf
Hello, django users! I'm using PostgreSQL 9.3.2 with django 1.5.5. I've created a model with JSONField from djorm-ext-pgjson. After migrating with south I can see my field type is json in postgres. Then I've put some data and queried for it. On my development laptop I get dict in my json fiel

Re: Good news for Django devs - labbler.com code has been released to public

2013-12-27 Thread Mario Osorio
I'm sure we all here appreciate examples of commercial products built on top of Django, but I'm afraid some translation is in order ... google's translate confused me even more... -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Problem with django-dynamodb2-sessions

2013-12-27 Thread Andreas Kuhne
Hi all, We have just migrated our website to Amazon AWS. It works perfectly except for one thing. We are using the django-dynamodb2-sessions plugin to manage our sessions. For most of the time it works ok, but then we get errors with the following error in them: ConditionalCheckFailedException:

Re: new to Django and Python

2013-12-27 Thread Damián Pérez
this is because you are use special characters. you can include in you python files: # -*- coding: utf-8 -*- regards, On Thursday, December 26, 2013 2:44:24 PM UTC-6, Brent Register wrote: > > I get an error message when I run the > "$ python manage.py syncdb" > Command. > > > 70 > Synt

Re: ViewDoesNotExist at /admin/

2013-12-27 Thread Cal Leeming [Simplicity Media Ltd]
Hello, Perhaps try installing a completely new/fresh dev environment in a vmware/virtualbox instance, and attempt to get it working from there, that will at least help you narrow this problem down locally instead of poking around at production. Also try and make sure you install the same OS/releas

encoding error in production with WSGI but not development

2013-12-27 Thread rok
Hi, I am getting the following error: 'ascii' codec can't encode character u'\u0160' in position 13: ordinal not in range(128) in our production machine running the Django app using Apache+mod_wsgi. However, the same code works well in development in Eclipse. Is this somehow related to the WSG

Re: Displaying HTML forms through AJAX

2013-12-27 Thread Aaron Decker
Arun, Do yourself some favors. 1. use jQuery for Ajax (or some other lib). You are doing it the very hard and not cross-browser compatible way. 2. use Django's template system for HTML generation. 3. if you do number 2 you can embed the CSRF token in the template render like you are supposed t

Re: ViewDoesNotExist at /admin/

2013-12-27 Thread Gabriele Stoia
Thank you Tom for your answer. I'm sorry but I don't have much experience with Django... Do you have an idea how to fix this problem ? Thanks in advance Gabri Il giorno martedì 24 dicembre 2013 20:58:32 UTC+7, Thomas ha scritto: > > > On 2013-12-23, at 9:42 PM, Gabriele Stoia > > wrote: > > I