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
2
votes
2 answers

Does django core pagination retrieve all data first?

I am using django 1.5. I need to split pages to data. I read docs here. I am not sure about whether it retrieves all data first or not. Since I have a large table, it should be better to using something like 'limit'. Thanks. EDIT I am using queryset…
Nick Dong
  • 3,638
  • 8
  • 47
  • 84
2
votes
0 answers

get_queryset vs. get_query_set, Django 1.5 vs. 1.6

It looks like I have solved the problem by upgrading to Django 1.6. Just curious, what was going on. I am trying to integrate OSQA alongside an existing Django app, and I am encountering some very subtle issues. Just look at that --- this is one PDB…
Sergey Orshanskiy
  • 6,794
  • 1
  • 46
  • 50
2
votes
1 answer

How do you generate a custom form in Django?

In one of the template pages of my Django app, the page asks for the user to select the choices he wants, from a checkbox list. The catch is, that there are different choices for different users (for example, based on their past interests, there are…
CodyBugstein
  • 21,984
  • 61
  • 207
  • 363
2
votes
2 answers

Django url template tag gives NoReverseMatch Error

I've tried everything and I've read every question/answer on the subject and nothing is working for me. I'm hoping someone could offer another possible solution. I have a couple of apps. One of them is ManagerApp and one of them is Accounts. In the…
CodyBugstein
  • 21,984
  • 61
  • 207
  • 363
2
votes
1 answer

Login in Django Rosetta

I've installed a wonderfull app called django-rosetta. The problem I've found is first that it's not integrated in the django-admin, and it looks like it's not going to be. Second I need to give access to the translators to the rosetta app and they…
Lucas
  • 597
  • 3
  • 15
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
1 answer

Python with ReportLab. How to write a line with SimpleDocTemplate?

I'm using Python 2.7.6 and Django 1.5.5. How I can write a line in SimpleDocTemplate? I'm tryng this: @login_required def report(request): rep = Report(request.user.username + "_cities.pdf") # Title rep.add_header("Cities") line =…
user2240973
2
votes
1 answer

django app: Cannot assign "''": "ImageText.link" must be a "Link" instance

I'm building an app for my Django 1.5.1 and Django-cms installation. The app meant to permit to upload an image linked to an URL. My code : cms_plugins.py from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from…
Alex Garulli
  • 737
  • 1
  • 12
  • 29
2
votes
1 answer

Using PasswordResetForm in Django

My problem is: when I submit the form it falls into the else: block below that I have defined in my view. What I'm trying to accomplish: allow a user to reset their password using the django 1.5 built in PasswordResetForm functionality in django…
CodeTalk
  • 3,571
  • 16
  • 57
  • 92
2
votes
1 answer

No module named django.views

After many modifications on my Django project, it doesn't work. : ImportError at / No module named django.views Request Method: GET Request URL: http://127.0.0.1:8000 / Django Version: 1.5.1 Exception Type: ImportError Exception…
user2634739
  • 31
  • 1
  • 3
2
votes
1 answer

How to get Django 1.5 login_required decorator to return 403 status code

There is no raise_exception parameter that seems to work. @login_required def hi (request): return HttpResponse("hello") I need to call this from AJAX javascript so I do not want a redirect, just a 403 status code is good.
necromancer
  • 23,916
  • 22
  • 68
  • 115
2
votes
1 answer

Custom user model: What else is needed to be production ready?

I am new to Django and need to use an email address as a username for my app - plus add some custom fields. So I am following the full example in django docs to make a custom user model. I am very worried about the part in the example that…
soo ling
  • 127
  • 2
  • 10
2
votes
0 answers

Can't find static files for the Django admin interface

I can't find an answer to what seems like a simple question. I have a Django 1.5 app on Heroku using staticfiles. The static files defined within my app can be found fine: $ heroku run python manage.py findstatic bootstrap.min.css Running `python…
hcarver
  • 7,126
  • 4
  • 41
  • 67
2
votes
1 answer

updated django from 1.4 to 1.5.1; now DeprecationWarning on setup_environ

updated django from 1.4 to 1.5.1 now its throwing this: DeprecationWarning: The 'setup_environ' function is deprecated, you likely need to update your 'manage.py'; please see the Django 1.4 release notes…
Peter
  • 1,023
  • 4
  • 18
  • 23
2
votes
2 answers

Some static files in django serve 404 when other dont- any ideas why?

Using django 1.5 I got static files configured like this: STATIC_ROOT = '/home//Projects//static' STATIC_URL = '/static/' i just run manage.py collectstatic directory…
Lord_JABA
  • 2,545
  • 7
  • 31
  • 58