You cannot post messages because only members can post, and you are not currently a member.
Description:
Discussion group for Django users. Django is a high-level Python Web framework (djangoproject.com).
|
|
|
Strange session behaviour
|
| |
Hello, I'm working for the first time on sessions with django and I'm facing a strange behaviour. on my main view, I do a del request.session['entity'] On my subviews, I set request.session['entity'] = 1 (for example) After that, for any view, I do: if request.session['entity']: context['entity'] = request.session['entity']... more »
|
|
Optimizing queries
|
| |
Hi,
I'm trying to optimize some queries I'm making, but I'm not sure how
to do it.
61 for t in items:
62 try:
63 t.price = t.user_item_rel_set.get
(user=u).payment_amount
64 except:
65 t.price = -1 * t.buyer_item_rel_set.get... more »
|
|
Error: No module named pollsdjango.contrib.admin
|
| |
Hi again,
Thanks for the help so far.
I am now working on the part 2 of the tutorial.
I updated the INSTALLED_APPS with 'django.contrib.admin':
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',... more »
|
|
Django web flow
|
| |
Hi!
Does Django have some sort of web flow similar to the Spring web flow
in Java? If it doesn't, what is the best strategy to implement web
flow in your opinion - by using only Django session framework or by
implementing database backened flow using only sessionId?
|
|
Class definition in the tutorial
|
| |
I am just learning Object Oriented terminology as I go along. Please
help me to understand what each word means in the class definition in
the tutorial [link] .
Thank you.
class => defines a class
Poll => name of the class? [my guess: this is just a name; it is not... more »
|
|
Thinking of making the switch from PHP to Django/Python
|
| |
All,
I have developed a 1.0 version of a recipe management tool. I wrote
it in PHP using the symfony framework. For the 2.0 version I want to
switch to python. The reason for the 1.0 version was I wanted to use
it to learn PHP. Now I really want to learn Python/Django. The
question I have though, is once an application is built, how hard is... more »
|
|
Cucumber for Python?
|
| |
django-users group: At my last gig I grooved on Cucumber to write customer tests, without all the hooey required in certain other systems. Here's a sample from their website: Feature: Search courses In order to ensure better utilization of courses Potential students should be able to search for courses... more »
|
|
how to keep the FileField being unmodified ?
|
| |
I display a ModelForm. if user edit the field, ModelForm.save() will save the edited field,and the non-edited field keep its origin value. but, FileField/ImageField do not act as that. if users have not modified the FieldField, it will be empty. how to implement that? thanks.
|
|
need foreign key help quick
|
| |
Hi. I have never used foreign keys.... I need to start and I need
help. I'm running python2.5 and django1.1. I have an installation
of Satchmo running fine; however, I need to modify the Product table.
I need to tie fields from the Product module to fields in another
module outside of satchmo.... more »
|
|
|