Questions tagged [django-1.10]

Django 1.10 is a version of the Django framework, released August 2016. Please only use this tag if your question relates specifically to this version.

Django 1.10 requires Python 2.7, 3.4, or 3.5.

Here are a list of changes:

Django 1.10 was released in August 2016 and was supported until December 2017.

191 questions
1
vote
1 answer

Updating user information from separate model Django

I'm creating a simple weight management application where users can register, login and update information such as weight, body measurements etc. I've not used Django for a little while and slowly learning best practices from where i left off a…
JDavies
  • 2,730
  • 7
  • 34
  • 54
1
vote
1 answer

Using RenderContext in render_to_string in Django 1.10

I'm upgrading a project to Django 1.10 and trying to change the following template tag (simplified) @register.simple_tag(takes_context=True) def render_svg(context, svg_template_file_name, *args, **kwargs): svg_string =…
Sayse
  • 42,633
  • 14
  • 77
  • 146
1
vote
1 answer

Temporarily modifying `builtins` while splitting a django settings file

I'm starting a django 1.10 project and would like to split the settings file. I was unsatisfied with any existing solutions. I do not want to be able to override string/boolean/dict settings from one file in another. Each string/boolean/dict…
aaronasterling
  • 68,820
  • 20
  • 127
  • 125
1
vote
2 answers

Extend django admin template

I'm trying to add a custom button in change_list django admin page next to the add object in the top of the page. {% extends "admin/change_list.html" %} {% load i18n %} {% block object-tools-items %} {{ block.super }}
  • 1
    vote
    1 answer

    Combine tags with filters

    Code: {% firstof m.caption m.altcaption|slice:":37" %} I want to choose the first of those 2 variables, then slide to 37 characters. Any ideas?
    User
    • 23,729
    • 38
    • 124
    • 207
    1
    vote
    1 answer

    Serve entirely static (documentation) website from Django url in Django 1.10

    I am using mkdocs for a wiki documentation site that serves markdown tutorials and general information files created by various people. mkdocs ouputs an entirely static site in a site directory. Is there anyway to serve this site in django 1.10? I…
    modesitt
    • 7,052
    • 2
    • 34
    • 64
    1
    vote
    0 answers

    Django multiple separate forms in CreateView

    How would you deal with the case of having two separate forms and two models but sharing the same CreateView? For example if you have two models that inherit one abstract model, and in the CreateView we include both forms in context. Whichever form…
    1
    vote
    0 answers

    Cannot submit the form with foreign key in Django

    I can't submit the form with foreign key. Is it anything with foreign key? I always redirect to the destination_list since the form is not saving. No error is showing. models.py class Region(models.Model): region =…
    1
    vote
    1 answer

    net::ERR_CONTENT_LENGTH_MISMATCH on Django 1.10.2

    After updating from django 1.8 to 1.10.2 and working out most of the bugs locally, I get net::ERR_CONTENT_LENGTH_MISMATCH and net::ERR_EMPTY_RESPONSE when loading static files in production. Everything works well locally when debug is True. On…
    bennywhf
    • 11
    • 3
    1
    vote
    2 answers

    FilteredSelectMultiple widget not working in 1.10.1 (Works in 1.8)

    I am using a FilteredSelectMultiple widget from django.contrib.admin.widgets for a ModelMultipleChoiceField. This works great in my django 1.8 environment, but when I try it with 1.10.1, it fails to render the addEvent