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

uwsgi and django - django uwsgi import is leaving virtualenv and crashing

Starting uwsgi from ini file crashes with the following stacktrace: Traceback (most recent call last): …
DerShodan
  • 463
  • 7
  • 16
2
votes
2 answers

How can I override the 'unique' error on a ModelForm field?

I'm trying to override the 'unique' error message for a Field in my ModelForm. I'm trying to follow the docs for Django 1.6, but I can't get it to work. Pretty simple stuff, I have: models.py: class EmailAddress(Model): """An email address.""" …
Symmetric
  • 4,495
  • 5
  • 32
  • 50
2
votes
1 answer

django-localeurl patched reverse doesn't work in unit testing

My app is using django-localeurl. My unit testing were ok in django 1.5.5 but since I moved to django 1.6.2, i have many errors because of status 301 in response. It seems that this is caused by wrong urls which don't take into account the locale…
luc
  • 41,928
  • 25
  • 127
  • 172
2
votes
3 answers

django 1.6 automatically remove or add http:// from URLField from form data

I am going through the Tango With Django tutorials, I have come across a function in the forms chapter ( http://www.tangowithdjango.com/book/chapters/forms.html ) that I cannot get to work. Admittedly I am going through the tutorial using Python 3.3…
user1026169
  • 5,345
  • 5
  • 21
  • 35
2
votes
2 answers

django-tracking not compatible with Django 1.6

I am trying to convert a Django 1.3 app to Django 1.6. I am using the django-tracking package but when I start the runsever I get the following error: Unhandled exception in thread started by Traceback (most recent…
Alex
  • 1,891
  • 3
  • 23
  • 39
2
votes
0 answers

When upgrading django 1.4 to 1.6 users left unauthorized

On production host we have installed django 1.4 and wanted to upgrade it to latest release (1.6) After all needed changes are done we installed it and faced with the fact that all of our users were not authorized after restarting uwsgi…
Vitaly Volkov
  • 121
  • 1
  • 5
2
votes
1 answer

How to set site domain without Django sites framework in place?

I'm moving my site from Django 1.5.x to Django 1.6.0, and I noted this in the release notes: [..] The admin is now enabled by default in new projects; the sites framework no longer is. [..] How to set the default domain (instead of…
Joseph Victor Zammit
  • 14,760
  • 10
  • 76
  • 102
2
votes
1 answer

Django allauth session JSON serializable error after login

I have installed django-allauth, after that this is my settings.py Django_apps = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', …
ddiipp
  • 205
  • 3
  • 15
1
vote
1 answer

Can't pass null fields into django floatfield?

(approach inspired by this thread) I have some json data that I want to import into django models using the example data: [{"orderID": "2b062ac4542172b12f47e2b26d1629ae", "status": "No Car", "specialRequest": "", "endedTime":…
1
vote
2 answers

How to check if Django ValidationError subclass was raised?

Let's assume I have a Django model: class MyDjangoModel(models.Model): name = models.CharField(max_length=200) attribute = models.IntegerField() class CustomValidationError(ValidationError): pass def clean(self): if…
y_v
  • 53
  • 9
1
vote
0 answers

Django - override base class model field on get

I am using Django1.6 i have abstract class A, and class B: class A(Model): att = CharField() class Meta: abstract = True class B(A): pass i want to override the behaviour of 'att' (without touching class A): so when using: b…
Eyal Ch
  • 9,552
  • 5
  • 44
  • 54
1
vote
1 answer

"I/O operation on closed file" error when trying to open uploaded file django 1.8

Unable to open uploaded file when using Django1.8, I am facing an error "ValueError: I/O operation on closed file". But this works well and good in Django 1.6: Django1.8 >>>type(in_file)
NAGARJUNA PALURU
  • 109
  • 1
  • 1
  • 7
1
vote
1 answer

Django: "cannot import name import_string" while using "rest_framework_docs"

I installed drfdocs by following the steps as mentioned here. But I am getting cannot import name import_string. Below is the stacktrace: ImportError at / cannot import name import_string Request Method: GET Request URL: …
Moinuddin Quadri
  • 46,825
  • 13
  • 96
  • 126
1
vote
1 answer

Django RedirectView "CSRF token missing or incorrect."

I am having a CSRF verification issue, even though I am using csrf_exempt decorator (via a helper mixin). Here's my code: class CSRFExemptMixin(object): @method_decorator(csrf_exempt) def dispatch(self, request, *args, **kwargs): …
Magnus Teekivi
  • 473
  • 1
  • 7
  • 21
1
vote
0 answers

django grappelli - disable on certain admin pages

I have a problem of collation between grappelli and django-constance moduls (the saving isn't working). I'm using django-constance v.1.0.1 and cannot upgrade it because the new versions does not work with django 1.6 . I want to disable grapelli on…
arnon cohen
  • 485
  • 1
  • 5
  • 15