Questions tagged [django-1.6]

Django 1.6 is a version of the Django framework, released November 2013. Please only use this tag if your question relates specifically to this version.

Django 1.6 is a version of the Django framework, released November 2013. Please only use this tag if your question relates specifically to this version.

See the release notes for more details.

208 questions
98
votes
3 answers

Django import error - no module named django.conf.urls.defaults

I am trying to run statsd/graphite which uses django 1.6. While accessing graphite URL, I get django module error File "/opt/graphite/webapp/graphite/urls.py", line 15, in from django.conf.urls.defaults import * ImportError: No module…
GJain
  • 5,025
  • 6
  • 48
  • 82
75
votes
2 answers

What is a good value for CONN_MAX_AGE in Django?

Django 1.6 now supports CONN_MAX_AGE to pool database connections. By default, the value is 0 (no pooling). What is a sensible value for this option?
Brendan Nee
  • 5,087
  • 2
  • 33
  • 32
66
votes
2 answers

Is "transaction.atomic" same as "transaction.commit_on_success"?

Django 1.6 proposes @transaction.atomic as part of the rehaul in the transaction management from 1.5. I have a function which is called by a Django management command which is in turn called by cron, i.e. no HTTP request triggering transactions in…
Joseph Victor Zammit
  • 14,760
  • 10
  • 76
  • 102
45
votes
6 answers

Setting initial Django form field value in the __init__ method

Django 1.6 I have a working block of code in a Django form class as shown below. The data set from which I'm building the form field list can include an initial value for any of the fields, and I'm having no success in setting that initial value in…
Steve Sawyer
  • 1,785
  • 4
  • 18
  • 21
30
votes
2 answers

Django NoReverseMatch

I'm making a simple login app in django 1.6 (and python 2.7) and I get an error at the beggining that is not letting me continue. This is the site's url.py from django.conf.urls import patterns, include, url from django.contrib import admin import…
freakrho
  • 545
  • 1
  • 5
  • 13
25
votes
5 answers

Django 1.6 TransactionManagementError: database doesn't behave properly when autocommit is off

I'm trying to update a project from Django 1.5.5 to Django 1.6 however I've been getting this error everywhere. Traceback (most recent call last): File "project/virtualenv/lib/python2.7/site-packages/django/core/handlers/base.py", line 114, in…
SunnySydeUp
  • 6,680
  • 4
  • 28
  • 32
19
votes
2 answers

View permissions in Django

As django admin has three permissions in it's auth : add, change, delete! I want to add view permission in this auth in admin panel.I know i have to customize permissions to add view permission in 'auth|permission|can view permission' to view all…
Tameen Malik
  • 1,258
  • 6
  • 17
  • 45
19
votes
3 answers

Django 1.6 and django-registration: built-in authentication views not picked up

I am trying to upgrade my webapp from Django 1.5 to Django 1.6 and as part of my set of django apps I am using django-registration 1.0. After upgrading to Django 1.6 my app does not recognize the built-in authentication views any more. They are…
yellowcap
  • 3,985
  • 38
  • 51
17
votes
4 answers

How to downgrade from Django 1.7 to Django 1.6

I started a new project a few months back using Django 1.7. The company has decided to settle on using Django 1.6 for all projects. Is there a nice way to downgrade from Django 1.7 to 1.6? Are migrations the only thing I have to worry about? Are the…
user9903
15
votes
3 answers

Django: "Too many values to unpack" when calling user.objects.get()

In Django 1.6, I've defined a custom user model, but for some reason now when I create a superuser and try to get it or access the Django admin as that superuser, I get this ValueError: Too many values to unpack. I have perused the many similar…
jdotjdot
  • 16,134
  • 13
  • 66
  • 118
14
votes
2 answers

Django Many to Many Inline - how to show fields referenced by through model?

I'm trying to customize and many to many inline in the django Admin, but I'm not able to display the fields of the underlying models. Here's a simplified example. Maybe you can tell me how to reference them? Here are my models: class…
Greg
  • 45,306
  • 89
  • 231
  • 297
13
votes
2 answers

Reverse for 'index' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []

I'm trying to get django-register to work on my website but I keep getting this error which I do not understand I'm using django 1.6 on Python 3.3 NoReverseMatch at /accounts/register/ Reverse for 'index' with arguments '()' and keyword arguments…
Charles Haro
  • 1,866
  • 3
  • 22
  • 36
11
votes
2 answers

How do you parse and inject additional nodes in a Jinja extension?

I am attempting to adapt the Jinja2 WithExtension to produce a generic extension for wrapping a block (followed by some more complex ones). My objective is to support the following in templates: {% wrap template='wrapper.html.j2' ... %}
Steve
  • 5,771
  • 4
  • 34
  • 49
11
votes
1 answer

Django-cms installs, but pull-downs and other JS doesn't work - ideas for fixing?

I've installed Django-CMS onto an existing site and while it isn't throwing errors, it isn't working. In particular, the header on a given page appears when I use "/?edit" but none of the pull down menus work, and very little (possibly none) of the…
bethlakshmi
  • 4,581
  • 22
  • 44
11
votes
3 answers

Setting up two different types of Users in Django 1.5/1.6

Please note--this is an updated version of my original question on this subject, but deserves to be asked again with the change in how Django deals with users and authentication. I'm working on a website with two very different kinds of users--let's…
jdotjdot
  • 16,134
  • 13
  • 66
  • 118
1
2 3
13 14