So, say I have a model something like this:
class Bar(models.Model):
user = models.ForeignKey(User)
name = models.CharField(maxlength=50)
description = models.TextField()
where user is tied to a django.contrib.auth.models.User entity. When I
serialize this to json, I get:
[{"pk": "1
> About all you can do is mark it as spam and let that train Google's spam
> filter.
>
>
A mail client that doesn't automatically show images will help, too.
--B
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
looks like you need to install MySQLdb:
http://sourceforge.net/projects/mysql-python
Jalil wrote:
> I keep getting this below error when I try to sync my database.
> I am using python2.3. Any ideas?
>
>
>
> [no job set:~/dev/mysite] 113% python2.3 manage.py syncdb
> Traceback (most recent call
oh wow, I don't know how I managed to send that to this list. That was a
reply to a private email, having nothing to do with Django. Obviously.
Sincere apologies
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Dj
I don't know that I ever listened to his message at the mormon tabernacle.
http://www.rzim.org/radio/archives.php?p=JT&v=detail&id=784 is the first
part
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users
> still havent got the mail, but the login is working
>
>
I created a login for bfordham the other day, never got an email,
account isn't working.
--B
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django use
> I don't understand. If you're one /foo/bar/baz/page1/, then why can't
> you write as the link? It will work, is a
> well-formed URL and is independent of the prefix. Note that you must
> ensure your URLs are canonicalised if you use this system, though:
> always ending with a trailing slash, s
> This should be writable in a slightly more Djangoic (I suppose if
> Python code is Pythonic, Django code is Djangoic? Djanonic?
> Djangonical? Djangoish?) fashion:
>
my vote would be to user "superfly," as in:
This should be writable in a slightly more superfly fashion
>entries = Jou
[EMAIL PROTECTED] wrote:
> A week ago I posted about a project I was working on, Djangosites.org.
> It's intended to be a showcase of what's out there in Django Land.
>
Very nice.
A few minor things:
One the register page, since the "Terms of Service" link is in the label
for the checkbox, wh
As I announced recently, I'm currently working on a project at
www.critterwatch.org. The overall goal is to provide people with
up-to-date information on how their state represenatives and senators
are voting, as well as data on legislation. Long term goals include an
API to make this informat
Michael Trier wrote:
> Nice work. You need someone to spice up the UI, but the content rocks.
> Great job.
>
>
Thanks
And yeah, I'm not a UI design guy. Given a design I can code it, but I
suck at coming up with the design from scratch.
So if anyone on this list wants to donate a nice desig
Jeremy Dunck wrote:
> Nice. Screen-scraping the votes, or is there actually an API?
>
Screen scraping, I'm afraid. Georgia was easy, which is nice since it
was the logical place for me to start (I'm near Savannah, Ga.). Some
other states, for instance South Carolina, have their Senate/House
Udi wrote:
> If I were you I'd get my hands on pictures of all of the "critters"
> and put them next to their names. It'd spice up the UI a bit.
Good idea. I've considered it, but now I think I definitely will.
Thanks
--B
--~--~-~--~~~---~--~~
You received this m
Not officially launched yet, but I'd appreciate some people banging on
critterwatch.org and telling me what breaks.
It's a site to track how you state senators and congressmen vote. Right
now it only has information for Georgia, but I'm working on adding the
next state (namely, South Carolina)
Mike Caldwell wrote:
> That is why governments invent things like SSN, to make you unique.
btw, don't use SSN as unique id 8)
Besides security and privacy issues, it's also not guaranteed to be
unique. At a previous job dealing w/ cell phone accounts, it was
possible for the same person to h
[EMAIL PROTECTED] wrote:
> cursor.execute("""
> SELECT sports_players.city_id, sports_players.team_id,
> count(sports_players.team_id) FROM sports_players,
> sports_mastercitylist
> WHERE sports_players.city_id=sports_mastercitylist.id
> AND sports_maste
[EMAIL PROTECTED] wrote:
> Mr. Fordham, if you are ever within 500 miles of St. Petersburg
> Florida, I owe you beer or dinner or my firstborn or something. That
> tiny little change is all I needed. It works. Thank you so much for
> your help.
>
I actually live w/in 500 miles (Savannah, Ga) bu
>> 3. Set up an Apache server for development (as indicated in the
>> mod_python documentation). This has the disadvantages that I would
>> need to manually set up a VirtualHost in apache2.conf for each project
>> everytime one is added and also that they would need to maintain a
>> hosts file o
code enquest wrote:
>in PhP i used to print_r(array) to see what if got in my array that I
>want to bring on the screen. Smarty even had a popup screen to show this.
>
>How can I see in Django what I got in the view? So that working in the
>template goes a tat faster? What is the print_r($array)
>Not at the moment. There are two problems that need solving here (I've
>mentioned this before either on this list or django-dev) and they're
>both still on my endless TODO list. I'll get to them one day.
>
>
I bet your todo list looks like mine 8)
>(1) For fields that are Python wrappers over
> Try searching the list, this question has been asked and answered to
> varying degrees a few times before. If memory serves me right, the
> authors seem to think that October is overly optimistic and it will
> more likely be latter.
someone should set up a FAQ page for this 8)
t extend it,
without being tied to any view-specific logic.
--
Bryan L. Fordham
socialistsushi.com
Sushi For Everyone
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to th
'^site/$', 'mysite.hello.views.index'),
to execute that view when they visit site/
You're trying to include the view as urls, and that won't work 8)
--
Bryan L. Fordham
socialistsushi.com
Sushi For Everyone
--~--~-~--~~~---~--~~
You receiv
> The current URL, /metadata/, didn't match any of these."
Apache is passing the entire URL. Try changed your urls.py to
(r'^metadata/', include('..urls')),
and moving things to a urls.py in your add directory
hth
--B
--
Bryan L. Fordham
soci
$ is part of the regular expression. It matches the end of the line. ^
matches the beginning
So, '^polls/(\d+)/$' would match
polls/1234/
but not
polls/1234/1
because the ending is wrong, and not
the_polls/1234/
because the beginning is wrong
You can read more about this at http://d
On Fri, Nov 18, 2005 at 01:32:34PM -0800, PythonistL wrote:
> But why? Where did I make a mistake?
because it's trying to serve the page like it's a view. For instance, if
your view is /foo/bar, go to /foo/style.css and you'll get a 404. But that's
where it's trying to load it.
You'll want to
So I'm wasting some time before my next class hacking on this 8) Thought I'd
get some ideas before I get too far in
The model is something like:
App:
name
description
maintainer
version
min django version
max django version
Maintainer:
name
> - We need to fix on a good structure for app packages. As a few
> people have mentioned, the one that django-admin startapp creates may
> or may not be good in the long term. Personally, I think it would be
> cool to load apps from ZIP files (like JARs) so that an app is a
> single pac
On Thu, Sep 01, 2005 at 07:33:56AM -0400, Jason F. McBrayer wrote:
>
> On Thu, 2005-09-01 at 10:15 +0100, Rachel Willmer wrote:
> > is there a django way to set up the tables with the initial data I
> > want? or should I just do this using a postgres script?
>
> You could either do it with a pos
On Mon, Aug 29, 2005 at 09:45:33AM -0700, Sebastien Fievet wrote:
>
> Complete python interpreter code :
> >>> from django.models.mobilespecs import devices
> >>> d = mobilespecs.Device('generic', 'root', '', False)
> Traceback (most recent call last):
> File "", line 1, in ?
> NameError: name
On Tue, Aug 23, 2005 at 07:36:06AM -0500, Jacob Kaplan-Moss wrote:
> See "Using module globals in models" at http://code.djangoproject.com/
> wiki/DataModelPitfalls -- the short answer is that your model is
> turned into a virtual module at run time, and the namespace changes.
A couple of us
On Tue, Aug 23, 2005 at 12:12:31PM +0100, Andy Shaw wrote:
> It does seem somewhat contradictory to refuse to let the built-in server
> serve static media in general whilst hacking it so that it does output
> the admin media. Presumably this is so that the admin CSS/Javascript is
> available,
32 matches
Mail list logo