Questions tagged [django-1.3]

Django 1.3 is a version of the Django framework, released in March 2011. Please only use this tag if your question relates specifically to this version.

Django 1.3 is a version of Django framework, released in March 2011. Please only use this tag if your question relates specifically to this version.

See the release notes for more details.

135 questions
0
votes
1 answer

Django won't recognize my static files on my dev machine

I've been tasked with fixing some aspects of a django 1.3 site, that runs on Apache/PostgreSql on the server. I'm trying to set it up on my development machine, with a virtual environment with postgres and the internal python developer server. I…
Nicolas Straub
  • 3,381
  • 6
  • 21
  • 42
0
votes
0 answers

django admin form - display radio button to control save_model?

In an application adding 'customer' objects the user enters 'shipping' and 'billing' addresses. If the billing address is not added the save does not validate. I'd like to change this so that user can specify 'Use shipping for billing' via a YES/NO…
glaucon
  • 8,112
  • 9
  • 41
  • 63
0
votes
1 answer

Django foreign key is not set and hence unable to save form

I have a simple foreign key relationship between two tables. I am able to save the parent, but am unable to save the child which has a foreign key to the parent. This is what my models look like: class Product(models.Model): month_choices =…
0
votes
1 answer

Django 1.3 authentication

We have digest authentication in our application. For some reason we are seeing for a few users having different id, username as in "auth_user" table but for some reason in the django_digest_partialdigest the user_id is different but the "login"…
anishek
  • 1,675
  • 2
  • 13
  • 19
0
votes
2 answers

Django staticfiles and CSS and javaScript

I'm using django 1.3 for production and want to use static file's in my CSS and javaScript but it doesn't work , I don't have any problem in my HTML ! how must solve this problem ? I didn't find any solution in django doc . I use this code for…
Shervin Gharib
  • 728
  • 2
  • 14
  • 29
0
votes
1 answer

Django 1.3.1 - Unhandled exception in thread

I' currently doing django from some video tutorial. I had difficult to figure out the line which forces to following error. Validating models... Unhandled exception in thread started by
nKandel
  • 2,543
  • 1
  • 29
  • 47
0
votes
4 answers

Django: Static files missing when rendering template

I am using django 1.3 and trying to deploy a django project (client sent) on my dev machine (ubuntu 12.04). The problem is regarding the static files. My directory structure is as follows: project_name media static css img …
Zain Khan
  • 3,753
  • 3
  • 31
  • 54
0
votes
1 answer

Batch union of django querysets

I'm trying to get a single queryset from the output of a recursive function and i am hitting a performance problem. Basically it seems that the act of trying to combine the individual querysets is doubling the time it takes to process (I was…
Jharwood
  • 1,046
  • 2
  • 11
  • 28
0
votes
1 answer

Django custom manage.py commands calling functions in app

I have a command which is used to download data from an API, and then store it into a local database, it's currently part of my app but I want to add the ability to run it from a manage.py command. Currently i'm just trying to call it as i would…
Jharwood
  • 1,046
  • 2
  • 11
  • 28
0
votes
2 answers

Retrieving the name of the class which powers a model field

I'm handling some edge cases in some django code, and i'm hitting a problem that is only encountered when specific fields are involved. I want to be able to detect the class that the Model is using for a field and depending upon the result drop into…
Jharwood
  • 1,046
  • 2
  • 11
  • 28
0
votes
0 answers

How to call a Python function within a Backbone.js view?

I'm working on a project that's in the process of migrating from Django 1.3 to Node/Backbone.js Consequently, I'm working with two sets of views. I have a function for validating and processing images to be uploaded via a form, written in Python…
0
votes
1 answer

Django 1.3 Pagination Not Showing Page Links and Showing all Records

I'm trying to set up Django Pagination in Django 1.3, It doesn't seem to be working, as I have over 5 records returned and the links are messed up View: def directory(request, bought_in_control_panel_id): listings =…
Jharwood
  • 1,046
  • 2
  • 11
  • 28
0
votes
0 answers

Django CSRF validation, when it's not turned on?

I'm trying to post some data from one python application to a django site using urllib, as they are separate programs. Now i don't have CSRF middleware enabled and I've specifically got @csrf_exampt on the view. It's still failing with a CSRF…
Matt
  • 53
  • 5
0
votes
2 answers

Django: using {{STATIC_URL}} from python side

Building a "history" system that serves static pages based on the date the user asks for. Not all dates have associated pages, and it isn't possible to know, based on what's in the database which do, which don't. I haven't been able to find a way to…
griswolf
  • 71
  • 1
  • 5
0
votes
1 answer

How do I know which child class a Django model object is when selected through the parent class?

I have a main Event class, and four event types. Each of them is a subclass of (at least) Event. On an event's detail page, I am adding a link back to the admin interface for a given event to save the time of searching in the admin. Unfortunately,…
Bryson
  • 1,186
  • 2
  • 13
  • 26
1 2 3
8
9