Re: Curious about 1.0 release.

2006-10-24 Thread Kenneth Gonsalves
On 25-Oct-06, at 6:03 AM, Russell Keith-Magee wrote: > As for convincing your IT manager - Django 0.95 is stable (performance > stable, not API stable) - and I haven't had any problems using SVN > trunk on production sites. Both versions are being used successfully > on large scale projects. The

Re: New to Django, but old to the web.

2006-10-24 Thread Kenneth Gonsalves
On 25-Oct-06, at 7:58 AM, Levi McCallum wrote: > For example, I have 3 sections. First an about page, an article page > and a media page. > > I will later do the code for them, but, would I make a separate > application for each? I really don't know how the MTV structure works. start by making

Re: Django & Movable Python

2006-10-24 Thread [EMAIL PROTECTED]
Jay wrote: > Getting a database working on the USB stick is next. > > Jay Easy. SQLite --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@goo

Re: get_next_by variable

2006-10-24 Thread James Bennett
On 10/24/06, shelbybark <[EMAIL PROTECTED]> wrote: > While getting familiar with Jeff Croft's Lost-Theories code, I ran > across a variable called get_next_by_x (or get_previous_by_x). I have > not been able to find any documentation for this, but in testing it out > it appears to be only usable b

Re: New to Django, but old to the web.

2006-10-24 Thread Russell Keith-Magee
On 10/25/06, Levi McCallum <[EMAIL PROTECTED]> wrote: > > Ok then, > > I might just ask some questions. > > I'm not quite familiar with the whole 'application' side of things. > > For example, I have 3 sections. First an about page, an article page > and a media page. > > I will later do the code

Re: undocumented variable - get_next_by_

2006-10-24 Thread Malcolm Tredinnick
On Tue, 2006-10-24 at 20:21 -0700, shelbybark wrote: > Hello all. I thought I sent this in earlier tonight, but cannot find a > record of it. So forgive me if it's a duplicate. > > While getting familiar with Jeff Croft's Lost-Theories code, I ran > across a variable called get_next_by_x (or get_

get_next_by variable

2006-10-24 Thread shelbybark
While getting familiar with Jeff Croft's Lost-Theories code, I ran across a variable called get_next_by_x (or get_previous_by_x). I have not been able to find any documentation for this, but in testing it out it appears to be only usable by date-based item from a model. I was trying to figure out

undocumented variable - get_next_by_

2006-10-24 Thread shelbybark
Hello all. I thought I sent this in earlier tonight, but cannot find a record of it. So forgive me if it's a duplicate. While getting familiar with Jeff Croft's Lost-Theories code, I ran across a variable called get_next_by_x (or get_previous_by_x). I have not been able to find any documentation

Re: New to Django, but old to the web.

2006-10-24 Thread Levi McCallum
Ok then, I might just ask some questions. I'm not quite familiar with the whole 'application' side of things. For example, I have 3 sections. First an about page, an article page and a media page. I will later do the code for them, but, would I make a separate application for each? I really do

Re: ANN: Chesspark - A django based online chess community.

2006-10-24 Thread Christopher Zorn
orestis wrote: > Very nice indeed! Maybe you can make a write up describing some > design/implementation issues? I'm particularly interested in the Jabber > integration and the cool DHTML in the web client... This is in the works. Basically there are some jabber components that handle different p

Re: magic-removal upgrade problem - No module named extensions

2006-10-24 Thread ZebZiggle
Yup, was: from django.core.extensions import XXX now: from django.shortcuts import XXX thx! -Sandy PS> I'm sure there'll be more ... hang in there! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: Django & Movable Python

2006-10-24 Thread Malcolm Tredinnick
On Tue, 2006-10-24 at 10:22 -0700, Jay wrote: > I've been wanting to play with Django, but usually don't have free time > on the same machine throughout the day. So Django combined with > Movable Python seemed like a good idea. Since I'm new to both Django > and Movable Python (and fairly new t

Re: Store uploaded image by id

2006-10-24 Thread Malcolm Tredinnick
On Tue, 2006-10-24 at 19:10 +0200, Dirk Eschler wrote: > Hi, > > i'm trying to store an uploaded image in a directory named after its id. Like > in this simplified example: > > class Project(models.Model): > image = models.ImageField(upload_to='upload/projects/'+self.id) > > Since self isn

Re: Adding variable numbers of related objects in a form

2006-10-24 Thread Malcolm Tredinnick
On Tue, 2006-10-24 at 08:19 -0700, exdnc wrote: > Hi all, > > I'm trying to build a form that lets the user add any number of steps > to an existing activity. I've got an activity model and a related > steps model, with an activity having 0 or more steps. The > functionality I want is to have a

Re: magic-removal upgrade problem - No module named extensions

2006-10-24 Thread Russell Keith-Magee
On 10/25/06, ZebZiggle <[EMAIL PROTECTED]> wrote: > Any idea what would cause this ViewDoesNotExist exception (No module > named extensions)? > > 120. raise ViewDoesNotExist, "Could not import %s. Error was: %s" % > (mod_name, str(e)) > > ViewDoesNotExist at /mydarksecret/myUrl/ > Could not

Re: New to Django, but old to the web.

2006-10-24 Thread Russell Keith-Magee
On 10/25/06, Levi McCallum <[EMAIL PROTECTED]> wrote: > But I am not fully convinced that I should choose Django. Should I? Yes. :-) Seriously, this is such an open ended question - nobody but you can answer this question for you. Try it out, see how it goes. If you have any questions, ask. You

Re: syncdb complaining table already exists

2006-10-24 Thread Malcolm Tredinnick
On Mon, 2006-10-23 at 21:22 +, yary wrote: > Hi, new to Django- > > I have my data model all created. I can run syncdb once, and it creates > my database schema: > > C:\webapp\Site>python manage.py syncdb > Creating table auth_message > Creating table auth_group > Creating table auth_user >

Re: Best configuration for small VPS

2006-10-24 Thread Kenneth Gonsalves
On 24-Oct-06, at 8:41 PM, orestis wrote: > Anyway, I'm interested in minimizing memory usage. What kind of > configuration is preferred for that ? lighttpd or apache2 ? mysql or > postgres ? > > I'll have to figure out why I have 10 mysqld instances eating 45M out > of 64M of memory. Each apache

Re: troubles with views

2006-10-24 Thread Russell Keith-Magee
On 10/24/06, peks <[EMAIL PROTECTED]> wrote: > > now i have problems with views.py. all i want to do for now is list all > news items (object name Novica), their title, date and body text. > > is there anybody who is so kind enough to point me to the right > direction? i've managed to do this: Lo

Re: troubles with views

2006-10-24 Thread Kenneth Gonsalves
On 24-Oct-06, at 5:58 PM, peks wrote: > latest_novica_list = novica.get_list(order_by=['-pub_date']) this is old syntax latest_novica_list = Novica.objects.all().order_by('-pub_date',) -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~~---

Re: Saving arbitrary data without database

2006-10-24 Thread Malcolm Tredinnick
On Mon, 2006-10-23 at 00:21 +, orestis wrote: > Hello, > > I would like to save some arbitrary data that there's no point in > keeping in a database. > > It's just a float number really, that some of my models will use, and > it will be updated using a cron job. It will not presented in a >

Re: Store uploaded image by id

2006-10-24 Thread sansmojo
I haven't tried this myself yet, but you might check out AutoImageField at http://code.djangoproject.com/wiki/CustomUploadAndFilters --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to t

magic-removal upgrade problem - No module named extensions

2006-10-24 Thread ZebZiggle
Hey all! I'm finally getting around to migrating from .91 to .95. I've done all the grunt work from the docs and now I'm doing some quick tests ... and running into problems. I'm sure I missed a step somewhere. Any idea what would cause this ViewDoesNotExist exception (No module named extensions

Re: QuerySet help

2006-10-24 Thread brad
Great! Thank you both for taking the time to reply and giving acurate advice. I appreciate it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@

New to Django, but old to the web.

2006-10-24 Thread Levi McCallum
Hey guys, I have started to look into the way of Web frameworks. See, I have been a web developer ever since the humble beginings of php and I have enjoyed making and designing websites. A few months ago, I was hired by a company to work full time on a content website called http://mentoringlead

Re: Curious about 1.0 release.

2006-10-24 Thread Russell Keith-Magee
On 10/25/06, sansmojo <[EMAIL PROTECTED]> wrote: > > I know that asking when 1.0 is going to be released is not going to get > an answer, but can anyone at least narrow it down for me? As soon as possible, but no sooner :-) > Will it be > this year? Several months? A year? Will there be inter

Re: Trying to Extend User - but system not writing to database.

2006-10-24 Thread MerMer
I moved to creating the model with a OneToOne relationship rather than a foreign key and have it got it to work. Not sure why I was having problems as Foreign Key --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dj

Re: Admin list not displaying more than one object

2006-10-24 Thread MerMer
Duhhh! So busy looking for problems that I forgot to look for the obvious. My apologies for wasting time. MerMer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send em

Re: QuerySet help

2006-10-24 Thread Zak Johnson
brad wrote: > When I am in "manage.py shell", I import the model Data and I > execute Data.objects.all(), what is returned to me are all of the > prices in the database table. Actually, that returns a list of Data instances. You've told Django (via the __str__ method in class Data) that it shou

Re: QuerySet help

2006-10-24 Thread sansmojo
Hi, brad. I'm sort of new myself, but I'm fairly sure you want to use Data.objects.filter(quantity=25). So, in the shell, you might try to iterate over these like this: query = Data.objects.filter(quantity=25) for thinger in query: print "price: %s\ncompany: %s\nurl: %s\n" % (query.price,

Re: CRUD generic views do not work on model with foreign key

2006-10-24 Thread doubtintom
Yep, that did it. Thanks. Actually, my urls.py was OK, it was decoupled into the application directory. But that darn template got imported into the project sort of late at night, and foxed me into misinterpreting the symptoms. I have seen some template errors caught by django. Some but not all,

Curious about 1.0 release.

2006-10-24 Thread sansmojo
Hello all! I am working on a fairly large (for me) event listing and registration project for the continuing education division I work for at a local university. The project will, I hope, be a nice contribution to the Django community due to the fact that there are many CE units across the count

Re: Returning an average from a Related Field.

2006-10-24 Thread Ed
Hi John, thanks for your introduction to django dispatchers. I think this is a greatly overlooked facility and has many applications. > 1- signals. Benefits: it works with all dbs (supported by django), the > fields are sortable using the api. Drawbacks: you can't use non-django > code to do dat

QuerySet help

2006-10-24 Thread brad
Below is part of my models.py file and I am having trouble getting a queryset that includes all of the information that I need it to include. When I am in "manage.py shell", I import the model Data and I execute Data.objects.all(), what is returned to me are all of the prices in the database tabl

Re: Creating a decoration for the views

2006-10-24 Thread Fabien Schwob
> # Create the decorator > def decorador(function): > def new_function(*args, **kwargs): > # Do what need do > return function(*args, **kwargs) > new_function.__doc__ = function.__doc__ > new_function.__name__ = function.__name__ > return new_function > > #

translate app-name

2006-10-24 Thread [EMAIL PROTECTED]
http://groups.google.com/group/django-users/browse_thread/thread/5a77015fbbf36ab2/e80f1666cd824099?lnk=gst&q=installed+apps+translate&rnum=1&auth=DQAAAG0mMb0VFyK7nCzOeOhA6CzCf39nN82CLftJByEwqjcJeR2BPvfcy6Rao0aqWy11Bu4eUZGAt0_YP3zqdPugw6BXk2qPH3xld2jXhRs56wYDMqHxzDQXw0K4jNuqmTsmTalOWzy80RNmsp_o

Re: Admin list not displaying more than one object

2006-10-24 Thread RajeshD
On Oct 24, 12:14 pm, "MerMer" <[EMAIL PROTECTED]> wrote: > Using the following code I am only getting 1 object returned in the > admin list for UserProfile. > So if I have 5 objects - I get 4 blank lines and then 1 line with the > listing. Do those 4 records have a first_name and last_name defi

Re: Comments and karma tutorial

2006-10-24 Thread Rob Hudson
I've been looking at this as well. It appears that the ratings and comments are tied together and must be submitted together. Is this true? I'd like a user to submit a comment along OR rate it OR both. Is that possible? --~--~-~--~~~---~--~~ You received this m

Re: Best configuration for small VPS

2006-10-24 Thread mamcxyz
Under a similar memory limit I put lighttpd (more easy on resources) and use a shared MySql db account (is best than put it on the vps... the database servers are built for be more robust and probably have more hardware). --~--~-~--~~~---~--~~ You received this me

Re: Returning an average from a Related Field.

2006-10-24 Thread johnnnnnnn
On Tue, Oct 24, 2006 at 02:28:43PM +0200, Carlos Yoder wrote: > While I believe this mini tutorial on signals is great, I guess this > functionality would be better accomplished in the DB itself, via a > trigger. There are, i think, three ways of doing what was asked for: 1- signals. Benefits: i

Re: Comments and karma tutorial

2006-10-24 Thread patrickk
sorry, my fault ... with following your tutorial everything´s fine ... thanks, patrick Am 24.10.2006 um 18:47 schrieb patrickk: > > thanks for the tutorial. > > I did exactly what is described there and ran into a (small) problem: > > give karma results in > This comment has 1 points of karma,

Re: Django Host Provider

2006-10-24 Thread Don Arbow
On Oct 24, 2006, at 10:05 AM, orestis wrote: > > http://code.djangoproject.com/wiki/DjangoFriendlyWebHosts In addition, this question is asked very frequently, you can search google groups and find a bunch of answers in just the last month or two. Don --~--~-~--~~~

Re: Django Host Provider

2006-10-24 Thread [EMAIL PROTECTED]
Thank you! orestis wrote: > http://code.djangoproject.com/wiki/DjangoFriendlyWebHosts --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googleg

Django & Movable Python

2006-10-24 Thread Jay
I've been wanting to play with Django, but usually don't have free time on the same machine throughout the day. So Django combined with Movable Python seemed like a good idea. Since I'm new to both Django and Movable Python (and fairly new to Python itself), getting it working was not intuitive

Re: media files with django dev-server

2006-10-24 Thread patrickk
Am 24.10.2006 um 19:11 schrieb orestis: > > You mention dev-server, yet you talk about apache and lighttpd. > > If running the dev-server, you shouldn't do anything, since it figures > out itself how to serve files. yes, but it looks for media-files in django/contrib/admin/media/ ... I´d prefer

Re: Trying to Extend User - but system not writing to database.

2006-10-24 Thread [EMAIL PROTECTED]
Do you also have lines like this? class Admin: pass http://www.djangoproject.com/documentation/tutorial2/ Paul Prescod --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to thi

Re: media files with django dev-server

2006-10-24 Thread orestis
You mention dev-server, yet you talk about apache and lighttpd. If running the dev-server, you shouldn't do anything, since it figures out itself how to serve files. If you're running apache, either with mod_python or with mod_fcgi, you should just create a link to the /foo/bar/admin/media direc

Store uploaded image by id

2006-10-24 Thread Dirk Eschler
Hi, i'm trying to store an uploaded image in a directory named after its id. Like in this simplified example: class Project(models.Model): image = models.ImageField(upload_to='upload/projects/'+self.id) Since self isn't defined, how can i access the id? Best Regards, Dirk Eschler -- Dir

Re: Django Host Provider

2006-10-24 Thread orestis
http://code.djangoproject.com/wiki/DjangoFriendlyWebHosts --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from

Djangoogle search engine

2006-10-24 Thread Afternoon
Using the brand spanking new Google Co-op Custom Search Engine tool, I've created a Django-specific search engine. http://www.google.com/coop/cse?cx=014511893357231986968%3Agstwyqkcqj0 It prioritises a bunch of Django sites, the main site, the code site and all of the sites mentioned on the comm

Django Host Provider

2006-10-24 Thread [EMAIL PROTECTED]
I am thinking about developing a site using Django and am interested other peoples' experiences on web host providers that provide service for Django based sites. I don't know of any and am interested in opinions/experiences. --~--~-~--~~~---~--~~ You received th

Re: Comments and karma tutorial

2006-10-24 Thread patrickk
thanks for the tutorial. I did exactly what is described there and ran into a (small) problem: give karma results in This comment has 1 points of karma, 1 positive and 0 negative. take karma results in This comment has 1 points of karma, -1 positive and 1 negative. any ideas? thanks, patrick

Re: syncdb complaining table already exists

2006-10-24 Thread Michael Radziej
yary schrieb: > Hi, new to Django- > > I have my data model all created. I can run syncdb once, and it creates > my database schema: > > C:\webapp\Site>python manage.py syncdb > Creating table auth_message > Creating table auth_group > Creating table auth_user > Creating table auth_permission >

Admin list not displaying more than one object

2006-10-24 Thread MerMer
Using the following code I am only getting 1 object returned in the admin list for UserProfile. So if I have 5 objects - I get 4 blank lines and then 1 line with the listing. class UserProfile(models.Model): user=models.OneToOneField(User) def __str__(self): return "%s %s"

media files with django dev-server

2006-10-24 Thread patrickk
I know, this has been asked (and answered) before but I just can´t display my media-files with the dev-server. I´m getting the following error: Page not found: /var/www/vhosts/myserver.at/django_src/django/contrib/ admin/media/uploads/... because in the source-code, the URL to the image uses p

syncdb complaining table already exists

2006-10-24 Thread yary
Hi, new to Django- I have my data model all created. I can run syncdb once, and it creates my database schema: C:\webapp\Site>python manage.py syncdb Creating table auth_message Creating table auth_group Creating table auth_user Creating table auth_permission Creating many-to-many tables for Gro

Best configuration for small VPS

2006-10-24 Thread orestis
Hello, I got a trial server at budgetdedicated.com, seems very nice. The price is comparable to shared hosting, everything seems fine. Anyway, I'm interested in minimizing memory usage. What kind of configuration is preferred for that ? lighttpd or apache2 ? mysql or postgres ? I'll have to fig

Re: Filtering on the existance of a "reverse" foreign key relationsship

2006-10-24 Thread Christian Joergensen
Jonathan Buchanan wrote: >> To understand the problem, assume I have a model consisting of Country >> and SoccerTeam. >> >> The SoccerTeam has a country = models.ForeignKey(Country). >> >> Say, I need to find the countries having one or more related soccer >> teams. I was not able to come up with a

directed graph in default admin

2006-10-24 Thread John Lenton
Hi all. I've got an app where I have a table of nodes, and a table of directed edges between those nodes. I.e, -8<-- class Node(models.Model): name = models.CharField(maxlength=20, core=True, blank=False) def __str__(self): return self.name class Admin: pass clas

Adding variable numbers of related objects in a form

2006-10-24 Thread exdnc
Hi all, I'm trying to build a form that lets the user add any number of steps to an existing activity. I've got an activity model and a related steps model, with an activity having 0 or more steps. The functionality I want is to have an "Add more steps" button on my add/edit form, and to have t

Re: Filtering on the existance of a "reverse" foreign key relationsship

2006-10-24 Thread Jonathan Buchanan
On 10/24/06, Christian Joergensen <[EMAIL PROTECTED]> wrote: > Hello > > To understand the problem, assume I have a model consisting of Country > and SoccerTeam. > > The SoccerTeam has a country = models.ForeignKey(Country). > > Say, I need to find the countries having one or more related soccer >

Re: Webservices using Django

2006-10-24 Thread adamjspooner
Thanks Jure. I'll start looking at the IBM DeveloperWorks site. Adam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsub

Re: New to django & www apps

2006-10-24 Thread Marcus Mendes
You are always welcome! Bye Marcus On 10/24/06, Przemek <[EMAIL PROTECTED]> wrote: > > Thank you to all for suggestions! > > Przemek > > > > > -- Marcus Mendes "A coragem é a forma de todas as virtudes em ponto de prova" C.S.Lewis __ linuxUser #3113

Re: Accessing currently logged in user from Models/Fields

2006-10-24 Thread [EMAIL PROTECTED]
I believe the idea is being thrown around on how to properly implement something like that as part of Django. However having access to the currently logged in user from the model creates a dependency to the auth middleware which is not very elegant. So while the experts are throwing that idea aro

Filtering on the existance of a "reverse" foreign key relationsship

2006-10-24 Thread Christian Joergensen
Hello To understand the problem, assume I have a model consisting of Country and SoccerTeam. The SoccerTeam has a country = models.ForeignKey(Country). Say, I need to find the countries having one or more related soccer teams. I was not able to come up with a solution using the ORM, but got to t

troubles with views

2006-10-24 Thread peks
hello everyone, i'm very new to django, jet i think it's exellent ;) we are trying to port 10 pages to django, so we're still in "learning" process. here is my question: i'm trying to build a simple news page, which will just list all news which are added. on the top first page 2 news entries and

Re: Returning an average from a Related Field.

2006-10-24 Thread Carlos Yoder
While I believe this mini tutorial on signals is great, I guess this functionality would be better accomplished in the DB itself, via a trigger. On 10/16/06, MerMer <[EMAIL PROTECTED]> wrote: > > John, > > Excellent. The requirement to make it easily sortable makes your > solution compelling.

Admin Inner Classes

2006-10-24 Thread Santosh Koti
Hi All,   I am new to Python/Django   Can some one pls explain what is the relation of inner classes (I don’t think it is the same as Java..?) Though I have set the sample application up & running from James Bennett’s –to do list. I have also learned the basics of Python & Django to

Re: Project URL-prefix

2006-10-24 Thread David Sissitka
Hrm, just double checking now and I cannot replicate the problems you've listed. Anyways, it looks like ticket #285 mentions a very similar problem, but they've determined that the cause is CGI related and I'm using mod_python. -David SissitkaOn 10/24/06, Dmitry Azhichakov <[EMAIL PROTECTED]> wrote

Comments and karma tutorial

2006-10-24 Thread Guillermo Fernandez Castellanos
Hi, I've written a tutorial (well... actually two in one) about how to use the Comment (not FreeComment) and Karma parts of Django: http://www.guindilla.eu/blog/2006/10/21/comment-and-karma-functions-django-framework/ It involves some changes to the code, as I've found what seems to be a bug. Th

Re: Project URL-prefix

2006-10-24 Thread Dmitry Azhichakov
On Tue, Oct 24, 2006 at 04:49:59AM -0400, David Sissitka wrote: > At the time I > didn't have the time to figure out exactly what the problem was, but > placing a modified version of login.html in one of the project's > template directories did the trick. It was my first solution too, but there ar

Re: Saving arbitrary data without database

2006-10-24 Thread spacedman
This sounds like you want to use my 'single row database' trickery pokery: http://groups.google.com/group/django-developers/browse_frm/thread/2caa976249783fae/# Just create a Django model 'Properties' with your 'threshold' as one field, then access it just like a normal Django model. The databas

Not 100% django / svn co https://simon.bofh.ms/django-projects/stuff/trunk returns Unrecognized URL Scheme

2006-10-24 Thread schotm
Hey Guys, I was trying to checkout Djangostuff from https://simon.bofh.ms/django-projects/stuff/trunk But this returned the error "Unrecognized URL Scheme". Has anyone got a tarball online or a mirror of DjangoStuff. Cheers Martijn --~--~-~--~~~---~--~~ You rec

Re: Project URL-prefix

2006-10-24 Thread David Sissitka
I ran in to a similar problem when deploying a Django project under a sub directory. The project could be accessed at /django, and the administrative log in at /django/admin. The form is supposed to submit to itself, but it was submitting to /admin. I did a bit of digging, and it turns out that th

Project URL-prefix

2006-10-24 Thread Dmitry Azhichakov
Hello, everyone. A little background for a problem first. I'm trying to write a tiny Django project for our corporate usage (my first one using Django). Every team has an account on a Linux box where we can host our web applications with URLs like: http:://server/~project/bin/app and every app

Re: Re: Re: Re: Custom view problems

2006-10-24 Thread luxagraf
Russ- print_r does roughly what {% debug %} does, thanks for that tip. I realized that I can't use the method you mentioned because my Tag model has a slug field but the Essay model only stores the Tag.name value, which is fine until I have multiword tags. So i'd either need to strip out the das

Re: Re: Re: Custom view problems

2006-10-24 Thread Russell Keith-Magee
On 10/24/06, luxagraf <[EMAIL PROTECTED]> wrote: > > Which works and the template loads, but there doesn't seem to be > anything in the object essay_list... Your view and template appear to be ok, as long as the 'tag' argument is of a type compatible with the query. > is there a > python way to

Re: New to django & www apps

2006-10-24 Thread Przemek
Thank you to all for suggestions! Przemek --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, sen

Re: Re: Re: Custom view problems

2006-10-24 Thread luxagraf
Russ- Okay, one more question I changed the view around to make the code a bit cleaner and use your suggestion as well as the render_to_response shortcut I read about in the docs.. def view_items_tagged(request, tag): essay_list = Essay.objects.filter(tags=tag) return render_to_response