django-1.10 Questions

11

Solved

Both JWT packages written for Django gave me issues with poor documentation, so I try DRF-auth_token package. This is a good example I followed, Django Rest Framework Token Authentication. You shou...

3

Solved

I need to sort two parts of a queryset differently based on a boolean field. - Rows that have bool_val == True should come first, and be sorted by date_a, ascending. - Rows that have bool_val == Fa...
Eighty asked 30/5, 2017 at 21:53

6

Solved

After upgrading to Django 1.10, I get the error: TypeError: view must be a callable or a list/tuple in the case of include(). My urls.py is as follows: from django.conf.urls import include, url...
React asked 3/8, 2016 at 12:54

10

Solved

I'm a newbie in Django and just started looking at it before a day by installing Django 1.10 on my local. I've followed all the instructions of this link https://docs.djangoproject.com/en/dev/intr...
Lilalilac asked 11/12, 2015 at 10:11

4

Solved

I cannot install basic Django packages on Ubuntu. I just deleted virtualenv and remade it. pip3install = pip3 install -r requirements.txt [mything] cchilders@cchilders-desktop:~/projects/mything (...
Augustina asked 10/10, 2016 at 1:37

2

Solved

I have coded my custom Django middleware in the 1.10 style, similar to this: class MyMiddleware(object): def __init__(self, get_response): self.get_response = get_response # some initialization...
Andrey asked 23/3, 2017 at 17:55

3

Solved

Problem I'm currently trying to upgrade to Django 1.10.3 from Django 1.9.8. Currently my tests are failing however, because for some reason Django is trying to translate/internationalize my URLs w...
Therefrom asked 10/11, 2016 at 11:58

2

Solved

I'm trying to integrate this snippet into our Django project: It's just custom HTML and CSS for messages. The html looks like this: <div class="bs-calltoaction bs-calltoaction-success"> &...
Quotation asked 24/4, 2017 at 13:4

2

Solved

I have a QuerySet of some objects. For each one, I wish to annotate with the minimum value of a related model (joined on a few conditions, ordered by date). I can express my desired results neatly ...
Pinckney asked 4/1, 2018 at 2:47

2

Solved

After upgrading to Django 1.10, I get the following error when I run python manage.py runserver: ?: (urls.E004) Your URL pattern ('^$', 'myapp.views.home') is invalid. Ensure that urlpatterns is a...
Burnell asked 5/8, 2016 at 9:59

1

Am using GeoDjango with PostGIS as Backend. I have few geojson files with features as following example. GeoDjango has provided information to import shape files and other formats but geojson forma...
Fattal asked 21/9, 2016 at 12:49

2

Solved

I am creating a site in Django with a custom view, and want to link to that view on the admin page. But even though I've followed the directions to override base_site.html in the Django tutorial, n...
Rocambole asked 23/2, 2017 at 12:56
1

© 2022 - 2024 — McMap. All rights reserved.