Questions tagged [django-1.5]

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

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

See the release notes for more details.

275 questions
0
votes
1 answer

Django template: localize number returned from simple tag

I hope this question is not here, I have googled it for long time and not found anything. I have problem with formating numbers in templates, but somehow special. Maybe, this is whole problem how to call filters on values returned form simple tags.…
tomis
  • 1,884
  • 1
  • 15
  • 28
0
votes
0 answers

Django error "The secret_key setting must not be empty" after upgrading from 1.4.3 to 1.5.1

I just upgraded my Django from 1.4.3 to 1.5.1 using pip install django --upgrade. After the upgrade, my dev site started getting Internal Server Error. I tried to run ./manage.py command but it told me "The secret_key setting must not be empty". I…
chaonextdoor
  • 5,019
  • 15
  • 44
  • 61
0
votes
1 answer

django localization problems 1.5

After the migration to the new django version from 1.2 I have found that my localization in templates does not work. I have tried to recompile *.mo files - it's seems that translation data have been right processed but it did not helped. May be…
Oleg
  • 3,080
  • 3
  • 40
  • 51
0
votes
3 answers

Django 1.5 custom user model - signals limitation

It's written in the doc that: Another limitation of custom User models is that you can’t use django.contrib.auth.get_user_model() as the sender or target of a signal handler. Instead, you must register the handler with the resulting User model. See…
lajarre
  • 4,910
  • 6
  • 42
  • 69
0
votes
1 answer

Overriding namespace in array content

I have following: from spyne.service import ServiceBase from spyne.util import xml from spyne.model import complex, primitive class ComplexModel(complex.ComplexModelBase): __namespace__ = 'http://xml.candyshop.com/ns/candies/' …
kbec
  • 3,415
  • 3
  • 27
  • 42
0
votes
0 answers

Buildout and django-registration from repository for Django 1.5

I'd like to use Buildout to get django-registration with Django 1.5, and I have a custom user using MyUser(AbstractUser). I used to get it from the recipe v0.8 and it was great. Since, I switched to 1.5, remove my UserProfile and use this custom…
Dachmt
  • 2,079
  • 4
  • 29
  • 45
0
votes
1 answer

Cannot use mandatory uuid (or other pattern-related must-be type) as rpc argument

I have webservice like this: class ExampleService(ServiceBase): __tns__ = 'http://xml.company.com/ns/example/' @rpc(Mandatory.Uuid, _returns=Unicode) def say_my_uuid(ctx, uuid): return 'Your UUID: %s' % uuid @classmethod …
kbec
  • 3,415
  • 3
  • 27
  • 42
0
votes
1 answer

django social auth not returning first_name and last_name when creating a profile - django 1.5

Am using a custom user model to maintain user details with django 1.5, below is my code. When using social auth, everything seems to be working fine accept first_name and last_name. In my table table structure, I do not have first_name and…
Mo J. Mughrabi
  • 6,747
  • 16
  • 85
  • 143
0
votes
1 answer

django social auth pre_update signal is not getting fired when upgrading to django 1.5

I had the below code which was working perfectly in django 1.4, since I upgraded everything in the code remains functional accept for the signal is not being fired at all. Previously, when I was on 1.4, I was using user Profile to maintain user…
Mo J. Mughrabi
  • 6,747
  • 16
  • 85
  • 143
0
votes
2 answers

HTML structure disturbed after ajax response

I am using django 1.5, python 2.7 and jquery 1.9. Though this question is primarily related to javascript. My html code is as below. This forms a list of objects like:
Zain Khan
  • 3,753
  • 3
  • 31
  • 54
0
votes
2 answers

How to manually authenticate a user after registration when using custom login?

Perhaps the most interesting feature of Django 1.5 is the custom user that finally bids farewell to the outdated username. There is an excellent nearly out-of-the-box example in the documentation to create a user where you would need only the email…
Houman
  • 64,245
  • 87
  • 278
  • 460
0
votes
2 answers

Django 1.5 - Cannot find the defined view when using TemplateView

I create index.html and I use TemplateView. When I'm trying to access my index, I got an error that my index view is not defined. I don't know why, I just follow this pattern…
catherine
  • 22,492
  • 12
  • 61
  • 85
0
votes
1 answer

Django 1.5: How to use generic views?

I am trying to use the Generic Views in Django 1.5 and its kind of confusing. So far I have been using functions within views.py. I agree that the function approach has more boilerplate code, but at the same time you have more control over it as a…
Houman
  • 64,245
  • 87
  • 278
  • 460
0
votes
2 answers

Getting 404 Error when I start my EXT JS App in DJANGO

I want to integrate EXT JS's Portal Example in my application so I downloaded that from http://try.sencha.com/extjs/4.1.0/community/extjs4-mvc-portal/ When I try it in Java.. it runs perfectly fine.. but when I run it in Django, where my…
First Blood
  • 235
  • 1
  • 7
  • 21
0
votes
1 answer

Why can´t I save an object when I am using AUTH_USER_MODEL parameter?

I just migrated to Django 1.5. But I am having a some difficulties to work with AUTH_USER_MODEL. Look the following example, I just can't update a value in the database. What I am doing wrong? Test 1 user =…
Thomas
  • 2,256
  • 6
  • 32
  • 47
1 2 3
18
19