[ANNOUNCE] Django 1.10 beta 1 released

2016-06-21 Thread Tim Graham
We've made the second release on the way to Django's next major release, Django 1.10! With a month and a half until the scheduled final release, we'll need timely testing from the community to ensure an on-time and stable release. Check out the blog post:

Re: Re: how to design custom forms in django with bootstrap

2016-06-21 Thread 1351552...@qq.com
u need read how to use css file by django :https://docs.djangoproject.com/en/1.9/intro/tutorial06/ before this u need download bootstrap in ur location disk,and add in the of ur html. ww From: Ikram Ulhaq Date: 2016-06-21 05:02 To: Django users Subject: Re: how to design custom forms in

Re: choices field language

2016-06-21 Thread Luis Zárate
Use in the first line #- coding: utf-8 from __future__ import unicode_literals And put in models from django.utils.encoding import python_2_unicode_compatible @python_2_unicode_compatible class MyClass(object): def __str__(self): return "Instance of my class" See more in

Re: choices field language

2016-06-21 Thread ludovic coues
Python 3 have a better support of international alphabet. 2016-06-20 23:44 GMT+02:00 Xristos Xristoou : > hello i want to use choices in my field but not work if i write in my > language(greek) only work in the england language. > if i writing choices in my language show me

django rest framework - request context key error

2016-06-21 Thread Aamu Padi
I have two models (Like and News). I am using django-rest-framework to make a web api out of it. class Like(models.Model): user = models.ForeignKey(User) content_type = models.ForeignKey(ContentType) object_id = models.PositiveIntegerField() content_object =

Re: Please help me with CBV template_name behaviour.

2016-06-21 Thread JoeCodeswell
Dear James & Django-Users, As an afterthought, I wonder why my misspelling didn't cause an error instead of a "wrong" Template being used? Any insights? Thanks again, Love and peace, Joe On Tuesday, June 21, 2016 at 10:01:31 AM UTC-7, JoeCodeswell wrote: > > Dear James & All, > > I

Re: Please help me with CBV template_name behaviour.

2016-06-21 Thread JoeCodeswell
Dear James & All, I installed the Django Debug Toolbar and here is what it says when i navigate to 'http://127.0.0.1:8000/contacts/psearchc/last_name/contains/d/' Template path 1. C:\Users\joeco\djtut\mysite\templates Template *contacts/contact_list.html

Re: how to design custom forms in django with bootstrap

2016-06-21 Thread Jani Tiainen
Hi, If you're unsure what markup should look a like, you can create initial HTML as you have done it with form.as_p (or whatever you used to make working form). Then open then source of page and copy to and start applying bootstrap CSS/html tags/attributes. You should then get working form.

Re: how to design custom forms in django with bootstrap

2016-06-21 Thread Babatunde Akinyanmi
Hello Ikram, You still didn't give enough details. For example, does it submit and successfully or does it not? Anyway, I can see some problems in your markup. 1. I do not see any form tag ( <\form>) in your markup. 2. More importantly, your form input elements do not have a name attribute.