Questions tagged [django-1.4]

Django 1.4 is a version of the Django framework, released in March 2012, with enhanced time zones support and various other improvements. Please only use this tag if your question relates specifically to this version.

Django 1.4 is a version of the Django framework, released in March 2012, with enhanced time zones support and various other improvements. Please only use this tag if your question relates specifically to this version.

See the release notes for more details.

227 questions
0
votes
2 answers

Django url tag - static versus dynamic "path.to.view" parameter

I'm new to Django and puzzled. Using Django 1.4. Inside one of my templates, this code works: {% for element0, element1 in menu.elements %} {% endfor…
codemonkey
  • 2,661
  • 2
  • 24
  • 34
0
votes
1 answer

Change admin inlines based on object condition using Django 1.4

In the ModelAdmin of my application i want to change the inlines of a change_view based on a certain condition of the object. class TextInline(generic.GenericStackedInline): model = Text class ImageInline(generic.GenericStackedInline): …
Dirk Eschler
  • 2,539
  • 1
  • 21
  • 41
0
votes
1 answer

Hooking up lamson with django 1.4

I'm trying to hook-up lamson with django 1.4. I've seen the documentation on hooking up lamson with django and the librelist example from the source, but it seems to use a previous version of django. I have created a "webapp" project that contains…
user19304
  • 55
  • 4
0
votes
1 answer

Error while synch db in Django 1.4

I just started using Django 1.4 and am facing an issue while executing running syncdb. Executed the following: mynane@mynane:~/djsamplecode$ django-admin.py startproject mysite mynane@mynane:~/djsamplecode$ ls mysite manage.py …
futurenext110
  • 1,991
  • 6
  • 26
  • 31
0
votes
1 answer

Django 1.4 yet another reverse NoReverseMatch error on a URL with parameters

Here's yet another reverse error. The URLs work as expected. I have the basic functionality mapped out and can click around the site without any problem. It's only when I try to reverse the URL that an error is thrown. If I comment out the call to…
OpCodeOmega
  • 319
  • 4
  • 14
0
votes
2 answers

How to expose a queue from a python script to other software?

I wrote a daemon script in python that takes dicts from a queue and processes files based on the information from those dicts. Now I want to insert some additional dicts in that queue from a separated Django script. Is it possible to expose the…
JasonTS
  • 2,479
  • 4
  • 32
  • 48
0
votes
2 answers

Serve multiple Django and PHP projects on the same machine?

The documentation states that one should not server static files on the same machine as as the Django project, because static content will kick the Django application out of memory. Does this problem also come from having multiple Django projects on…
JasonTS
  • 2,479
  • 4
  • 32
  • 48
0
votes
2 answers

How to define template by url in Django?

I want create a project where every user can have his own 'homepage'. So I want to be able to set a template for each user and show it on his home page url. Do I just save the template name in the user profile and pass it to the template loader or…
JasonTS
  • 2,479
  • 4
  • 32
  • 48
0
votes
2 answers

Django: automatically send variable to templates from every view?

Possible Duplicate: How can I pass data to any template from any view in Django? I wonder if there's a way to make every view send a variable or include it in the request context to every template automatically? Something like the messages…
olofom
  • 6,233
  • 11
  • 37
  • 50
0
votes
1 answer

How to connect multiple modules in Django?

I have 3 models. class Picture(models.Model) name = models.CharField(max_length=255) image_field = models.ImageField(upload_to="foo/") slug = models.SlugField() [...] class Size(models.Model): name = models.CharField(max_length=255) …
JasonTS
  • 2,479
  • 4
  • 32
  • 48
0
votes
2 answers

Problems while changing to class views in Django

I am trying to change to class-based views in Django after an upgrade and I have two questions regarding this. This is my code, simplified: # urls.py urlpatterns += patterns('project.app.views', ('^$', 'index'), # Old style url(r'^test/$',…
olofom
  • 6,233
  • 11
  • 37
  • 50
0
votes
1 answer

Django: setup.py versus copying directory

On windows 7 I have python2.6.6 installed at C:\Python26 I wanted to install Django, so I: downloaded and untarred the files into C:\Python26\Django-1.4 ran python setup.py install verified it was installed by opening IDLE and typing, import…
Bryan Wolfford
  • 2,102
  • 3
  • 20
  • 26
0
votes
1 answer

Uploaded content not showing in django 1.4

I've recently updated a platform I'm working on to django 1.4. Since I've updated it, all the access to user uploaded content returns a HTTP 302 (Redirect) code, resulting in images now loading or content not reachable. I don't know where to search,…
CastleDweller
  • 8,204
  • 13
  • 49
  • 69
0
votes
2 answers

Django Admin site display differs on apache and django server

I recently installed Django-1.4. While the display of admin page on Django serveris as expected, the display on apache seems to be surprising. Apache is only displaying text on web page why? Thanks in advance.
Sudip
  • 523
  • 2
  • 7
  • 14
0
votes
1 answer

Many to many SQL generation statements in Django 1.4

The django1.4 release notes say: The many to many SQL generation functions on the database backends will be removed. Can somebody point me to these functions? Where are they located? thanks!
Rajat
  • 1,766
  • 2
  • 21
  • 42
1 2 3
15
16