Re: Cannot resolve keyword into field

2007-04-23 Thread Jason McVetta
On 4/21/07, Ramashish Baranwal <[EMAIL PROTECTED]> wrote: > > TypeError: Cannot resolve keyword 'book' into field This is a long-standing, well-known bug that apparently no one (including me) knows how to fix. Any time one defines a ManyToMany relationship, then calls all() on that

Re: audit trail support

2007-04-23 Thread Jason McVetta
On 4/20/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > In your descriptions below, you remove the ability for a developer to > use manual primary keys, by the sound of it, since one of your special > fields wants to be a single-column primary key. That's not invisible. Does Django

audit trail support

2007-04-20 Thread Jason McVetta
can be included in the main trunk. Lastly, would it have been more appropriate to post this to django-developers? Jason --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g

Re: selecting a framework ,

2007-04-19 Thread Jason McVetta
Django is a great framework for building custom web apps -- but I am not sure it is the most sensible solution for your needs. If what you want is standard ERP functionality, delivered over the web, there is no need for you to reinvent the wheel. Quite a few existing open source projects may

Re: database table prefix

2007-02-27 Thread Jason Sidabras
e Meta option > something like: > > from django.conf import settings >db_tabe = 'this_app_table_site_%d' % settings.SITE_ID > > but I'd rather make the applications understand SITE_ID and work accordingly. > > Cheers, > Marc > > On 2/28/07, Jason Sidabras <[E

Re: database table prefix

2007-02-27 Thread Jason Sidabras
Sorry, mis-typed before. But I'm trying to see how this might work for my case. My mistake was that I am not trying to create multiple databases. Just multiple tables. So app named foo typically creates a table: foo_news and I would like it to be: site_one_foo_news Jason On Feb 27, 5:03 pm

database table prefix

2007-02-27 Thread Jason Sidabras
Does django currently support a DATABASE_PREFIX option? The question arises because of a problem I am having with sqlite and my hosting provider. And the end of the day I would like to have three website which use some combinations of the same apps. These websites do not share "stories" from

Re: urls parameter - deliver query set

2007-02-05 Thread Jason
Hi: DId you ever find a solution to this? I'm having a similar probme but want to deliver the query set like: http://www.foo.com/books?a=12345 Jason. On Feb 3, 6:52 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > i would like to deliver a query set t

Use a simple query string.

2007-02-04 Thread Jason
Can anyone help with my super simple query string problem I'm simply trying to get www.mysite.com/uptodate?build=123 parsed. The problem is I can't get any URL to match (I keep getting 404 - page not found). My URL: (r'^uptodate(?P\d+)/$)', prog.main.uptodate'), My View: def

Re: Complex Data Models.

2006-12-27 Thread Jason C. Leach
Hi: Specifically, I'm curious how you do it without putting SQL in the view. From what I understand about the methodology of MVC this should not be done. J. On 12/27/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: On 12/27/06, Jason <[EMAIL PROTECTED]> wrote: > What do we do

Complex Data Models.

2006-12-27 Thread Jason
What do we do in Django if we want to use complex data models like JOINs, or a shopping card with invoices and line-items? Do we try and keep as much in the database as possible using stored procedures or views? What happens to the model when you want to do more than just SELECT x, y, z FROM A?

Re: ChoiceField and dynamic input?

2006-12-27 Thread Jason Barrett Prado
. On 12/27/06, Jason Barrett Prado <[EMAIL PROTECTED]> wrote: You're correct, we found the same thing on IRC. However, to get a ChoiceField to render your choices in the Select widget, you set field.widget.choices, not field.choices. This is, of course, not documented and incredibly confusin

Re: Project and App Layout.

2006-12-27 Thread Jason C. Leach
in, registration, news or shopping section). Thanks, J. On 12/27/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: On 12/27/06, Jason <[EMAIL PROTECTED]> wrote: > So when I start a new project, it has some basic content like an index, > about, contact, and so on. Where does this go in

Project and App Layout.

2006-12-27 Thread Jason
called 'main' and am putting all my fairly static content in it. Thanks, Jason. --~--~-~--~~~---~--~~ 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@google

Re: Can't get my URLs right.

2006-12-27 Thread Jason C. Leach
Thanks. Probably the one thing I didn't try. J. On 12/27/06, Jorge Gajon <[EMAIL PROTECTED]> wrote: On 12/27/06, Jason <[EMAIL PROTECTED]> wrote: > > So now that I add an about page, as www.foo.com/about what I get is a > bunch of 404 errors because it's looking f

Can't get my URLs right.

2006-12-27 Thread Jason
/. Easy as that. So I need to understand why it's going /about/css and stop it. Thanks, Jason. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Displaing Images and Static Paths

2006-12-23 Thread jason . leach
Hi: Sorry for the lame question but this not at all obvious for a new user to Django. I can get my templates to display just fine, but I can't get the images in them to appear and I don't want to write a view for all my imags. Bahhh. I keep images in /i/ in the template directories: like

RE: So I made a forum with Django

2006-11-03 Thread Jason Wydro
Are you developing that forum w/ django? regards, Jason == Jason Wydro project engineer w3developing toll free: (800) 615-6493 local: (971) 732-5055 fax: (971) 223-3668 mobile-mail: [EMAIL PROTECTED] email: [EMAIL PROTECTED] web: www.w3developing.com

One project, multiple apps, all using their own DB

2006-09-15 Thread Jason Murray
I'm a django newbie (still working on the first app). I'm trying to figure out how to do something, only conceptually at this point. So I have no errors to send. I host a few apps on my home machine. They each use their own DB (on the same server). I'm thinking I should set up a project for the

Re: syncdb without shell access

2006-08-16 Thread Jason F. McBrayer
b: just modify your local settings.py to point to your database on your provider, and run syncdb there. -- +---+ | Jason F. McBrayer[EMAIL PROTECTED] | | A flower falls, even though we love it; and a weed grows, | | even though we do not love it.-- Dogen| --~--~-~--~~

Problems with __str__ methods in my Models

2006-07-13 Thread Jason Murray
Yes it's me again :) Anyway I've populating my Models with __str_ methods. I've only had on hicough. Here is the model in question: class Result(models.Model): ID = models.IntegerField(primary_key=True) home_runs = models.IntegerField("home team runs", null=True, blank=True)

SQL Queries with columns not in the DB

2006-07-13 Thread Jason Murray
ts. I don't think the writing custom SQL with connection.cursor() is the way to go. I know that the join portions of the where clauses will be taken care of by the db_api. I also know that I can do ORDER BY and LIMIT type stuff with extra=, .order(), etc. Am I on the right path? -- | Jason Murray -- | Th

Extending the SQL

2006-07-12 Thread Jason Murray
Another question for you all. As soon as I get my model.py ironed out for my existing DB I'm going to starting using the python db interface to see if things look good. Which means of course that I'll want to duplicate some of the queries that the existing app does. The site maintains the

inspectdb

2006-07-12 Thread Jason Murray
I have an existing cgi based app that I'm starting to move over to django. I'm looking forward to seeing just what django can do for me. Since the DB has quite a bit of data and I'd like to avoid recreating the DB model in django and moving the actual data, I've elected to use the ispectdb

Re: FileFields, MEDIA_ROOT, and private media

2006-06-06 Thread Jason F. McBrayer
e and do more complex things on the application side. In this case, it's not too bad; I'll just have to document it adequately. Thanks again. -- +-------+ | Jason F. McBrayer[EMAIL PROTECTED] | | A flower falls, even though we love

Re: FileFields, MEDIA_ROOT, and private media

2006-06-06 Thread Jason F. McBrayer
ut on the other hand, I'd like to be as webserver-agnostic as possible. -- +---+ | Jason F. McBrayer[EMAIL PROTECTED] | | A flower falls, even though we love it; and a weed grows, | | even though we do not lov

Re: Tagging app

2006-05-26 Thread Jason Davies
Sounds great, I'd love to see this added. Regards, Jason --~--~-~--~~~---~--~~ 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 unsubs

Re: Model Inheritance

2006-05-06 Thread Jason F. McBrayer
know when and how I can help on the new-auth branch. -- +----+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy, don't give him more | | mo

Re: Model Inheritance

2006-05-05 Thread Jason F. McBrayer
ke one of those desperate measures? -- +----+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy, don't give him more | | money; rather, reduce his desires."-- Epicurus | --~--~-~--~~~---~--~~ You rece

Re: session auto-logout

2006-03-21 Thread Jason F. McBrayer
rect them. Also, if they already had an old session, it will have the default long expiry time. You may wish to flush the core_sessions table and see if it's working for you afterwards. -- +----+ | Jason F. McBrayer

Re: Multi-page forms

2006-02-23 Thread Jason F. McBrayer
y want to do validation of a field on the page where the user actually entered it. -- +----+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy, don't give him more

Re: only show something(form) if javascript-enabled

2006-02-21 Thread Jason F. McBrayer
es what you want, rather than trying to use client-side code to generate stuff to be sent to an existing view. -- +----+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy, don't gi

Re: only show something(form) if javascript-enabled

2006-02-21 Thread Jason F. McBrayer
form that they legitimately want to submit. I know you know that you can't rely on client-side validation, but I just want to say, you _really_ can't rely on client-side validation. -- +----+ | Jason F. McBrayer [EM

Re: only show something(form) if javascript-enabled

2006-02-20 Thread Jason Huggins
gabor wrote: > so is there a way to only show some part of the webpage (or the whole > webpage) if javascript is enabled? Use javascript to build up the form and its visual elements on pageload. A user without Javascript enabled would see a blank page. :-)

Re: Please help with django tutorial #2

2006-02-16 Thread Jason Davies
Sounds like you haven't done `python manage.py install polls` Regards, Jason --~--~-~--~~~---~--~~ 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@google

Re: editing multiple records

2006-02-09 Thread Jason Huggins
to a nice, clean, normalized relational database. No yucky spreadsheet files with massively important un-auditable data lying around on everyone's hard drives. Everyone's happy, and best of all Django makes this pretty darn easy to do, with the help of ElementTree for the XML. - Ja

Re: truncate html filter?

2006-02-09 Thread Jason F. McBrayer
interface to HTML Tidy: Beautiful Soup (http://www.crummy.com/software/BeautifulSoup/) might also be something to look at for this. -- +----+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to

Re: login via url

2006-02-08 Thread Jason F. McBrayer
a few new ways to steal credentials (think about referrers, and about httpd logs). -- +----+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy, don't give him more | | money

Re: memory usage

2006-02-08 Thread Jason F. McBrayer
es memory usage. -- +----+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy, don't give him more | | money; rather, reduce his desires."-- Epicurus |

Re: Memory leaks in DB API

2006-02-07 Thread Jason Huggins
it's about a very real memory leak. Django-ly Yours, - Jason

Re: Memory leaks in DB API

2006-02-07 Thread Jason Huggins
o that I'm relatively smart guy, but tracking down memory leaks in Python truly humbles me. -Jason

Re: scale of auth system

2006-02-07 Thread Jason Huggins
't say the phrase "row level security", but that's exactly what it is. Some critiques to my ACL proposal argued for the example in exerpt 2. I now happen to agree with them. :-) -Jason

Re: Memory leaks in DB API

2006-02-07 Thread Jason Huggins
mply reboot my Plone app every week to "fix" the memory leak problem. Very crufty and I hate it. The best solution for fixing memory leaks is prevention and early detection. ... and treating them like the evil cancer cells that they are. On that note, good luck, and have a nice day! :-) - Jason

Removing the Magic Branch release schedule

2006-02-03 Thread jason
Hi Guys, I have just realized how awesome having multiple inheritance will be, so I am wondering if there is a guess at a release date for Django 0.92? I guess I just try out the branch itself until the release is made. Thanks for all your hard work! Jason Pepas

Re: Do I use @login_required to extend authentication?

2006-02-02 Thread Jason Huggins
Hmm... Jason, your code is probably the "next logical step" for my hack. The following is the right link to your code, yes? -->http://www.carcosa.net/jason/blog/computing/django/authentication-2005-12-05-13-25.html -Jason

Re: Do I use @login_required to extend authentication?

2006-02-02 Thread Jason Huggins
tter approach is to completly remove the dependency on the Django user table. But making LDAP a complete replacement would take more work, which I don't need at this point, so I avoided doing it. -Jason

Re: Do I use @login_required to extend authentication?

2006-02-02 Thread Jason F. McBrayer
periodically by a grim record reaper but I haven't found that necessary yet. -- +----+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy, don't give him more | | money;

Re: Oracle support?

2006-02-01 Thread Jason Huggins
and 10g, but I'm wise enough to know that I should expect the unexpected. :-) -Jason

Re: Do I use @login_required to extend authentication?

2006-02-01 Thread Jason Huggins
ame steps as suggested by Amit, but it took me less than an hour to complete, and there are very, very few lines of code involved. "Hacking in LDAP support to Django" : http://www.jrandolph.com/blog/?p=22 Enjoy, Jason

Problem using a related object in __repr__()

2006-02-01 Thread jason
when I hit "submit", it throws an exception. Unfortunately the exception gets clobbered, but I added a quick one-liner hack to print it out before it gets clobbered, and this is the error: 'Bar' object has no attribute 'foo' What am I missing? Thanks, Jason Pepas

multiple inheritance?

2006-01-31 Thread jason
(maxlength=255) def __repr__(self): return self.name class META: admin = meta.Admin() but the result is only taggable, and not noteable. Any ideas? thanks, jason pepas

Re: Guido on Django

2006-01-27 Thread Jason Huggins
Yeah, my thoughts exactly on the turbogears thing... I like Rails, Django, and gosh, even Plone, specifically because they're used in large, referenceable, high-traffic *production* sites. The Rails gang are very handy about documenting knowledge of their production support and deployment tips

Re: magic_removal table update

2006-01-25 Thread Jason Davies
_groups_id_seq RENAME TO auth_group_id_seq; ALTER TABLE auth_groups ALTER id SET DEFAULT nextval('public.auth_group_id_seq'::text); ...for each sequence that needs renaming. Regards, Jason

Re: Adding ManyToMany relationships

2005-12-08 Thread Jason F. McBrayer
least partly because the whole list must be fetched and updated before set_FOOs() gets called. -- +----+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy, don't give him more | |

Re: ANN: Django site on washingtonpost.com

2005-12-06 Thread Jason F. McBrayer
n the entry afaict. -- +----+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy, don't give him more | | money; rather, reduce his desires."-- Epicurus |

Re: E-Commerce / Credit Card Processing

2005-12-01 Thread Jason F. McBrayer
or taking some other approach? -- +----+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy, don't give him more | | money; rather, reduce his desires."-- Epicurus |

Re: New-admin problem

2005-11-11 Thread Jason Davies
Which revision are you using? I think rjwittams fixed it in revision #1159. --Jase

Re: redirecting subdomain requests

2005-10-16 Thread Jason F. McBrayer
ugh about mod_rewrite to do the job would probably be less work. -- +----+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy, don't give him more | | money; rather, reduce his desires."-- Epicurus |

Re: big drop-down lists, raw_id_admin and custom primary key: a bug?

2005-10-04 Thread Jason Huggins
ected, but does update the __repr__ until the page is saved... It's quite confusing. -jason

Re: Problem/questions about generic views

2005-09-24 Thread Jason Davies
cause object_list doesn't take a keyword argument for 'page'. The page number is retrieved from a GET parameter instead. If you get rid of (?P\d+)/ and use ?page=2 at the end of your URL it should work. Regards, Jason

Packaging django apps

2005-09-08 Thread Jason F. McBrayer
a third-party django app by way of packaging? Just a tarball of the app and templates directory? Install scripts? README, COPYING, and INSTALL documents? -- ++ | Jason F. McBrayer [EMAIL PROTECTED

Re: internal_error.html?

2005-09-06 Thread Jason F. McBrayer
e stalls, at least for browsers that support gzip encoding! I am not, at this time, sure where the problem lies; whether it is in django's WSGI interface, in flup's fcgi-wsgi adapter, or in Apache's mod_fcgi. -- +----+ | Jason F. McBrayer

Re: initial data

2005-09-01 Thread Jason F. McBrayer
models, instantiates objects, and saves them. Or, of course, you could use the admin interface, but that would quickly get tedious. -- +----+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythoc

Re: Storing models in sessions

2005-08-31 Thread Jason F. McBrayer
n reclaim when it's convenient. -- +----+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy, don't give him more | | money; rather, reduce his desires."-- Epicurus |

Re: User Authentication - What's the best way?

2005-08-30 Thread Jason F. McBrayer
admin authentcation works might get me going. I arrived at this solution by looking at the anonymous session documentation and the admin code. If my code samples don't help, you might want to look there, too. Good luck! -- ++

Re: Basic file upload (not model file object)

2005-08-30 Thread Jason F. McBrayer
The "enctype" on the form was "multipart/form_data" rather than "multipart/form-data". Too much typing python, I guess ;) Thanks, all, for the response. As I said, I knew it had to be something stupid. -- +----

Re: Basic file upload (not model file object)

2005-08-29 Thread Jason F. McBrayer
ld), but somewhere else, either in my template or my view, but I am unable to find the problem (so far). Thanks for the input. -- +----+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythoc

Basic file upload (not model file object)

2005-08-29 Thread Jason F. McBrayer
what's going wrong here? It's surely something that should be completely obvious, but somehow I'm just managing to miss it. -- +----+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealt

Re: IMPORTANT: Django model syntax is changing

2005-08-26 Thread Jason F. McBrayer
' > I've tried a few variations on the keyword argument, and can't seem to find what it is now looking for. I regenerated the database from the model (sqlreset) and populated it a bit, just to make sure that wasn't it, but no joy. My django tree is at revision 559. Is anyone else seeing this?

<    4   5   6   7   8   9