Re: How to separate data having the same model but belonging to different users?

2012-09-22 Thread Bill Beal
I don't think so. The question actually had a different point, namely "When I put a decorator on my model, how do I keep the original name for the table?" It didn't specify what the decorator does. There is a link to a doc on proxy models, but it appears that they create multiple tables. I

Re: How to separate data having the same model but belonging to different users?

2012-09-22 Thread Rohit Banga
Thats interesting Bill. Are you talking about something like this? http://stackoverflow.com/questions/3276700/django-model-subclass-without-changing-database-name Thanks Rohit Banga http://iamrohitbanga.com/ On Sat, Sep 22, 2012 at 8:15 PM, Bill Beal wrote: > Question for

Re: Django: language in field description in forms won't change

2012-09-22 Thread Tomas Neme
you probably are using ugettext and should be using ugettext_lazy On Sat, Sep 22, 2012 at 8:44 PM, Patrick wrote: > When I change language on my Django-powered site, everything works fine > except the translation of the field descriptions in the forms. The > description

Re: Beginner problem linking pages from homepage?

2012-09-22 Thread Sam Lai
On 23 September 2012 06:40, Vincent Fulco wrote: > Missing something basic here even after scouring web and running thru online > tut a few times. > > Started a project 'mysite' and added twitter bootstrap then created a static > homepage "index.html' to act as a simple

Re: How to separate data having the same model but belonging to different users?

2012-09-22 Thread Bill Beal
Question for an expert from a newbie: Could you decorate each model that has data that needs to be separated by departments? If so, you wouldn't have to remember to code the department filter on each retrieval. On Friday, September 21, 2012 10:06:35 PM UTC-4, Rohit Banga wrote: > > Hi Dennis

Django: language in field description in forms won't change

2012-09-22 Thread Patrick
When I change language on my Django-powered site, everything works fine except the translation of the field descriptions in the forms. The description is still displayed in the old language. Only the forms already visited that session are affected. It seems like some sort of caching

Re: Setting an unusable password on an existing user

2012-09-22 Thread Russell Keith-Magee
On Sat, Sep 22, 2012 at 3:18 PM, Nandakumar Chandrasekhar wrote: > Thanks Andrew but I have a requirement where I have to programmatically set > it to an unusable password based on a particular condition. Andrew's given you the answer - it's just not clear that you've

set_language view, i18n_patterns and translated urls

2012-09-22 Thread Jojo
Hi guys, I'm developing a website in three languages: English, Spanish and Italian. I let users change language through a select field {% csrf_token %} {% for language in LANGUAGES %} {% if language.0 == LANGUAGE_CODE %} {{language.1}} {% else %} {{language.1}} {% endif %} {% endfor %}

Easiest way to access MySQL from Django on Mac OS X?...

2012-09-22 Thread Fred Stluka
Django users, What's the latest on the easiest way to access MySQL from Django on Mac OS X 10.6.8 (Snow Leopard)? I've Googled lots of info, but some may be outdated. Seems to be more complicated than it should be, especially since everything else to do with Django has been so easy. Here's

Re: My "Contributors" page Conundrum

2012-09-22 Thread JJ Zolper
Okay Nick so your help really made a big difference. The generic view and urlconf helped a lot. Well I didn't figure out how to do Melvyn's recommendation but I was able to implement this another way. It's good but not perfect. Here's all the relevant files: - about models.py from django.db

Re: [OT] I've created a Django application that allows you to view flickr galleries with minimalist design

2012-09-22 Thread Mando
hey Great job that's very good is there any chance you would be sharing the code? On Saturday, September 22, 2012 3:44:36 AM UTC-5, Ezequiel wrote: > > Hi All, > > I'm a programmer and also an amateur photographer. And looking for a > gallery software for my own photo site is that ended up

Re: Django 1.4 and google app engine

2012-09-22 Thread neixetis
Thank you ver much for answer. Yes that could be a solution, however I need relational database :/ On Saturday, September 22, 2012 10:32:25 PM UTC+2, Gabriel [SGT] wrote: > > On Sat, Sep 22, 2012 at 5:16 PM, neixetis > wrote: > > I am about to deal with the same problem,

Installing a django project, database issue ?

2012-09-22 Thread new_user
I am installing the sunlight fondation's brisket and I am really new to python, and even more to django. So I downloaded on github the project : https://github.com/sunlightlabs/brisket. So, when I run the ./manage.py run server command, I get an error message. But I know nothing from python

Beginner problem linking pages from homepage?

2012-09-22 Thread Vincent Fulco
Missing something basic here even after scouring web and running thru online tut a few times. Started a project 'mysite' and added twitter bootstrap then created a static homepage "index.html' to act as a simple launchpad to other more information & feature laden pages. Used

markup doesn't render mardown text in the templates

2012-09-22 Thread Giorgos Tsiapaliokas
Hello, I am new to django and I am writing a simple blog application. For my app I am using markdown in order to write the texts. The issue is that the markdown plugin doesn't render my text files. I have attached my views.py and my template file Regards, Giorgos -- You received this message

Anyone using PyScripter to debug their Django apps?

2012-09-22 Thread Lars Ruoff
Hi, The PyScripter FAQ has an entry about how to debug Django applications: https://code.google.com/p/pyscripter/wiki/FAQ#How_can_I_debug_Django_applications? Has anybody tried this out? It doesn't work for me. I can run my Django app but it ignores my breakpoints. See my post on the

Re: Django 1.4 and google app engine

2012-09-22 Thread Gabriel [SGT]
On Sat, Sep 22, 2012 at 5:16 PM, neixetis wrote: > I am about to deal with the same problem, however I have finished my > project, now I need to update it asap on GAE, but I just can not as newest > version of SDK Django is 1.3, whereas my project is 1.4. Any ideas what >

Re: Django 1.4 and google app engine

2012-09-22 Thread neixetis
Does it mean that few months ago newest django version for Google Cloud SQL was 1.4, and now they downgraded to 1.3? Or that was just a mistake? I am about to deal with the same problem, however I have finished my project, now I need to update it asap on GAE, but I just can not as newest

Re: creating a button using dgango

2012-09-22 Thread Ndlovu
Thanks Nik it working :) On Tuesday, September 18, 2012 10:40:59 PM UTC+2, Nikolas Stevenson-Molnar wrote: > > Does this get at what you want to accomplish? > https://docs.djangoproject.com/en/1.1/ref/contrib/formtools/form-wizard/ > > _Nik > > On 9/18/2012 1:00 PM, Ndlovu wrote: > > How do

[OT] I've created a Django application that allows you to view flickr galleries with minimalist design

2012-09-22 Thread Ezequiel
Hi All, I'm a programmer and also an amateur photographer. And looking for a gallery software for my own photo site is that ended up learning is Python, Django and Linux (at my work I use only .net and c#). Because I also a flickr user I started to doing a "frontend" flickr using their API. If

django-behave

2012-09-22 Thread Rachel
I've written a django-behave module to enable the use of the Behave BDD module inside Django's test framework. http://pypi.python.org/pypi/django-behave Basic functionality at present, but I'll be continuing development on it, and I am using it myself. If anyone would be interested in trying it

Re: Setting an unusable password on an existing user

2012-09-22 Thread Jamie Lawrence
This isn't that rare - it is a common UX requirement. Set the value to something that cannot hash to any input. Depending on your setup, '0' could work, or any other nonsense value. If you have a strict DB schema, IIRC, there are some magic values that SHA will never generate, but I'd have to

Re: Routing TCPIP requests/ responses to and from a Django app

2012-09-22 Thread Russell Keith-Magee
On Fri, Sep 21, 2012 at 9:25 PM, Sithembewena Lloyd Dube wrote: > Hi everyone, > > What is the recommended way to configure a Django project to listen for and > respond to requests via the TCPIP protocol? I'm intrigued why you think there would be a a "recommended" way to do

Re: Setting an unusable password on an existing user

2012-09-22 Thread Nandakumar Chandrasekhar
Thanks Andrew but I have a requirement where I have to programmatically set it to an unusable password based on a particular condition. I know this is a rare requirement but in the context of the application I am building it makes sense. :-) nav On Friday 21 September 2012 12:22 PM, Andrew