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
0
votes
1 answer

Django Admin: Determine correct image upload path

I am new to Django and I am currently having problems in showing uploaded images in Django Admin. I have followed many posted Q and A here in stackoverflow but of those worked in my problem. I hope any active of the coding ninja here could help me…
jonilyn2730
  • 465
  • 9
  • 21
0
votes
3 answers

Django URL and Views

Since this below method of Mapping Django Url from a view is depreciated in Django 1.9 and above url(r'^contact/$', 'newsletter.views.contact', name='contact'), url(r'^about/$', 'home.views.about', name='about'), And this is what is currently in…
0
votes
0 answers

Make extended Django UserCreationForm able to save extra information to database

I've been trying to extend the default UserCreationForm to include an email, first and last names. This appears to be quite a common topic on SO however the logic error I am getting I have still not found a solution to. Here is my…
Max Goodridge
  • 373
  • 2
  • 7
  • 21
0
votes
1 answer

Error NoReverseMatch

I keep running in to a NoReverseMatch error on Django 1.10, while earlier versions have no problems with it. rendered template: {% extends "loginBase.html" %} {% block content %}

Login:

0
votes
1 answer

user uploaded image is not displaying

Image uploaded by user is not displaying though i have not done wrong in template. Also i have defined MEDIA_URL and MEDIA_ROOT. What might be the reason for not getting image displayed? Code image =…
pythonBeginner
  • 781
  • 2
  • 12
  • 27
0
votes
2 answers

Django 1.10 python 3.5 django-admin-tools

I am using Django 1.10 and installed django-admin-tools. Settings look like this: INSTALLED_APPS = [ 'admin_tools', 'admin_tools.theming', 'admin_tools.menu', 'admin_tools.dashboard', 'django.contrib.admin', …
-1
votes
3 answers

Django: apps.get_models() yields models from unittests

If I call this django method, in a test, it yields a lot of models which are not installed. These models are from other apps test code. For example, when iI use apps.get_models() I get MROBase1 from the django package polymorphic test code. => I…
guettli
  • 25,042
  • 81
  • 346
  • 663
-1
votes
1 answer

Is it possible to set 2 urls in get_absolute_url?

I have next task and dont know how to make it. Web page shows to user list of objects. Every object has 2 button with urls like function_detail and function_change_history. First url need open the page about details of the object and the second url…
Nurzhan Nogerbek
  • 4,806
  • 16
  • 87
  • 193
-1
votes
1 answer

implementing user authentication to django app which uses mongodb in backend

I am creating django app, I am using django 1.10 mongodb in backend. To connect with mongodb I am using mongoengine 0.11 and pymongo 3.4 when I try to import User from mongoengine.django.auth, it is giving error as- from mongoengine.django.auth…
sachin27
  • 145
  • 3
  • 13
-1
votes
1 answer

Django 1.10.2 error "NoReverseMatch at " ,"Reverse for 'django.contrib.auth.views.login' with arguments '()' and keyword arguments '{}' not found."

I am new to python & Django. I am getting one error and have absolutely no idea how to solve it. Any help will be appreciated. from django.shortcuts import render # Create your views here. #log/views.py from django.shortcuts import render from…
Vineet Kulkarni
  • 71
  • 1
  • 1
  • 4
-2
votes
1 answer

UnboundLocalError-local variable 'app' referenced before assignment

bu benim appname.urls kodlarım [appname: atolye (bu bir Türk kelimesi)] from django.conf.urls import url from .views import * urlpatterns = [ url(r'^index/$', atolye_index), url(r'^(?P\d+)/$', atolye_detail), ] ve bu benim atolye.views from…
1 2 3
12
13