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

Django v1.6 debug-toolbar Middleware Error No .rsplit()

I am trying to use django-debug-toolbar with my django application and it worked for django v1.5. However, I am trying to migrate the system to django v1.6 and it is generating the following error when I try to load any page. python manage.py…
James
  • 2,488
  • 2
  • 28
  • 45
10
votes
3 answers

How to unset csrf in modelviewset of django-rest-framework?

How to unset csrf in modelviewset of django-rest-framework? I'll use viewsets.ModelViewSet(http://django-rest-framework.org/api-guide/viewsets.html#modelviewset) of django-rest-framework. And my app is api server. So I don't need to use csrf. But I…
chobo
  • 4,830
  • 5
  • 23
  • 36
9
votes
2 answers

Force Django to use HTTPS URLs when reversing

I am running my Django application in Cloud9 for development purposes using the usual ./manage.py runserver. But to the outside world, the app is accessible via a https:// URL. The problem is that when I use the URL reverse function, the URLs that…
Magnus Teekivi
  • 473
  • 1
  • 7
  • 21
9
votes
2 answers

running all tests post django 1.6

In django 1.5 and earlier, running python manage.py test would, by default, run all tests in a project (including all those in django.contrib). Subsequent to version 1.6, the default behaviour is to run all the tests in the current directory. What…
Luke
  • 404
  • 5
  • 11
9
votes
1 answer

Django 1.7 vs Django1.6 vs Django 1.5

I have been developing using Django 1.5 a lot. Is it worth the time to shift from Django 1.5 to Django 1.6 or Django 1.7? I know, In 1.7, migration is into the core of Django. How different is it from south?
user3133084
8
votes
2 answers

django.test.Client and response.content vs. streaming_content

I have a Django test that accesses a web page using the Django test client. In one of the tests, the server returns a ZIP file as an attachment. I access the content of the ZIP file with the following code: zip_content =…
zmbq
  • 38,013
  • 14
  • 101
  • 171
7
votes
1 answer

TransactionManagementError - This is forbidden when an 'atomic' block is active

While upgrading my project from django 1.5.1 to 1.6.5, I am facing this weird issue. This is forbidden when an 'atomic' block is active. I am aware of the Database Transaction changes for django 1.6 and made the setting changes accordingly. Works…
karthikr
  • 97,368
  • 26
  • 197
  • 188
6
votes
3 answers

Django Rest Framework requesting authentication on AllowAny setting

I've created a JWT-Authorised back end for an app. Login, logout, token retrieval and refresh all work fine, and as expected. I added a registration view this morning, which is throwing the usual "detail": "Authentication credentials were not…
Withnail
  • 3,128
  • 2
  • 30
  • 47
6
votes
1 answer

django-allauth: custom user generates IntegrityError at /accounts/signup/ (custom fields are nulled or lost)

I'm trying to integrate django-allauth with a custom user model (subclassed AbstractUser, but when I test the signup form I get an integrity error due to field (date_of_birth) being null, but the value submitted was u'1976-4-6' I'm learning the new…
Peter Hanley
  • 1,254
  • 1
  • 11
  • 19
6
votes
1 answer

Django form ChoiceField depend on another ChoiceField

I have the following form: class MyForm(forms.Form): country = forms.ChoiceField( widget = forms.Select() ) region = forms.CharField( widget = forms.Select() ) def update_region(self): …
Gab
  • 5,604
  • 6
  • 36
  • 52
6
votes
1 answer

Custom django admin template for app

I would like to create a custom index.html derived from the admin/index.html individual for each app in my django project. For instance my folder structure is like: app1 templates index.html (different from the global template…
BlueSapphire
  • 311
  • 6
  • 18
6
votes
3 answers

Invalid HTTP_HOST header in Django 1.6.2

I am receiving a lot of Invalid HTTP_HOST header messages from my Django web application- [Django] ERROR: Invalid HTTP_HOST header: 'www.bing.com'.You may need to add u'www.bing.com' to ALLOWED_HOSTS It comes from known websites (like bing.com,…
Devang
  • 1,531
  • 3
  • 22
  • 38
6
votes
3 answers

no TEMPLATE_CONTEXT_PROCESSORS in django

I don't have TEMPLATE_CONTEXT_PROCESSORS in my default settings! TEMPLATE_CONTEXT_PROCESSORS = ( 'django.contrib.auth.context_processors.auth', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', …
Kakar
  • 5,354
  • 10
  • 55
  • 93
6
votes
2 answers

Django 1.6 and Celery 3.0 memory leaks

After upgrading Django to 1.6, my celery worker is eating up RAM. Seems that the memory allocated for the workers isn't released and grows after every task. Related Settings: # DB: DATABASES = { 'default': { 'ENGINE':…
yprez
  • 14,854
  • 11
  • 55
  • 70
5
votes
1 answer

Update / patch / create nested models in Django Rest framework

I'm using Django 1.6.8, and Django Rest 2.4.4. I have a Person model with separate models for Address and PhoneNumbers. class Person(models.Model): address = models.OneToOneField(Address, blank=True, null=True) phoneNumbers =…
Ognjen
  • 2,508
  • 2
  • 31
  • 47
1
2
3
13 14