Re: Simple Sitemap

2009-10-12 Thread Adam N

You might as well use django.contrib.sitemaps.

It's not difficult to use that app so there's no more efficient way to
do this unless you happen to have the sitemaps.xml file already.

On Oct 12, 11:32 am, Timbadu  wrote:
> I need a simple sitemap for 5 URLs. The django sitemaps app seams a
> bit overkill for such a simple xml file.
> What's the best way of doing this?
> Can i simply upload a sitemaps.xml and point to it?
> Or should i use the django.contrib.sitemaps?
>
> Thanks,
--~--~-~--~~~---~--~~
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, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: How to define a "has-a" relationship in dJango models

2009-09-17 Thread Adam N

> >  wrote:
>
> > > Thanks Karen.
> > > Let me explain it a bit more.
> > > e.g.
> > > All CONTACT details are present in one table - email, home address,
> > > work address, home phone, work phone etc.
> > > Forget about the statement about growing for now.
> > > Since each user "has-a" contact it is a pure one-to-one relationship
> > > and not a one-to-many or many-to-one; each user in the USER table will
> > > have only one corresponding entry in the CONTACT table.
> > > Does this help explaining the issue ?
> > > The above is just an example, the main question is how does one
> > > usually implement a "has-a" relationship in dJango.
>

There are a few things being overlooked here:

1. This cookie has been baked before.  Instead of talking about it in
the abstract, check out django-profiles or django-basic-apps (and
there are more I'm sure).  That app will give you much better control
over contact details for a user in a robust way.  Just use that app
and you can focus on import things like what your project does:

http://bitbucket.org/ubernostrum/django-profiles/wiki/Home
http://code.google.com/p/django-basic-apps/source/browse/#svn/trunk/profiles

2.  There are two ways to handle the issue generally - A symmetrical
one-to-one key allowing any profile to get its user or vice versa, and
extending the User class with something like:

class Profile(User):
email = models
phone = models

@PlanetUnkown - you haven't really stated what's wrong with extending
the user like that, nor what is wrong with the one-to-one, so nobody
can help you any more than to tell you either one of those will do
what you want it to do.  I personally would extend the User model for
your limited need but most profile apps use a ForeignKey field
(OneToMany) so as to support multiple profiles per user.

Cheers,
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Development and deployment wit Git

2009-09-14 Thread Adam N

Orschiro,

You should definitely use a service like GitHub.com unless you have a
good reason not to.

They have all the rough edges worked out and you get a great web
interface for everything.  In addition, sharing becomes much easier if
you're working with other GitHub projects.  If/When you ever want to
leave them, you can just take your repository and move to your own
server, or elsewhere.

-Adam

On Sep 13, 12:55 pm, orschiro  wrote:
> Hello guys,
>
> I'm a single developer but since a VCS like Git has some really nice
> features, like the history, I want to use it for my webprojects I'm
> building up with Django.
>
> But there are still some points I don't understand.
>
> How do I have to set up Git?
>
> Where do I start the repository - on my local machine or on the
> server?
>
> I think it makes sense to have it on the local machine as I'm
> developing only for myself, but how do I get the project with its
> changes on my server?
>
> Very confusing. Thank you in advance. :)
>
> orschiro
--~--~-~--~~~---~--~~
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, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Populating ChoiceField values in Form

2009-09-11 Thread Adam N

> class TestForm(forms.ModelForm):
>     category = forms.ModelChoiceField(queryset=TestModel.objects.filter
> (filtercriterion__id=1))
>
>     class Meta:
>         model = TestModel
>
> In this example, TestModel.objects.filter(filtercriterion__id=1) will
> return a QuerySet of what I want to end up on the select list.  How
> can I send the numeral '1' as a variable to the TestForm class?

I found my own answer:

form = TestForm()
form.fields['category'].choices = TestModel.objects.\
filter(filtercriterion__id=1).values_list('id','name')
--~--~-~--~~~---~--~~
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, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Design Tools any suggestions?

2009-07-11 Thread Adam N

GraphModels in django-extensions can be helpful.

http://code.google.com/p/django-command-extensions/wiki/GraphModels

I had a bear of a time installing it on my Mac however.  Graphviz
isn't Visio or a UML editor though so the utility of that program for
model designing is kind of limited.

On Jul 11, 11:16 am, dartdog  wrote:
> Just looked through the Eclipse site, anyone have any opinions as to
> which free UML tool is worth looking at? Lots there but many/most
> inactive?
>
> On Jul 11, 8:53 am, dartdog  wrote:
>
> > Thank to both Unfortunately I'm on Windows Vista, so It looks like
> > Umbrello is not yet ready, looks nice though,,and I've started off
> > witheclipseso that particularUMLis out perhaps I'll take a closer
> > look at theEclipseofferings...
>
> > Any one else havebestpractices?? I'sm wondering what the Django
> > dev's use, in some cases it seems that people are just moving right
> > into code with little pre planning??
>
> > On Jul 10, 10:32 pm, Streamweaver  wrote:
>
> > > I use netbeans and there is aUMLplugin that you can download and use
> > > for free.
>
> > > On Jul 10, 10:43 pm, dartdog  wrote:
>
> > > > Starting to noodle out some system design stuff for Django
> > > > implementation does anyone have good ideas suggestions for useful
> > > > tools to encompass db (model)  business logic and presentation
> > > > components, flow and how to tie them together. It seems that the most
> > > > obvious solution in freeware is dia?  It would be nice to be able to
> > > > tie the result to lifecycle documentation?
>
> > > > Thoughts?? Ideas, I'll run them down, with pointers!
--~--~-~--~~~---~--~~
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, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: django nginx fastcgi and flup

2009-06-16 Thread Adam N

I actually had issues with my most recent installation.  These are the
instructions I wrote/use and am currently maintaining.  Strangely, it
worked on my previous two installations ...

http://wiki.nginx.org/NginxPythonFlup

I'm using nginx version: nginx/0.6.35

Any assistance on those wiki pages is greatly appreciated.

-Adam

On Jun 12, 1:41 pm, Matt Davies  wrote:
> Hello Dhruv
> I've been using this configurement for ages, and we recently updated our
> django code.  The app runs almost %100, but there's a certain part that
> calls a number of tags out of the database and displays the, and this
> section is intermittently failing.
>
> To make it even wierder it works if I set debug to False in the settings
> file.
>
> I'll get into more detail later, I was just checking if there was a known
> problem.
>
> We've also updated Flup, which may be causing problems as well
>
> 2009/6/12 Dhruv Adhia 
>
>
>
> > Hello Matt,
>
> > Couple of days back I tried firing django app on fcgi server through
> > runfcgi command. As indicated I installed flup packages and did python path
> > settings as usual and when I run it I dont get any message that its running
> > on so and so server and neither does it runs the server. Is it something
> > similar?
>
> > On Fri, Jun 12, 2009 at 10:30 AM, Matt Davies  wrote:
>
> >> Hello everyone
> >> I'm going to write down a quite complex problem I'm having that I'm having
> >> trouble debugging, but before I start has anyone noticed any strange
> >> behaviour using django nginx fastcgi and flup recently?
>
> >> If there is an obvious problem that I haven't heard about then any links
> >> I"d be grateful
>
> >> I'll post the problem back to this forum as I work though it, it might
> >> help someone out.
>
> >> Hopefully me :-)
>
> > --
> > Dhruv Adhia
> >http://thirdimension.com
--~--~-~--~~~---~--~~
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, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Running Django admin site using Lighttpd

2009-04-09 Thread Adam N

On Apr 9, 10:51 am, Daniel Roseman 
wrote:
> On Apr 9, 3:35 pm, Karim Hamdan  wrote:
>
> > Let me rephrase my question. I followed
> > thisHowTo
> > on this group that describes how to run Django using lighty with fcgi,
> > I can access my project website successfully but I fail to access Django's
> > admin site and get a 404 Not Found error instead. I am running
> > lighttpd-1.4.19 and python-django 1.0-1ubuntu1 on my Ubuntu Intrepid
> > machine.
>

You can also try nginx.  The path for nginx seems to be more well trod
by the Django community.  Here is my nginx.conf.  With that nginx,
Django needs to run under fastcgi:

./manage.py runfcgi host=127.0.0.1 port=8080

-Adam

###
#
# This is the main Nginx configuration file.
#
# More information about the configuration options is available on
#   * the English wiki - http://wiki.codemongers.com/Main
#   * the Russian documentation - http://sysoev.ru/nginx/
#
###

#--
# Main Module - directives that cover basic functionality
#
#   http://wiki.codemongers.com/NginxMainModule
#
#--

user  nginx;
worker_processes  2;

error_log /var/log/nginx/error.log;
#error_log/var/log/nginx/error.log  notice;
#error_log/var/log/nginx/error.log  info;

pid   /var/run/nginx.pid;



#--
# Events Module
#
#   http://wiki.codemongers.com/NginxEventsModule
#
#--

events {
worker_connections  1024;
}


#--
# HTTP Core Module
#
#   http://wiki.codemongers.com/NginxHttpCoreModule
#
#--

http {
#auth_basic "Restricted";
#auth_basic_user_file /etc/nginx/.htpasswd;
include   /etc/nginx/mime.types;
default_type  application/octet-stream;

log_format  main  '$remote_addr - $remote_user [$time_local]
$request '
  '"$status" $body_bytes_sent "$http_referer" '
  '"$http_user_agent" "$http_x_forwarded_for"';

access_log  /var/log/nginx/access.log  main;

sendfileon;
#tcp_nopush on;

#keepalive_timeout  0;
keepalive_timeout  65;

#gzip  on;

# Load config files from the /etc/nginx/conf.d directory
include /etc/nginx/conf.d/*.conf;

#
# The default server
#
server {
listen   80;
server_name  _;

#charset koi8-r;

#access_log  logs/host.access.log  main;
if ($host = 'www.example.com' ) {
rewrite  ^/(.*)$  http://example.com/$1  permanent;
}

location ^~ /static/ {
root   /var/www/example;
}

location ^~ /media/ {
root /usr/lib/python2.5/site-packages/django/contrib/
admin;
}
location / {
# host and port to fastcgi server
fastcgi_pass 127.0.0.1:8080;
fastcgi_param SERVER_NAME $server_name;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param PATH_INFO $fastcgi_script_name;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_pass_header Authorization;
fastcgi_intercept_errors off;
}

error_page  404  /404.html;
location = /404.html {
root   /usr/share/nginx/html;
}

# redirect server error pages to the static page /50x.html
#
error_page   500 502 503 504  /50x.html;
location = /50x.html {
root   /usr/share/nginx/html;
}

}
}

--~--~-~--~~~---~--~~
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, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Ignore Fixtures or Skip Fixtures

2009-04-08 Thread Adam N



On Apr 8, 11:13 am, Russell Keith-Magee 
wrote:
> On Wed, Apr 8, 2009 at 10:27 PM, Adam Nelson  wrote:
>
> > Is there any way to ignore fixtures when running syncdb?  I'm using
> > django-command-extensions and when using runscript from a previous
> > datadump, I get a unique index violation.  I'd like to be able to
> > ignore fixture imports.
>
> 1) Yes - you don't call your fixture initial_data. Any other name will
> result in a perfectly loadable fixture, but that fixture won't be
> automatically loaded.
>
> 2) If you're getting unique index violations from a fixture created by
> dumpdata, i'll wager you're hitting #7052. The solution here is to
> avoid dumping the auth permissions and contenttype datatypes as part
> of the datadump, or to delete the entries corresponding to permissions
> and contenttypes from your fixture. This may pose problems if your
> data contains generic keys, or any foreign keys on the auth
> permissions or content types, but otherwise you should be fine.

Perhaps there is a way to have runscript send errors to stdout rather
than dieing without any failure messages at all *sigh*.  Thanks for
the specific response though.  I'm going to try to learn South (since
this is really about a migration solution) which might sidestep this
entire issue and add my 2 cents to #7052.

Thanks,
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: django.contrib.auth user password decryption

2009-04-05 Thread Adam N

A good solution is to reset the password through the screen.

1. Validate the user through some sort of test (secret question or
something).
2. Then send them to a screen where they can reset the password
themselves to whatever they want.
3. Initiate an email to the stored email address notifying of the
password reset (in case an imposter made the change).

It's a little less secure (because of social engineering attacks), but
it's fine for a low security site while still maintaining fundamental
security at the password data level.

Keep in mind the requirement to reset an unknown password really is
for your own good.  Two way encryption of passwords is unsafe both
because somebody can get and use them without the owner even knowing
that they've been compromised and because anybody with the decryption
key (often anybody with access to the codebase) can get passwords.

-Adam

On Apr 5, 4:51 am, soniiic  wrote:
> I hope that doesn't mean storing the real password in a table in the
> database :)
>
> On Apr 4, 11:12 pm, Joshua Partogi  wrote:
>
>
>
> > On Apr 4, 11:49 pm, Masklinn  wrote:
>
> > > On 4 Apr 2009, at 15:38 , Joshua Partogi wrote:
>
> > > > Dear all,
>
> > > > I already take a look at the django.contrib.auth.models but could not
> > > > find any methods for decrypting the user password.
>
> > > > Sometimes we need to get the real text password to be sent to user.
>
> > > > What is the best way to do this? Anybody has got an idea?
>
> > > > Thank you very much in advance!
>
> > > Django's passwords are salted[1] and hashed[2]. You cannot[3] retrieve  
> > > them, and that's exactly the intent (well the intent is not that *you*  
> > > cannot retrieve them, it's that nobody else can). If you need to send  
> > > users their passwords, you have to generate new (random) passwords and  
> > > send them that.
>
> > > Masklinn
>
> > Thanks for the explanation Masklinn. :-)
>
> > I'll find another way to send user their password.
>
> > Thank you very much.
--~--~-~--~~~---~--~~
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, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Error creating test database

2009-04-02 Thread Adam N

I'm pretty sure you'll need to make it an abstract model.  You could
make the model that accords to the existing table abstract and then
subclass that model with no additional attributes (except a different
name) - that will give you access to the data directly if you need it
while leaving the existing table intact. This will duplicate data
though - are these highly accessed tables?

I think.

-Adam

On Apr 2, 9:23 am, "Andrew G."  wrote:
> I have a django app that is built against an existing database.  In
> the database, there are a couple tables used as the many-to-many
> relation lookup table.  However, I have mapped models to the many-to-
> many lookup table, since I have a need for accessing these entries
> directly.  Since the tables already exists, manage.py syncdb has no
> problems, but when running manage.py test, the attempt to create the
> test database complains that the many-to-many table already exists and
> fails out.
>
> Is there a way to specify ignoring the creation of this table
> somewhere, or another way to circumvent this problem?  Should this be
> considered a bug?
>
> I know about the abstract Meta keyword, but I didn't think that should
> apply since the many-to-many model still should be db mapped and
> accessible.
--~--~-~--~~~---~--~~
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, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Fixtures for django.contrib.sites.Site

2009-04-02 Thread Adam N

Thanks a ton - that's exactly what the issue was.

On Apr 1, 8:28 pm, Russell Keith-Magee  wrote:
> On Thu, Apr 2, 2009 at 5:49 AM,AdamNelson  wrote:
> > How do I do a fixture for the Site model?  I've tried all sorts of different
> > model names
> > [
> >   {
> >     "model": "sites.site",
> >     "pk": 1,
> >     "fields": {
> >       "domain": "example.com",
> >       "name": "Example"
> >     }
> >   },
> > ]
> > And I get this error:
> > ...
> >   File
> > "/Library/Python/2.5/site-packages/django/utils/simplejson/decoder.py", line
> > 221, in JSONArray
> >     raise ValueError(errmsg("Expecting object", s, end))
> > ValueError: Expecting object: line 10 column 1 (char 124)
> > Any ideas for the correct model name?  I've tried every possibility I can
> > think of.
>
> Unlike Python, JSON is very fussy about commas. In particular, Python
> allows redundant commas in lists (i.e., [1,2,3,] - the comma after the
> 3), but JSON doesn't. The problem here is the comma on the second last
> line. That comma leads SimpleJSON to believe that line 10 should start
> a new element in the list, but instead, the list is ended. Hence, line
> 10, column 1 reports an error. Delete the comma and you'll be fine.
>
> Yours,
> Russ Magee %-)
--~--~-~--~~~---~--~~
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, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Mod_wsgi and mod_python

2009-04-02 Thread Adam N

You should definitely consider Nginx with FastCGI.  Something like
this:

http://wiki.nginx.org/NginxDjangoFastCGI

On Apr 2, 2:20 am, Pythoni  wrote:
> I am using Django with mod_python and it works but during peak times
> ( heavy loads about 50 Apache jobs), the system is almost hanged
> Is it  worth changing from mod_python into mod_wsgi?
> What would I get or lose?
> Is it possible to use both mod_python and mod_wsgi on one computer?
> Thank you for replies
> L.
--~--~-~--~~~---~--~~
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, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Order_by number of foreign key joins

2009-03-10 Thread Adam N

You can do this by changing the Thing model:

http://docs.djangoproject.com/en/dev/ref/contrib/contenttypes/#reverse-generic-relations

class Thing(models.Model):
...
otherthing = generic.GenericRelation(OtherThing)



For each thing, when you run thing.otherthing.all(), you'll get all
the otherthings.  You can count over that, etc...

If you look at my other post, if you have a list of things, and you
want all the otherthings for that list, you need to loop over each
thing and get the otherthing and then dedupe.  I'm looking for a
solution to that but at least the reverse generic relation gets you
farther down the line.

On Mar 10, 12:35 pm, Chris McCormick  wrote:
> Hi,
>
> I want to do something like:
>
> Thing.objects.all().order_by("otherthing__count")
>
> So there's a many-to-many between Thing and Otherthing, and I want to get a
> list of Things in the order of most-otherthings joined - is there some easy,
> Djangoish way to do it, or should I create a new field in Thing which holds 
> the
> number of Otherthings it's joined to?
>
> Chris.
>
> ---http://mccormick.cx
--~--~-~--~~~---~--~~
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, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Best practise of using custom sql with Stored Procedure

2009-03-10 Thread Adam N

Tim,

Here is how I do it with a different query.  Using the fetchall() and
getting it into a list works nicely.  I know that there should be a
better way to do this so that we're not making a list twice - but this
works:

query = """SELECT b.created_on, SUM(a.vote)
FROM %s a JOIN %s b
ON a.created_on <= b.created_on
ON a.object_id = b.object_id
ON a.content_type_id = b.content_type_id
WHERE a.object_id = %s
AND a.content_type_id = %s
GROUP BY 1""" % (
connection.ops.quote_name(self.model._meta.db_table),
connection.ops.quote_name(self.model._meta.db_table),
obj._get_pk_val(),
ctype.id,
)
cursor = connection.cursor()
cursor.execute(query)
result_list = []
for row in cursor.fetchall():
result_list.append(row)

On Mar 10, 5:19 pm, timc3  wrote:
> Hi,
>
> I have built my models and so forth, but I have the need to check
> whether the user requesting an instance or set of instances from the
> database has permission to do so.
>
> For this I have a stored procedure (saved procedure) in the database
> that when I give it a user id, it then returns the item if I am
> allowed it. Its a stored procedure because its not possible to do it
> in a SELECT, it potentially would open up a lot of database requests
> if I wanted to do it straight from the App server.
>
> I want to use this in Django, and I thought about using a Manager on
> the model like so:
>
> class MediaItemManager(models.Manager):
>     def get_perm(self, *args, **kwargs):
>         from django.db import connection
>         cursor = connection.cursor()
>         cursor.execute("""
>                     SELECT * FROM permfindernew(2, 132);
>                     """)
>         row = cursor.fetchone()
>         return row
>
> Problem comes in that although I return what I want (I will replace 2,
> 132 with the correct args when I am done), its not in a format of a
> queryset or anything else that I can see how I can use.
>
> Another way I could do this is to get the stored procedure to give me
> back a true/false and then do another query if I have got true back.
> This only hits the database twice, but I would like to just return a
> row if possible.
>
> Is there a way to turn what I get back from the database into
> something I can then use in a template:
>
> (132,
>  u'Tsunami_by_hokusai_19th_century.jpg',
>  u'Tsunami_by_hokusai_19th_century.jpg',
>  u'',
>  u'',
>  datetime.datetime(2009, 2, 17, 16, 54, 38, 892350),
>  None,
>  u'image-jpg',
>  u'c4a6afe0a71e3632',
>  3,
>  u'[]',
>  5,
>  False,
>  False,
>  False,
>  True,
>  True,
>  1,
>  u'',
>  1,
>  None,
>  False,
>  1,
>  "'19th':4,9 'hokusai':3,8 'tsunami':1,6 'century.jpg':5,10")
>
> Thanks,
>
> Tim.
--~--~-~--~~~---~--~~
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, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---