Questions tagged [django-1.2]

Django 1.2 is a version of the Django framework, released in May 2010. Please only use this tag if your question relates specifically to this version.

Django 1.2 is a version of the Django framework, released in May 2010. Please only use this tag if your question relates specifically to this version.

See the release notes for more details.

19 questions
39
votes
9 answers

django-admin: Add extra row with totals

I'm using the standard django admin module to display a list of rows. One of the columns is a numerical field. I'd like to display an extra 'totals' row that has most of the columns as blank, except for the numerical column, which should be the…
Claudiu
  • 224,032
  • 165
  • 485
  • 680
15
votes
2 answers

reverse() argument after ** must be a mapping

I have an inscription form that doesn't work when submitting. I get this error: reverse() argument after ** must be a mapping, not str** This is my view: def inscription(request, seance_id): seance = get_object_or_404(Variant, id=seance_id) …
Armance
  • 5,350
  • 14
  • 57
  • 80
14
votes
2 answers

iphone push notifications passphrase issue (pyAPns)

I'm trying to implement push notifications for iphone based on PyAPNs When I run it on local but it blocks and prompts me to enter the passphrase manually and doesn't work until I do I don't know how to set it up so to work without prompt This is…
8
votes
1 answer

Django compound/nested/subforms?

I'm looking for an updated version of these Django SuperForms. Can't seem to get it to work in Django 1.2. In particular, I'd like it to work with ModelForms. My use case is almost identical to his; I have an Address model that I'd like to use as a…
mpen
  • 272,448
  • 266
  • 850
  • 1,236
7
votes
3 answers

Django 1.2: How to connect pre_save signal to class method

I am trying to define a "before_save" method in certain classes in my django 1.2 project. I'm having trouble connecting the signal to the class method in models.py. class MyClass(models.Model): .... def before_save(self, sender, instance,…
dmoss18
  • 867
  • 1
  • 12
  • 25
5
votes
1 answer

Django admin template: Accessing request object in template

I need the request object in all admin templates. In frontend templates, I can achieve this by rendering the template with RequestContext: return render_to_response('my_template.html', my_data_dictionary, …
Martin
  • 4,170
  • 6
  • 30
  • 47
3
votes
2 answers

Migrating a Google App Engine application from Django 0.96 to Django 1.2

I will soon start to port my different Google App Engine applications built with the default version of Django (0.96) to Django 1.2. I generally don't use any specific Django modules apart from the i18n stuff to get the websites translated. I plan…
Emilien
  • 2,971
  • 2
  • 22
  • 32
2
votes
1 answer

DJANGO_SETTINGS_MODULE -specified settings file not loaded?

I'm migrating a Google App Engine application from Django 0.96 to 1.2. In the process, I noted that the settings file I specified in my main handler was not loaded anymore (instead of the 3 specified languages, Django loaded the full list of default…
Emilien
  • 2,971
  • 2
  • 22
  • 32
2
votes
1 answer

Django syndication framework: How do I use the new class-based feed views?

Django 1.2 has brought in some changes in the syndication framework. According to this, I should now be able to do something like: from django.conf.urls.defaults import * from myproject.feeds import LatestEntries,…
Monika Sulik
  • 16,498
  • 15
  • 50
  • 52
1
vote
1 answer

Django admin: filtering by "now" in list view

I have a Django Model that implements a time range, like this: class Period(models.Model): start_time = models.DateTimeField(_(u'start time')) end_time = models.DateTimeField(_(u'end time')) I have a simple ModelAdmin for it as well. I'd…
GregM
  • 1,818
  • 1
  • 13
  • 18
1
vote
1 answer

Extend Django User model (make it work in request.user), Django 1.2.3

I'd like to extend the User model, so I can put in some extra fields and functions (not only fields, keep in mind, or else (well, still) I could use get_profile(), which I think is ugly). Also I would like to use that new extended User model in…
1
vote
1 answer

How to create push notifications in django?

I'd like to implement push notifications in android ? I prefer not to use an existing plugins would someone give me an example of code on how to send a message have been struggling since a week none of my tries have been successfull This is my last…
Armance
  • 5,350
  • 14
  • 57
  • 80
1
vote
1 answer

Cant write cookies on live instance of google appengine

I have been working towards converting one of our applications to be threadsafe. When testing on the local dev app server everything is working as expected. However, upon deployment of the application it seems that Cookies are not being written…
Jesse
  • 8,223
  • 6
  • 49
  • 81
1
vote
1 answer

how to redirect back to previous page in django?

I'm new to django I'm working on a voting application, and I need to stay on the same page after casting a vote Meaning that I want to refresh the page without leaving it and display a success message Here is my view.py (where I set and check…
Armance
  • 5,350
  • 14
  • 57
  • 80
0
votes
3 answers

Django : static files not loading

My django project contains a folder STATIC in which there are it's child folders css, images, js and swf. My web-site can not locate these files raising a 404 in the development server running on the terminal. I have a settings_local.py file in…
Zain Khan
  • 3,753
  • 3
  • 31
  • 54
1
2