Re: Python 3

2013-10-23 Thread Xavier Ordoquy
Hi Andréas, The thing with python3 is it dropped implicit conversion between binary and "textual" strings. That means that: - you now need to explicitly encode or decode if you need to switch the type of string you're using - any conversion issue will be risen even if you're just using plain

file inserts

2013-10-23 Thread Rootz
Question How do one do file inserts less than 16 mb without gridfs? thank you -- 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 to

Re: Python 3

2013-10-23 Thread Andreas Kuhne
Thomas, interesting. Being a scandinavian developer myself, can you give me some examples where Python 3 has worked better for unicode support? Regards, Andréas 2013/10/23 Thomas Weholt > My main reason to porting as many as possible of my python projects to > Python

Vancouver Python Day - Tickets on sale Friday

2013-10-23 Thread Andy McKay
We're pleased to announce that tickets for Vancouver Python Day will be released on Friday, October 25 at 10AM. You can purchase tickets at http://vanpyday.eventbrite.com/ Space is extremely limited, so we advise buying your tickets as early as possible if you plan to attend. Thanks to our

manage.py tab completion with custom commands

2013-10-23 Thread Bogdan Popa
Hey, I'm using some custom commands with manage.py and I was wondering if there is any way to get completion for these. For default commands such as syncdb completion works fine. This wouldn't be such a big problem but I'm using PyCharm and custom commands (or commands added by other apps

yawd-admin live

2013-10-23 Thread Pantelis Petridis
Hello! We've set a live demo of yawd-admin (our open-source django administration app) at http://yawd-admin.yawd.eu/. You can use "demo" as both username & password. Github page is here https://github.com/yawd/yawd-admin. Hope u like it! -- You received this message because you are

Re: Bug in admin models?

2013-10-23 Thread Sandro Dutra
Can't see the django.contrib.admin in INSTALLED_APPS. 2013/10/23 Derek > I am trying to add a model entry, via the admin; I get this error (which > has not happened before), running Django on Ubuntu 12.04 with the test > server. Not sure if there is an error with the

Bug in admin models?

2013-10-23 Thread Derek
I am trying to add a model entry, via the admin; I get this error (which has not happened before), running Django on Ubuntu 12.04 with the test server. Not sure if there is an error with the model (which has worked fine up to now) or ...? Request Method: POST Request URL:

Re: [ANNOUNCE] Django 1.6 release candidate available

2013-10-23 Thread Scot Hacker
On Tuesday, October 22, 2013 8:08:33 PM UTC-7, James Bennett wrote: > It's almost here! > > Tonight we've issued a release candidate for Django 1.6. Information, > including links to downloads and release notes, is available on the Django > project blog: > >

Re: Python 3

2013-10-23 Thread Thomas Weholt
My main reason to porting as many as possible of my python projects to Python 3 is proper unicode support. As a Norwegian developer is been terrible to support local characters in some projects with lots of dirty hacks to get it working. In py3 it just works. Thomas On Wed, Oct 23, 2013 at 5:36

Python 3

2013-10-23 Thread Lee
Is there any particular advantage of using Python 3 at this point specifically in regards to Django projects? I'm starting to build a new application and I am wondering whether its really worth considering the move to Python 3. I've only really read about the disadvantages (3rd party libs

Re: Add custom button in form

2013-10-23 Thread Augusto Destrero
On Wednesday, October 23, 2013 4:41:18 PM UTC+2, Mahantesh U wrote: > My question is: I want to add the button after url field. Once the user > clicks on button I will use the entered url value and extract the details > what i want... Please let me know how to add custom button to the form. >

Add custom button in form

2013-10-23 Thread Mahantesh U
Hi All, in views.py: -- def post_form_values(request): if request.method == 'POST': form = facultyForm(request.POST) if form.is_valid(): form.save() return HttpResponse("Form data saved to database") #return

Re: def altword_list(self, request, word_id):

2013-10-23 Thread Pepsodent Cola
Hi Leo, I changed everything that you suggested and things are working perfect. Thank you!!! :) *[Solved]* On Tuesday, October 15, 2013 3:45:36 AM UTC+2, Pepsodent Cola wrote: > > Hi, > > I got some help by somebody on #django IRC. They gave me this code > snippet to fix my problem. But

Re: ImproperlyConfigured at /admin/polls/poll/add/ 'model' is a required attribute of 'PollAdmin.inlines[0]'.

2013-10-23 Thread Adrian Paul Ciobanita
Thx Magnum. That made the difference. On Wednesday, October 23, 2013 4:22:15 PM UTC+3, Lucas Magnum wrote: > > Rename the attribute "mode" to *model* in the ChoiceInline. > > []'s > > Lucas Magnum. > > > 2013/10/23 Adrian Paul Ciobanita > >> Hello, i've been playing with

Re: variable in django template

2013-10-23 Thread Leonardo Giordani
Indeed this is a good solution. Just a typo correction, use "%" instead of "@". Leo Leonardo Giordani Author of The Digital Cat My profile on About.me - My GitHub page- My Coderwall profile

Re: save form data to mysql table

2013-10-23 Thread Mahantesh U
Thanks a lot.. On Wednesday, October 23, 2013 5:46:05 PM UTC+5:30, Keith Edmiston wrote: > > I'm working on a similar learning opportunity as well and am having good > luck with www.tangowithdjango.com/book/ > > Hopefully it will help you too. > > Keith > > On Wednesday, October 23, 2013,

Re: ImproperlyConfigured at /admin/polls/poll/add/ 'model' is a required attribute of 'PollAdmin.inlines[0]'.

2013-10-23 Thread Lucas Magnum
Rename the attribute "mode" to *model* in the ChoiceInline. []'s Lucas Magnum. 2013/10/23 Adrian Paul Ciobanita > Hello, i've been playing with Django 1.5.4 for some TDD tutorials, > examples, and tried to also do the tutorial : >

Common fields auto values

2013-10-23 Thread Domagoj Kovač
Hi guys, I have a question. I am working on an application that i can use as a starting point for my future projects. I have a core application that has CommonFields abstract model defined as: from django.db import models from django.contrib.auth.models import User class

Re: save form data to mysql table

2013-10-23 Thread Keith Edmiston
I'm working on a similar learning opportunity as well and am having good luck with www.tangowithdjango.com/book/ Hopefully it will help you too. Keith On Wednesday, October 23, 2013, Mahantesh U wrote: > Hi All, > >I ve a template base.html in project file. once the user enters data > and

Re: variable in django template

2013-10-23 Thread Nicolas Pantel
Take a look at the "{@ with @}" template tag in the documentation. Use {@ with myVariable=someValue @} ... {@ endwith @}. NicoP Le 23 oct. 2013 07:01, "Harjot Mann" a écrit : > > I want to initialize a varibale in django template from zero, which I > want to comapre

ImproperlyConfigured at /admin/polls/poll/add/ 'model' is a required attribute of 'PollAdmin.inlines[0]'.

2013-10-23 Thread Adrian Paul Ciobanita
Hello, i've been playing with Django 1.5.4 for some TDD tutorials, examples, and tried to also do the tutorial : https://docs.djangoproject.com/en/1.4/intro/tutorial02/#adding-related-objects BUT i keep receiving this error, as suggested in the Subject: > ImproperlyConfigured at

Re: Django 1.6b4 fails to run tests with runner test.simple trying to import TransRealMixin

2013-10-23 Thread Matthieu Rigal
Hi Ramiro, Thanks for the fix ! I've checked the diff and this looks great :-) Also no need to add i18n anymore to the pip, you save some MB and some install time :-) BUT I actually couldn't test it, because some other changes just prevent me to run any test with any runner... It tries to

Fwd: [ANNOUNCE] Django 1.6 release candidate available

2013-10-23 Thread Matthieu Rigal
On Wednesday, October 23, 2013 12:14:45 PM UTC+2, Matthieu Rigal wrote: > > Do you plan to release the C1 with a tag also on Github ? I'm used to grab > versions from there... > https://github.com/django/django/releases > > Thanks, > Matt > > On Wednesday, October 23, 2013 5:08:33 AM UTC+2,

Re: [ANNOUNCE] Django 1.6 release candidate available

2013-10-23 Thread Matthieu Rigal
Do you plan to release the C1 with a tag also on Github ? I'm used to grab versions from there... https://github.com/django/django/releases Thanks, Matt On Wednesday, October 23, 2013 5:08:33 AM UTC+2, James Bennett wrote: > > It's almost here! > > Tonight we've issued a release candidate for

Re: HOWTO: Create a ManyToMany Relationship?

2013-10-23 Thread Timothy W. Cook
Thanks Mike. Yes, the get_or_create works great in my ForeignKey situation (Paper in a Journal) but I am not so sure it is a good choice here. For one thing the incoming data makes it very difficult to filter out Authors. There isn't enough real information to tell if it is the same person or

Re: HOWTO: Create a ManyToMany Relationship?

2013-10-23 Thread Timothy W. Cook
Thanks for the link. The add() method was what I was missing. Changing the one line to p.authors.add(a.id), fixed it. On Tue, Oct 22, 2013 at 10:51 PM, Pepsodent Cola wrote: > I'm a beginner so I can only answer your first question. The below link > has helped me

save form data to mysql table

2013-10-23 Thread Mahantesh U
Hi All, I ve a template base.html in project file. once the user enters data and clicks on submit button the details should save to mysql table camp_db database. I dont ve idea of how to use ModelForm. How can i achieve this? pls help me soon. Thanks Mahantesh -- You received this

Re: variable in django template

2013-10-23 Thread Leonardo Giordani
Hi, everything you need in a template can be prepared in a view, so if you need a specific value just pass a context key with that very value. Otherwise, if you need a list of integers, just pass a range(N) list. There is a plenty of builtin filters and tags you can then use to manage it. If you

Re: HOWTO: Create a ManyToMany Relationship?

2013-10-23 Thread Mike Dewhirst
On 23/10/2013 11:51am, Pepsodent Cola wrote: I'm a beginner so I can only answer your first question. The below link has helped me with 1:M and N:M relationship experiments. Can someone point me to where this is explained in the docs (1.6)?