django connect alternate database.

2012-05-25 Thread Min Hong Tan
hi, I have a situation. currently i have one default django 's database. but, i wound like to connect to mssql/other database. - how can i get connected to ms-sql/other database? - is it we have to create class in models? the database is for read only. Hope able to get the information. Regards,

Re: How to call a correct version of python when multiple ones are installed?

2012-05-25 Thread Gerald Klein
python2.7 manage.py etc. On Fri, May 25, 2012 at 11:07 AM, Mohan Boddu wrote: > Hello, > > I am very new to python and django. My question is, since django works on > python version more than 2.5 and if I am having multiple versions of python > say 2.4 and 2.6, now how

How to call a correct version of python when multiple ones are installed?

2012-05-25 Thread Mohan Boddu
Hello, I am very new to python and django. My question is, since django works on python version more than 2.5 and if I am having multiple versions of python say 2.4 and 2.6, now how can I call django with the correct version of python. Is there any way to do that. Any help would be

[Django Gig - Sacramento/Bay Area, CA] Help make Django/FOSS a success for independent/local grocery retail

2012-05-25 Thread Tony Schmidt
I can read this list and the docs all I want, but there's no substitute for experienced code review and pair programming. *So we, the Sacramento Natural Foods Co-op, are seeking a (preferably local) Django guru to help bring best practices to our in-house software development. We have a small

Re: How to setup Python 2.7 and Virtualenv on a shared host with no root access?

2012-05-25 Thread darwin31
I forgot to say something important. In order to make such changes permanent you will need to insert in the END of you ~/.bash_profile the following commands: export WORKON_HOME=~/Envs source ~/python/bin/virtualenvwrapper.sh Em sábado, 12 de maio de 2012 07h29min39s UTC-3, Dan Santos

Re: Can't add groups in the admin interface

2012-05-25 Thread Kevin Cole
P.S. Adding permissions to each user individually works (and those permissions are not ignored), and the database validates correctly according to "django-admin validate". -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Can't add groups in the admin interface

2012-05-25 Thread Kevin Cole
Hi, I'm using Django 1.3 with the "stock" admin interface. No customizations. In the Site Administration, I can add new users. However, if I try to add a group I get the Add Group screen, with the fields for name and selection of permissions, and the three save buttons at the bottom ("Save

Re: How to get News by category? - GET method

2012-05-25 Thread Jonathan D. Baker
The query string parameters in your URL need to be in key=value format, such as http://127.0.0.1:8000/news/?category=music Sent from my iPhone On May 25, 2012, at 6:01 AM, enemybass wrote: > Hi. How to get News by category name? My try: http://dpaste.com/752094/ > If I

Re: How to popup a window from admin site from the admin table's cell html content?

2012-05-25 Thread francescortiz
You need to be more specific, because the code you have already seems to do what you ask. What is your problem? On Monday, May 21, 2012 5:51:21 AM UTC+2, Aditya Sriram M wrote: > > Help please! :-| > > On Saturday, 19 May 2012 18:31:05 UTC+5:30, Aditya Sriram M wrote: >> >> I have a function

Re: derived fields and getattr

2012-05-25 Thread Larry Martell
On Fri, May 25, 2012 at 6:42 AM, bruno desthuilliers wrote: > On May 25, 2:32 pm, Larry Martell wrote: >> On Fri, May 25, 2012 at 2:24 AM, bruno desthuilliers >> >> >> I couldn't use the display name or the getattr failed. >> >> > ??? >> >>

Re: derived fields and getattr

2012-05-25 Thread bruno desthuilliers
On May 25, 2:32 pm, Larry Martell wrote: > On Fri, May 25, 2012 at 2:24 AM, bruno desthuilliers > > >> I couldn't use the display name or the getattr failed. > > > ??? > > When I first did: > > extra(select={"Delta" : self.field_name}) > > Then getattr(self.field_name)

Re: derived fields and getattr

2012-05-25 Thread Larry Martell
On Fri, May 25, 2012 at 2:24 AM, bruno desthuilliers wrote: > > On May 24, 11:50 pm, Larry Martell wrote: >> I got this to work by adding the derived field to the drill down query >> with queryset.extra, and then it was available with

Django Badges app

2012-05-25 Thread Pratik Mandrekar
Hi, I have been looking at the Badges app in django - https://github.com/eldarion/brabeion/blob/master/docs/usage.txt and while it seems to be good at tracking the user's badges It doesn't have an easy way to associate images with badges. I tried inheriting the BadgeDetails class and using

How to get News by category? - GET method

2012-05-25 Thread enemybass
Hi. How to get News by category name? My try: http://dpaste.com/752094/ If I click category name in template, nothing happens -> in web browser is url: http://127.0.0.1:8000/news/category?music Thanks! -- You received this message because you are subscribed to the Google Groups "Django users"

Re: I need a django application to embed a chat javascript in admin site

2012-05-25 Thread jmolmo
I solve that using OpenFire ( An XMPP Server with chat , multiuser-chat, etc ..) and Strophe (a javascript library for the browser). Good luck Ariel El miércoles, 23 de mayo de 2012 16:37:42 UTC+2, Ariel escribió: > > Hi everybody, > > I need a django application to embed a chat javascript in

Re: Sorl permissions issues in media directory

2012-05-25 Thread Bastian
Sorry I won't be very helpful on that one, I started again from scratch and it's working ok. I'm not even sure it was related to Sorl. On Thursday, May 24, 2012 4:52:11 PM UTC+2, Chet Pilley wrote: > > Are you doing any development work using runserver apart from working > on the

Re: track change

2012-05-25 Thread bruno desthuilliers
On May 24, 11:00 pm, Carsten Jantzen wrote: > > Not sure what you mean by detecting skill change using properties, I > havn't looked into that. > Could you point to some documentation about it. Python has a strong support for computed attributes[1], and offers a builtin

Re: sorl.thumbnail is not working

2012-05-25 Thread Oana Salageanu
The MEDIA_ROOT is set up correctly: MEDIA_ROOT = '/home/myusername/ myprojectname/uploads/' And the images are stored here: /uploads/files/img/foldername/file.jpg The relative path, /uploads/files/img/wahanda/name.jpg works..but not like this: {% thumbnail result.object.image_path "50x50"

Re: loop over model ids ? possible ?

2012-05-25 Thread doniyor
Cool, thanks, i will play with the advices given by you guys.. I will post the solution that has worked for my prob.. Thanks thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Re: derived fields and getattr

2012-05-25 Thread bruno desthuilliers
On May 24, 11:50 pm, Larry Martell wrote: > I got this to work by adding the derived field to the drill down query > with queryset.extra, and then it was available with getattr. The only > issue I had was they wanted the derived field displayed with a name > (not

Re: loop over model ids ? possible ?

2012-05-25 Thread bruno desthuilliers
On May 25, 8:19 am, doniyor wrote: > hey guys, > i need to loop over the number of ids of objects in my db table and create > accordingly the same number of html fields. how can i do it.. my effort is > this: >  numberOfIds = Produkt.objects.count() >         i = 1; >  

Re: loop over model ids ? possible ?

2012-05-25 Thread kenneth gonsalves
On Thu, 2012-05-24 at 23:19 -0700, doniyor wrote: > hey guys, > i need to loop over the number of ids of objects in my db table and > create > accordingly the same number of html fields. how can i do it.. my > effort is > this: > numberOfIds = Produkt.objects.count() > i = 1; >

loop over model ids ? possible ?

2012-05-25 Thread doniyor
hey guys, i need to loop over the number of ids of objects in my db table and create accordingly the same number of html fields. how can i do it.. my effort is this: numberOfIds = Produkt.objects.count() i = 1; for i in range(0,numberOfIds): p =

Re: I need a django application to embed a chat javascript in admin site

2012-05-25 Thread francescortiz
Implementing a simple global chat is pretty straightforward: 1- Don't use database 2- Implement filesystem based locking (multithread safe) 3- if there user wrote a new line, acquire lock and append the new line to the file. 4- releaase lock 5- send the last lines to the users. I recommend you