Re: Why isn't user.photo being saved in UpdateView?

2018-12-01 Thread Jim Wombles
{% block title %}{{ user.username }}{% endblock %} {% block content %} {{ user.username }} {% csrf_token %} {{ form|crispy }} Update {% endblock %} On Friday, November 30, 2018 at 5:06:33 PM UTC-5, Jim Wombles wrote: > > For some reason

Why isn't user.photo being saved in UpdateView?

2018-11-30 Thread Jim Wombles
For some reason, the updateview will save all of the other user fields (and update them if changed) to the database. Do I need to handle the user.photo field differently? # views.py class UserUpdateView(LoginRequiredMixin, UpdateView): model = User fields = ["name", "photo", "city", "

Class Based Views tutorials

2015-01-06 Thread Jim Wombles
Two Scoops of Django is definitely the book you are looking for. I don't know if it's out for 1.7 yet, but I purchased the book for Django 1.6 and it covers l of the best practices that you won't read about just from the Django docs. -- You received this message because you are subscribed to t

Re: CSS not rendering on local server development

2012-10-02 Thread Jim Wombles
manage.py runserver? > > Cheers, > > JJ > > On Tuesday, October 2, 2012 11:23:11 PM UTC-4, Jim Wombles wrote: >> >> Greetings, >> >> I am at a loss as to why local server is unable to render the css and js >> files. I have the static_dirs setting correct

CSS not rendering on local server development

2012-10-02 Thread Jim Wombles
Greetings, I am at a loss as to why local server is unable to render the css and js files. I have the static_dirs setting correct and the href link to the files is correct, and the html file is rendering yet when I track what is going on with Chrome Dev Tools it is unable to find the CSS and JS f