__unicode__ and u'%s'?

2011-10-01 Thread Victor Hooi
heya, What's the recommended best practice for printing model fields in __unicode__? Currently, I'm using (simply because the Django docs do): def __unicode__(self): return u'%s' % (self.name) What's the rationale behind using the unicode literal u'%s'? Is it always needed,

Re: __unicode__ and u'%s'?

2011-10-01 Thread Ilian Iliev
Hi, just ensure that your files and DB connection are using Unicode and return self.name will be enough. -- eng. Ilian Iliev Web Software Developer Mobile: +359 88 66 08 400 Website: http://ilian.i-n-i.org On Sat, Oct 1, 2011 at 10:11 AM, Victor Hooi wrote: > heya, >

Module or plugin architecture

2011-10-01 Thread Tony
Hello, I am new to Django and I have a question about module or plugin architecture. Is it possible to write a module with Django and add it to a current Django application. Thank you very much. Regards, Tony -- You received this message because you are subscribed to the Google Groups "Django

Django Registration extra fields not getting saved

2011-10-01 Thread Swaroop Shankar
Hello All, I had posted the same question in stackoverflow for which I didn't received much response, so trying my luck here. Hope someone will have a solution to my issue. I am trying to extend the django registration module with additional fields. I have created following files to extend the

`manage.py syncdb` fails, but what does the error mean?

2011-10-01 Thread chrisbuchholz
Hey, I have this django 1.2 app, Snowy[1], that I try to get to run locally. But everytime I do `manage.py syncdb` I get this[2] error, but I have no idea what it means. Snowy uses, by default django 1.2, python 2 and SQLite3, and at first, I thought it was because that django couldnt talk to

best way to get started with Dajngo?

2011-10-01 Thread ruchita rathi
Hi, Can someone point to the documents/videos for getting started with Django? Best, Ruchita -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group,

Re: `manage.py syncdb` fails, but what does the error mean?

2011-10-01 Thread Martin J. Laubach
My guess would be that you named your project directory the same as one of your app directories, that causes all kind of weird import errors. mjl -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Re: best way to get started with Dajngo?

2011-10-01 Thread Yaşar Arabacı
If you didn't checked this already: https://docs.djangoproject.com/en/1.3/intro/tutorial01/ 2011/10/1 ruchita rathi > Hi, > > Can someone point to the documents/videos for getting started with Django? > > Best, > Ruchita > > -- > You received this message because you

Re: best way to get started with Dajngo?

2011-10-01 Thread william ratcliff
I typically recommend that people get started by going through the tutorial. I also think that the Django book is a good read. Afterwards, I would recommend finding a project that you're interested in and starting it--there are several other good books out there (for example on

Re: View decorator for common navigation elements?

2011-10-01 Thread colinta
This post is particularly well timed, since I have the exact same question. I'm excited to say the company has, after many years, been convinced to stop working on our internal PHP framework and we chose django as its replacement (in sad news, I was the main dev on that framework, and poured my

Re: Django Forms: Radio buttons and label displayed in the same line?

2011-10-01 Thread Ilian Iliev
I am glad I could help. -- eng. Ilian Iliev Web Software Developer Mobile: +359 88 66 08 400 Website: http://ilian.i-n-i.org On Sat, Oct 1, 2011 at 2:07 AM, voss wrote: > Hi eng. Ilian Iliev, > > I visited your page ( >

Re: Module or plugin architecture

2011-10-01 Thread Marc Aymerich
On Sat, Oct 1, 2011 at 8:56 AM, Tony wrote: > Hello, > > I am new to Django and I have a question about module or plugin > architecture. > Is it possible to write a module with Django and add it to a current > Django application. > It depends basically on each concrete

Re: `manage.py syncdb` fails, but what does the error mean?

2011-10-01 Thread christoffer.buchh...@gmail.com
As you can see in the source code[1], there is no app inside the project directory named snowy, so that is not the case. [1]: http://git.gnome.org/browse/snowy On Sat, Oct 1, 2011 at 3:50 PM, Martin J. Laubach wrote: >   My guess would be that you named your project

Re: Module or plugin architecture

2011-10-01 Thread Derek
On Oct 1, 6:20 pm, Marc Aymerich wrote: > On Sat, Oct 1, 2011 at 8:56 AM, Tony wrote: > > Hello, > > > I am new to Django and I have a question about module or plugin > > architecture. > > Is it possible to write a module with Django and add it to a

Re: can't get STATICFILES to work (Django dev version)

2011-10-01 Thread Jian Chang
Did you set Debug=False? 在 2011-9-27 上午4:21,"nara" 写道: > I am having trouble getting STATICFILES to work. I have read the docs, > and followed the instructions, but I never get my css files to load. > My current workaround is to put all the css inline in my template > file, but

Re: Multiple forms with same name.

2011-10-01 Thread Jian Chang
Fisrt,it's not multiple forms as your description. You can use request.GET.getlist('text','') to get the every text in one list 在 2011-9-26 下午11:34,"sakthi" 写道: > In a page i made multiple text forms with the same name. i cannot get > the values of all the forms. only the last

Re: Multiple forms with same name.

2011-10-01 Thread Jian Chang
request.GET.getlist('txt','') sorry! 在 2011-10-2 上午4:37,"Jian Chang" 写道: > Fisrt,it's not multiple forms as your description. > You can use request.GET.getlist('text','') to get the every text in one list > 在 2011-9-26 下午11:34,"sakthi" 写道: >> In a page i

Re: `manage.py syncdb` fails, but what does the error mean?

2011-10-01 Thread Ramiro Morales
On Sat, Oct 1, 2011 at 8:06 AM, chrisbuchholz wrote: > Hey, > > I have this django 1.2 app, Snowy[1], that I try to get to run locally. But > everytime I do `manage.py syncdb` I get this[2] error, but I have no idea > what it means. > > Snowy uses, by default

Django based Project Management

2011-10-01 Thread Anand Agarwal
HI All BootStrapToday is a django based online Project collaboration platform with following features. BootStrapToday Features. • User dashboard and Project Dashboard for quick view of activities and progress of individuals and progress of the project. • Collaborate