Django 2.0 beta 1 released

2017-10-16 Thread Tim Graham
We've made the second release on the way to Django's next major release, Django 2.0! With a month and a half until the final release, we'll need timely testing from the community to ensure a stable release. Check out the blog post: https://www.djangoproject.com/weblog/2017/oct/16/django-20-beta-1-

add prompts for drop down list

2017-10-16 Thread Rebecca
The form field are something like this: colours = (('r','Red'),('g','Green'),('b','Blue)) # ... fave_colour = forms.ChoiceField(choices=colours) I would like to add a prompt for each choice to help user select the choice properly. How can I add prompts for the choices drop down li

ModelFormset label

2017-10-16 Thread JSaa
Hello all, I'm trying to set a model forms label according to another model's field's value. Now when the user loads the form, label's are shown as "Answer text" but I want it to show as the QuestionAnswer model's "question" foreign key's model's value. I.e. if the Question model's question_te

Re: Different user types - the best method

2017-10-16 Thread Jason
There was a session at this year's djangocon about this very topic. You can see it on youtube at https://youtu.be/uLPZYuj7yTg On Sunday, October 15, 2017 at 10:06:06 AM UTC-4, majvan wrote: > > Hello, > > in my application I wanted different user types each having different > authentication met

Re: Wrapping basic static HTML page in sites base template. How to?

2017-10-16 Thread Thiago Luiz Parolin
Hi, Look at the flatpages docs. https://docs.djangoproject.com/en/2.0/ref/contrib/flatpages/ 2017-10-16 9:06 GMT-02:00 Bernd Wechner : > Curious and I admit lazy question as I don't even know where to look or > how for such a general idea. But there it is, I'd like to be able to write > a stat

Wrapping basic static HTML page in sites base template. How to?

2017-10-16 Thread Bernd Wechner
Curious and I admit lazy question as I don't even know where to look or how for such a general idea. But there it is, I'd like to be able to write a static HTML file (like say about.html) and render that inside of the sites style and basic template. So I have base.html for example, which conta

Re: Django and Angular2/4 example project

2017-10-16 Thread Roger Gammans
Hi, I'd certainly be interested in helping with such a project; as I current have two angular.io/Django projects here. We've been concentrated more on the such thinks and enhance runserve; to also spawn 'ng build' in another process so the developer experience was smooth. ng.io components for dj