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
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
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
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
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
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
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
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
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
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
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?
.
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
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
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
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
/. 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
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
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
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
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|
--~--~-~--~~
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)
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
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
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
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
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
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
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
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
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
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
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
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
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. :-)
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
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
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
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
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 |
it's about a very real
memory leak.
Django-ly Yours,
- Jason
o that I'm relatively smart guy, but tracking down memory leaks
in Python truly humbles me.
-Jason
'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
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
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
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
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
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;
and 10g, but I'm wise enough to know that I should expect
the unexpected. :-)
-Jason
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
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
(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
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
_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
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 |
|
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 |
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 |
Which revision are you using? I think rjwittams fixed it in revision
#1159.
--Jase
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 |
ected, but does update the __repr__ until
the page is saved... It's quite confusing.
-jason
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
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
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
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
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 |
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!
--
++
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.
--
+----
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
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
'
>
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?
801 - 869 of 869 matches
Mail list logo