Re: Display a view of a single record?

2009-11-08 Thread derek
Well, the link to view a record would appear on each and every record line in the nomal tabular list. On Nov 8, 3:27 pm, joker wrote: > do u want to see last or first record? > > On 8 Kasım, 08:44, derek wrote: > > > > > I am not sure what you

Template Syntax Error: url config module not found

2009-11-08 Thread m3mitsuppe
Hi all, I have a strange error on a website I developed (quite some time ago...). The main url works: http://www.christina-kratzenberg.de So do all the links at the bottom except for the "portfolio" one. It's of course the interesting part where a photo portfolio is shown. When I click on

wsgi config

2009-11-08 Thread knight
Hi. I have a problem with configuring my django site with mod_wsgi. My httpd.conf is: LoadModule wsgi_module modules/mod-wsgi.so WSGIScriptAlias /peergw C:/mxhw/mx30/django.wsgi Order deny,allow allow from all Alias /media/ "C:\Program Files\Apache Software Foundation

Re: Extending django.contrib.auth.models.User

2009-11-08 Thread 头太晕
1. write a new User Model, it like django.contrib.auth.models.User 2. write a new backend , like django.contrib.auth.backends.ModelBackend 3. modify settings.py , add AUTHENTICATION_BACKENDS=('myproject.myapp.backends.MyBackend' ,)

Extending django.contrib.auth.models.User

2009-11-08 Thread Sri
Folks, Thought I might put it out there. I mean technically this is not limited to django. I need to extend the django.contrib.auth.models.User class (adding an extra field, making the email field unique and increasing the length of the username field). Now what are your thoughts on doing

Re: Optimizing queries

2009-11-08 Thread Tomasz Zieliński
On 8 Lis, 18:06, Victor wrote: > Hi, > > > user_item_rel_set is a m2m relationship between the User and Item > class.  For every item, I look back at its m2m relationship model and > retrieve payment_amount.  The only problem is, select_related() > doesn't grab the

Re: How to remove "" from text for email

2009-11-08 Thread Tomasz Zieliński
On 8 Lis, 21:41, zweb wrote: > I have > > description|safe|striptags > > but description has some "" in addition to html tags. How do I > strip that off? There is 'cut' built-in filter. In never used it but looking at its source code it looks to me that it does what

free latest full movie download, free ads, free web search, unlimited earning

2009-11-08 Thread rose.aishwarya kerala
free latest full movie download, free ads, free web search, unlimited earning http://www.southview.in/ * * http://www.southview.in/

how to create a faceted browser with Django

2009-11-08 Thread SeanB
Many web sites offer faceted browsing such that a series of categories can be selected to narrow a large set of records down to a few (or one). Such interfaces often show how many records match the various category values, which sometimes helps direct the search. Likewise, since only valid

Re: django test client doesn't handle non-multipart data in PUT

2009-11-08 Thread Matt Schinckel
On Nov 9, 11:45 am, Russell Keith-Magee wrote: > On Mon, Nov 9, 2009 at 9:40 AM, Matt Schinckel > wrote: > > > I am developing a django site that has a RESTful API, and allows for > > json representations of the resources. > > > I have hit a

Re: Help about models

2009-11-08 Thread Greg Brown
What you need is to keep your Education model as is (with no Lawyer Foreignkey) and add a ManyToManyField on your Lawyer class pointing to Education. Then you can go Lawyer.objects.filter(education__school='...') I think that will solve your problem Greg 2009/11/9 Zeynel

Help about models

2009-11-08 Thread Zeynel
Hello, I decided to start my own project with what I learned from part 1 of the tutorial. I have the project in C:\sw\sw\wkw The app sw.wkw is a prototype for a "who-knows-who" database for legal profession. I wanted to start with a really simple model: class Lawyer(models.Model): first =

Re: language switching in admin

2009-11-08 Thread Kenneth Gonsalves
On Sunday 08 Nov 2009 9:51:23 am Kenneth Gonsalves wrote: > > well I added the change language form to the main base.html form in admin > > (by overriding it), but the call to "/i18n/setlang/" is not working. > > Maybe a path problem. Any clues? > > > > now it is working - neat ;-) > it

Re: No module named django

2009-11-08 Thread Zeynel
Selam, evet izleyecem. Guzel bir site. On Nov 8, 8:25 am, joker wrote: > Merhaba;www.djangoturkiye.comadresinden videolu eğitimlerle ders hazırladım > inceleyebilirsin > > On 8 Kasım, 00:49, Zeynel wrote: > > > > > Great! Thank you very much. I

django generic views w multiple models

2009-11-08 Thread Ross
'm new to Django and programming in general. I'm trying to make a simple site that allows players of a sport sign up for leagues that have been created by the admin. In my models.py, I created two models: `from django.db import models from django.forms import ModelForm class

Re: django test client doesn't handle non-multipart data in PUT

2009-11-08 Thread Russell Keith-Magee
On Mon, Nov 9, 2009 at 9:40 AM, Matt Schinckel wrote: > > I am developing a django site that has a RESTful API, and allows for > json representations of the resources. > > I have hit a bit of a hitch with respect to the data that I need to > PUT, to do with the inbuilt

django test client doesn't handle non-multipart data in PUT

2009-11-08 Thread Matt Schinckel
I am developing a django site that has a RESTful API, and allows for json representations of the resources. I have hit a bit of a hitch with respect to the data that I need to PUT, to do with the inbuilt test client. If I use client.post(url, data, content_type='application/json', **AUTH), then

Re: Django web flow

2009-11-08 Thread Sam Lai
2009/11/9 Lana : > > 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

Re: querysets: if x in y

2009-11-08 Thread TiNo
On Mon, Nov 9, 2009 at 01:11, Edward McCaughan wrote: > where you're getting results where a property matches a value, could > you have it try anything in a list of values, eg: > ObjectOne.objects.filter(name=["toast","bread","shoes"]) >

Re: querysets: if x in y

2009-11-08 Thread Maksymus007
if you use custom user model, you could select user with related sets and filter out record having at least one FK empty. I think you could try a) run own, custom query b) use extra() function on queryset - but again, it should be used agains User model c) use database view

Re: querysets: if x in y

2009-11-08 Thread Edward McCaughan
one more thing: another way to look at it (hence the original title) would be instead of a normal queryset, eg: ObjectOne.objects.filter(name="toast") where you're getting results where a property matches a value, could you have it try anything in a list of values, eg:

querysets: if x in y

2009-11-08 Thread Edward McCaughan
I have a complicated query set to do, does anyone have any suggestions on the least insane way to do it? I need to merge two querysets and only get out ones with a common field: ModelOne.objects.filter(x=whatever) ModelTwo.objects.filter(y=foo) both of these objects have a property which is a

Full time Python/Django contractor needed for cloud development position (3-6 months)

2009-11-08 Thread Jian Zhen
Hi Djangoists, I am looking to hire contractor for the following position. Please forward to anyone you think might be a good fit. Company Virtualization is the technology that is poised to change the way we think about computing. VMware (NYSE: VMW) is the global leader in virtualization

Re: Helsinki area djangonauts: Let's meet up

2009-11-08 Thread Ismail Dhorat
Snap, looks like i will totally miss this. Just got back from Helsinki last week, Would have been totally awesome meeting other djangonauts and if the meetup was like 2 weeks earlier ;) Did meet the guys behind scred(who are djangonauts), and a few geeks at Barcamp Helsinki, which was

Re: Helsinki area djangonauts: Let's meet up

2009-11-08 Thread Lynoure
On Nov 6, 12:18 pm, Jukka Välimaa wrote: > The meeting place is Kaisla, and time is two weeks from now, Thu > 19.11, starting at 18:00. > > How does this sound? Count me in, too. -- Lynoure --~--~-~--~~~---~--~~ You received this

How to remove "" from text for email

2009-11-08 Thread zweb
I have description|safe|striptags but description has some "" in addition to html tags. How do I strip that off? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Strange session behaviour

2009-11-08 Thread Xavier Ordoquy
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']:

Optimizing queries

2009-11-08 Thread Victor
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 *

Re: Error: No module named pollsdjango.contrib.admin

2009-11-08 Thread Zeynel
Thank you!! On Nov 8, 12:01 pm, Karen Tracey wrote: > On Sun, Nov 8, 2009 at 11:58 AM, Zeynel wrote: > > > 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

Re: Error: No module named pollsdjango.contrib.admin

2009-11-08 Thread Karen Tracey
On Sun, Nov 8, 2009 at 11:58 AM, Zeynel wrote: > > 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', >

Error: No module named pollsdjango.contrib.admin

2009-11-08 Thread Zeynel
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',

Django web flow

2009-11-08 Thread Lana
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?

Re: Class definition in the tutorial

2009-11-08 Thread Gonzalo Delgado
El Sun, 8 Nov 2009 08:00:56 -0800 (PST) Zeynel escribió: > I am just learning Object Oriented terminology as I go along. Not the best idea if you ask me. You should try "wetting your feet" with simpler stuff first, and reading OOP theory. That being said, I *guess* you can

Re: Class definition in the tutorial

2009-11-08 Thread James Bennett
On Sun, Nov 8, 2009 at 10:00 AM, Zeynel wrote: > 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 http://docs.djangoproject.com/en/dev/intro/tutorial01/ . You may

Class definition in the tutorial

2009-11-08 Thread Zeynel
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 http://docs.djangoproject.com/en/dev/intro/tutorial01/ . Thank you. class => defines a class Poll => name of the class? [my guess: this is just

Re: need foreign key help quick

2009-11-08 Thread Karen Tracey
On Sat, Nov 7, 2009 at 8:39 PM, Bobby Roberts wrote: > > 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

Re: need foreign key help quick

2009-11-08 Thread Rishabh Manocha
On Sun, Nov 8, 2009 at 9:41 PM, Bobby Roberts wrote: > > anyone out there that can help me? > > On Nov 7, 8:39 pm, Bobby Roberts wrote: > > Hi. I have never used foreign keys I need to start and I need > > help. I'm running python2.5 and

Re: Thinking of making the switch from PHP to Django/Python

2009-11-08 Thread sstein...@gmail.com
On Nov 8, 2009, at 8:47 AM, Quenten Griffith wrote: > > 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

Thinking of making the switch from PHP to Django/Python

2009-11-08 Thread Quenten Griffith
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

Re: need foreign key help quick

2009-11-08 Thread Bobby Roberts
anyone out there that can help me? On Nov 7, 8:39 pm, Bobby Roberts wrote: > 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

Re: Display a view of a single record?

2009-11-08 Thread joker
do u want to see last or first record? On 8 Kasım, 08:44, derek wrote: > I am not sure what you mean by "on change list"? > > The usual way that records get displayed is in a tabular list format. > This is suitable when a record only has a few fields; some tables > however

Re: No module named django

2009-11-08 Thread joker
Merhaba; www.djangoturkiye.com adresinden videolu eğitimlerle ders hazırladım inceleyebilirsin On 8 Kasım, 00:49, Zeynel wrote: > Great! Thank you very much. I downloaded django-1.1.1 again and > untarred again. > > django directory is in