On 29-Mar-08, at 11:43 AM, Kenneth Gonsalves wrote:
> {% for w in wc %}
w.title<-- forgot this
>
> {% for sample in w.workcategory_set.all %}
> sample
> {% endfor %}
>
> {% endfor %}
--
regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/code/
--~--~--
On 29-Mar-08, at 11:17 AM, Brandon Taylor wrote:
> What I would like to accomplish is output that looks as such:
>
> Category name
>
> Sample Name
> Sample Name
> Sample Name
>
>
> Category name
>
> Sample Name
> Sample Name
> Sample Name
>
>
wc = WorkCategory.objects.all()
for w
thanks so much evert really appreciate it.. it works
now i do like this
ds = DigitalSignage.objects.get(pk=ds_id)#Digital Signage
config & setting
setting = ds.setting
textslots = ds.textslot_set.all()
slots = ds.slot_set.all()
tablesl
I already have my site built in Rails, and this is just a re-code in
Django. I've had really good luck with it until now :) You can see the
desired output (although the markup is different) at
http://www.btaylordesign.com/portfolio
On Mar 29, 12:47 am, Brandon Taylor <[EMAIL PROTECTED]> wrote:
>
What I would like to accomplish is output that looks as such:
Category name
Sample Name
Sample Name
Sample Name
Category name
Sample Name
Sample Name
Sample Name
(repeat)
So, it made sense to me to start with the categories and loop through
the children for each category. Is my
On 29-Mar-08, at 10:52 AM, Brandon Taylor wrote:
> So, to simplify my question, how can I access the child objects of a
> 'work_category' through the nested for loop, given my model structure?
each WorkSample will have one work_category which you can access like
this:
worksamples = WorkSampl
I tried commenting out those lines but still got:
/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/
pyconfig.h:807:1: warning: this is the location of the previous
definition
error: command 'gcc' failed with exit status 1
any other ideas other than uninstall and install 32-bit
Sorry, I should have just posted my code instead of trying to simplify
it for the post. My apologies.
Item = WorkSample
WorkSample has a foreign key for the WorkCategory: work_category =
models.ForeignKey(WorkCategory)
I *assumed* I would be able to access any child objects of a
'work_category
On 29-Mar-08, at 10:30 AM, Brandon Taylor wrote:
> Sure. This app is for my portfolio. Here's my models.py
>
> class WorkCategory(models.Model):
> title = models.CharField(max_length = 30)
> position = models.PositiveSmallIntegerField()
>
> def __unicode__(self):
>
Sure. This app is for my portfolio. Here's my models.py
class WorkCategory(models.Model):
title = models.CharField(max_length = 30)
position = models.PositiveSmallIntegerField()
def __unicode__(self):
return self.title
class Admin:
On Fri, Mar 28, 2008 at 11:21 PM, <[EMAIL PROTECTED]> wrote:
> I'm trying to figure out the best way to link-up everything. Any
> suggestions?
So, since I talked about it at PyCon, I'll take an example from this
project:
http://www2.ljworld.com/data/crime/ku/
And I'll walk through this in a
On 29-Mar-08, at 10:13 AM, Brandon Taylor wrote:
> Sorry, that's my fault. I was trying to simplify the naming a bit for
> the post. 'work_category' should just be 'category'
could you paste the relevant models also (preferably without
'simplifying')
--
regards
kg
http://lawgon.livejournal
Sorry, that's my fault. I was trying to simplify the naming a bit for
the post. 'work_category' should just be 'category'
On Mar 28, 11:44 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> On 29-Mar-08, at 9:43 AM, Brandon Taylor wrote:
>
>
>
> > def showCategories(request):
> > categories =
On 29-Mar-08, at 9:43 AM, Brandon Taylor wrote:
> def showCategories(request):
> categories = Category.objects.all().select_related()
> return render_to_response('showCategories.html',{'categories':
> categories})
>
>
> In my template, I have:
>
> {% for category in categories %}
> {
just trying to think logic through here.
if i set the scrape up so the results are:
SB9, Anderson, 1
SB9, Andes, 1
SB9, Brown, 2
Where SB9 stands for Senate Bill 9, the middle field is the voting
last name (or last name + first initial if two people have the same
last name), and the last field
Hi everyone,
Still wet behind the ears with Django, so please bear with me...
In my model, I have categories and items. Each item belongs to a
category. When I run the admin app, I can see my categories, and I can
see my products. I have visually verified that each item has a foreign
key for the
On Mar 29, 8:43 am, hambaloney <[EMAIL PROTECTED]> wrote:
> Hello!
>
> I'm hoping to get an idea on how to approach a system setup I've been
> thinking about.
>
> In this system:
> - a group of users each has it's own Django site and database. (e.g.
> Group A has access only to Site A, etc)
> -
James,
Thnx. I would prefer scraping it into a CSV as well. I had a scraper
that got NCAA football scores from a site and output them in CSV to
drop into a db, it was in PHP though and scraped .html files.
Also, love your blog, a lot of great stuff there.
Thnx again,
C
On Mar 28, 9:34 pm, "Ja
On Fri, Mar 28, 2008 at 10:15 PM, <[EMAIL PROTECTED]> wrote:
> our state legislature has all their reports online in PDF format, i
> was hoping to scrape 'em and get them and use them with django to
> create something similar to what adrian did with the w-p and others
> have done.
There are
has anyone done any PDF scraping?
our state legislature has all their reports online in PDF format, i
was hoping to scrape 'em and get them and use them with django to
create something similar to what adrian did with the w-p and others
have done.
here's an example of what i'd have to scrape...
On Mar 29, 5:04 am, Slayer_X <[EMAIL PROTECTED]> wrote:
> Problem solved!
>
> I deleted the symlinks, delete de django-trunk dir and make a fresh
> install directly in
>
> /usr/lib/python2.4/site-packages/django
What do you mean by 'make a fresh install directly in'? Do you mean
you copied it in
On Sat, Mar 29, 2008 at 9:30 AM, Haroldo Stenger
<[EMAIL PROTECTED]> wrote:
> I have a terminology doubt:
>
> if my django project is called "p" and my django app within p is called "a",
>
> now in the context of django.contrib.admin.views,
> what do each of "app","model", and "id" stand for ? is
Hi all,
I am using jellyroll application written by jacob kaplan moss.
http://code.google.com/p/jellyroll/
I want to add geo-latitude and geo-longitude fields for flickr model.
Can anyone help me in syncing those 2 fields into my jellyroll app.
When displaying the photo I am want to mashup
Peter Rowell wrote:
>> So should I just create two classes that are identical but name one
>> CurrentElectionResults and the other PastElectionResults?
>>
Can't you just have a single class 'ElectionResults' and add a field
called 'current'?
I'm planning on doing something similar with my a
> So should I just create two classes that are identical but name one
> CurrentElectionResults and the other PastElectionResults?
That would be one way of doing it. There are promises of subclassable
(?) Models in the works, but it hasn't been released yet.
If there are a fair number of methods
On Mar 28, 2:48 pm, Evert Rol <[EMAIL PROTECTED]> wrote:
> locate uses a database which doesn't always get promptly updated.
> Waiting a few hours (or perhaps days) will show the correct
> base_site.html as well. So locate not finding this is not an issue here.
If you are root on the machine, you
I have a terminology doubt:
if my django project is called "p" and my django app within p is called "a",
now in the context of django.contrib.admin.views,
what do each of "app","model", and "id" stand for ? is "p" one of them ?
which part of the doc should I check ?
cheers
h
--~--~-~
Thanks for pointing that out. I just browsed to the object_list()
source, and it's nice to see a lot of the pagination stuffs abstracted
out, it indeed helped me to appreciate it more. :)
On Mar 28, 4:50 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On Fri, Mar 28, 2008 at 6:40 PM, bob <[EMAI
On Fri, Mar 28, 2008 at 6:40 PM, bob <[EMAIL PROTECTED]> wrote:
> in some examples that require extra work, we have to define a wrapper
> function. What's confusing me is how is this different from just
> defining regular views? I can't quite notice much reduction in code,
> nor improvements
Hi,
I'm a newbie to Django. I've just read the reference doc and Django
Book chapter on generic view, but I'm still a bit confused as to when
to justify the use of generic views. This is just out of curiosity,
as I'm sure there are aspects I've overlooked. My understanding is
that generic view
On Mar 28, 9:16 pm, Josh <[EMAIL PROTECTED]> wrote:
> I've determined that the problem is with the get(). If I just create
> the objects without first checking to see if it already exists,
> there's no problem.
>
> So I guess my question is now this: what's the best way to avoid
> duplicates here?
> directory. Also, when I run locate base_site.html from within the
> shell, it only returns the default base_site.html located in the
> django/contrib/admin/templates/admin/ directory. When I cd into
locate uses a database which doesn't always get promptly updated.
Waiting a few hours (or perh
Hello!
I'm hoping to get an idea on how to approach a system setup I've been
thinking about.
In this system:
- a group of users each has it's own Django site and database. (e.g.
Group A has access only to Site A, etc)
- each Django site shares common application code.
- all users log in via
I've determined that the problem is with the get(). If I just create
the objects without first checking to see if it already exists,
there's no problem.
So I guess my question is now this: what's the best way to avoid
duplicates here?
--~--~-~--~~~---~--~~
You rece
> Is there some graceful way to have the Django unit test framework
> access the "production database" for certain tests as opposed to
> creating a test db? The idea is to do a basic sanity check of the
> "production db" in case the schema has changed and the db needs to be
> rebuilt.
http://grou
Hi,
Is there some graceful way to have the Django unit test framework access
the "production database" for certain tests as opposed to creating a test
db? The idea is to do a basic sanity check of the "production db" in case
the schema has changed and the db needs to be rebuilt.
Please CC me
Hello,
I'm just going through the tutorial for the admin template
customization and for some reason django isn't picking up the
base_site.html file I copied into my /user/mytemplates/admin
directory. Also, when I run locate base_site.html from within the
shell, it only returns the default base_si
Hi Karen,
You are correct, it should be:
AUTH_PROFILE_MODULE=userprofile.userprofile
I think the current documentation on this particular issue, needs to
be updated more properly, since the way it is currently written does
not agree with what you have showed me.
Thank you so much!
Rgs!/Fco
On
make money online
http://www.idccard.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 em
make money online
http://www.idccard.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 em
On Fri, Mar 28, 2008 at 4:06 PM, Francisco Benavides <
[EMAIL PROTECTED]> wrote:
>
> Hi Again,
>
> I also get errors if I try to use the get_profile() funtion:
>
> from django.contrib.auth.models import User
>from txm.userprofile.models import UserProfile
>user= User.objects.get(us
I've made some changes to my admin interface to create a new set of
pages for editing some of my models. Instead of just /admin/app/model/
id, I now also have /admin/dashboard/id which shows summary of the
data for that object as well as giving some options for modifying some
of it's ForeignKey/Ma
HI Karen,
OK, I will leave Meta as "pass", which is sufficient, for now and I
thank you for your time and effort helping me.
I will wait on the get_profile() issue, I am using 0.97-pre.
Rgs!/Fco
On Mar 28, 2:14 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On Mar 28, 1:57 pm, "Karen Tracey"
Also, if you have access to the old DB still, consider exporting the
entire thing out again. Make sure that you include the structural
part as well as the data itself. It should export it directly as a
series of SQL statements. A complete dump will provide information
about the sequences.
--~-
On Mar 28, 1:57 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> ordering = ['auth_user.first_name','auth_user.last_name']
Giving a model a default ordering based on a foreign key is not
currently possible in either 0.96 or trunk.
--
"Bureaucrat Conrad, you are technically correct -- the best
Hi Karen,
Nop, the suggestion does not work, look at the trace:
Traceback debug:
http://dpaste.com/41887/
Rgs!/Fco
On Mar 28, 1:57 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Fri, Mar 28, 2008 at 3:46 PM, Francisco Benavides <
>
> [EMAIL PROTECTED]> wrote:
>
> > Hi Karen,
>
> > Thanks f
Hi Again,
I also get errors if I try to use the get_profile() funtion:
from django.contrib.auth.models import User
from txm.userprofile.models import UserProfile
user= User.objects.get(username__exact=username)
profile = user.get_profile()
Here is the traceback:
http://dpast
Given that you say you're working with PG Navicat, I assume you're
using Postgresql as your database. Postgresql has a concept of
sequences, which it uses to generate IDs for auto-generated fields
like Django's AutoField.
I think what you've done, by copying data in directly, is created
records w
On Fri, Mar 28, 2008 at 3:46 PM, Francisco Benavides <
[EMAIL PROTECTED]> wrote:
>
> Hi Karen,
>
> Thanks for the pointer. I started looking as suggested, and found an
> interesting link on the issue:
>
> http://groups.google.com.mx/group/django-users/browse_thread/thread/bddbc4c71e8298ef/3d367268
On Fri, Mar 28, 2008 at 2:35 PM, makebelieve <[EMAIL PROTECTED]> wrote:
> I haven't added any unique contraints. It really seems as though
> django doesn't know
> about my existing data. If I obliterate the old data everything works
> fine, but
> that's not a possibility.
At the database l
> (Now that I think of it, I'm somewhat surprised that Django's
> contrib.auth allows mixed case usernames. Quickly scanning through it,
> all examples seem to use all lower-case anyway.)
Surprised me too, but I'm not a real web developer (I pay the bills by
translating technical literature) so
It absolutely does work, I just didn't know what I was doing:
return HttpResponse(response_file.read(), mimetype=response_mimetype)
Thanks :)
On Mar 28, 1:00 pm, Mike Axiak <[EMAIL PROTECTED]> wrote:
> Does the following code change not work?
>http://dpaste.com/41855/
>
> Cheers,
> Mike
>
>
On Fri, Mar 28, 2008 at 1:40 PM, ameriblog <[EMAIL PROTECTED]> wrote:
>
> i have the following classes:
>
> NEWS
> headline
> story
> main-image (fk)
> story-image (fk)
>
> IMAGE
> image
> title
> description
> type
>
> What I'd like to do is in the admin, when I go to add a news item that
> in th
> Using the "iexact" option would fix this case. Take a look
> at:http://www.djangobook.com/en/1.0/appendixC/
> towards the bottom, in the Field Lookups section.
Yes, this is what I meant by "filter with case-insensitive queries
whenever the username is URL param" -- I just couldn't remember t
Hi Karen,
Thanks for the pointer. I started looking as suggested, and found an
interesting link on the issue:
http://groups.google.com.mx/group/django-users/browse_thread/thread/bddbc4c71e8298ef/3d367268d297e89c?lnk=gst&q=%22ForeignKey%22+and+%22ordering%22#3d367268d297e89c
The above, makes me l
Graham --
Thanks very much for your replies.
My concerns were from having two authorities saying different things
-- it makes the unwashed masses nervous. :-)
Of course, *now* I need to do a code review, since I hadn't been
thinking "thread safe" when I wrote it.
Is anyone (Django core develop
On Fri, Mar 28, 2008 at 2:10 PM, Eric VW <[EMAIL PROTECTED]> wrote:
>
> I have tried searching around in the newforms FileField documentation
> and have no idea what I is the UploadedFile object is when you
> cleaned_data? Does anyone else know?
>
> Thanks!
>
When documentation is lacking, there
I haven't added any unique contraints. It really seems as though
django doesn't know
about my existing data. If I obliterate the old data everything works
fine, but
that's not a possibility.
On Mar 28, 12:13 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On Fri, Mar 28, 2008 at 2:10 PM, makeb
That was it exactly - thank you very much!
Floyd
Justin Lilly wrote:
> You're being affected by a relatively new feature: Autoescaping HTML.
> You can find more information at this link:
>
> http://www.djangoproject.com/documentation/templates/#automatic-html-escaping
>
> -justin
>
> On Th
On Fri, Mar 28, 2008 at 2:10 PM, makebelieve <[EMAIL PROTECTED]> wrote:
> Saving some of my objects work, but only because early IDs have been
> removed
> so it isn't trying to insert an object with an existing ID.
It sounds like you have a unique constraint in the DB that you haven't
told Dja
I'm really in a bind here and need to get my site back up.
Any help at all will be greatly appreciated.
Saving some of my objects work, but only because early IDs have been
removed
so it isn't trying to insert an object with an existing ID.
Is there anyway to make django 'know' about the existin
On Thu, Mar 27, 2008 at 10:49 AM, Karantir <[EMAIL PROTECTED]> wrote:
>
> And here is a bit of my testcase
> [code]
>
> self.assertRaises(RevisionNotStarted,
> self.documents[0].fix_revision())
> [/code]
Try removing the extra parentheses from your test case. assertRaises
expects to get a cal
On Fri, Mar 28, 2008 at 12:42 PM, Francisco Benavides <
[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have created a User profile, pointing to the User table, as per the
> documentation; how can I access the User fields from the UserProfile
> so I can place that in the metadata class?
>
> userprofile.mo
> You've understood me perfectly. I was just being picky. I would
> *like* to preserve the option of cased usernames, but if wikimedia
> doesn't fuss with it, why should I? I'll just add a clean_username
> method to the registration form that .lower() 's the name entered as
> suggested.
> Thank
I have tried searching around in the newforms FileField documentation
and have no idea what I is the UploadedFile object is when you
cleaned_data? Does anyone else know?
Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goog
On Fri, Mar 28, 2008 at 12:10 PM, homebrew79 <[EMAIL PROTECTED]> wrote:
> A friend of mine that has been helping me look at this just showed me
> ticket 6256: http://code.djangoproject.com/ticket/6256. So I guess no
> need to reply. Thanks!
>
You're the second person to re-discover this bug in
hello,
I have subscribed successfully to the group, and can read it online,
but I'm not receiving emails sent from the group, even though I have
asked to when subscribing. Is this a known issue? Can any of you do
anything about it or should I contact google?
thanks,
andy baxter
--~--~-~
Problem solved!
I deleted the symlinks, delete de django-trunk dir and make a fresh
install directly in
/usr/lib/python2.4/site-packages/django
In my Apache conf I use this path
PythonPath "['/'] + sys.path"
And now Django is working :-D
Thanks a lot for your help
César
PD: Sorry for my ba
Does the following code change not work?
http://dpaste.com/41855/
Cheers,
Mike
On Mar 28, 1:16 pm, bfrederi <[EMAIL PROTECTED]> wrote:
> Mike,
>
> I'm not exactly sure how to do a read and get the file to be cached in
> memory with the middleware. If you look at the links I posted to my
> cod
On Fri, Mar 28, 2008 at 10:02 AM, Jonathan Lukens
<[EMAIL PROTECTED]> wrote:
>
> Hi Evert,
>
>
> > > 2) Validate new usernames for case-insensitive uniqueness and filter
> > > with case-insensitive queries whenever the username is URL param.
>
>
> > def view(request, username, child=None, ...):
I figured it out. The problem was that I was using get_image_url
instead of just image, so it was attempting to write to media_root/
media_root/path/to/image instead of media_root/path/to/image.
On Mar 19, 1:04 pm, Josh Ourisman <[EMAIL PROTECTED]> wrote:
> I'm trying to set up sorl-thumbnail in
You've understood me perfectly. I was just being picky. I would
*like* to preserve the option of cased usernames, but if wikimedia
doesn't fuss with it, why should I? I'll just add a clean_username
method to the registration form that .lower() 's the name entered as
suggested.
Thank you for you
i have the following classes:
NEWS
headline
story
main-image (fk)
story-image (fk)
IMAGE
image
title
description
type
What I'd like to do is in the admin, when I go to add a news item that
in the main-image field it only gets entries from IMAGE where type =
1, and story-image where type = 2
Ca
I've defined a model using a generic foreign key which is basically
exactly like the tagging example provided in the Django docs:
from django.db import models
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes import generic
class WordedItem(models.Model)
>>> 2) Validate new usernames for case-insensitive uniqueness and filter
>>> with case-insensitive queries whenever the username is URL param.
>
>> def view(request, username, child=None, ...):
>> username = username.lower()
>
> The problem here is that that even if 'Charlie' and 'charlie' canno
Hello:
I'm trying to get up on GeoDjango, but I can't get lookups to work at
all. All geographic operations via the GeoManager -- filter, exclude, get --
fail with the same error: "Operations on two geometries with different
SRIDs."
Strangely, though, I'm perfectly able to perform g
I have a website with the following i18n requirements:
Part of the site is monolingual with conventional URLs (e.g. /first/
example/).
Another part of the site is multi-lingual content from the database
(flatpages-like). The language code should be accepted as a prefix in
the URL (e.g. /fi/s
Mike,
I'm not exactly sure how to do a read and get the file to be cached in
memory with the middleware. If you look at the links I posted to my
code, how would I cache the file within that view I posted? The
decorator you specified worked perfectly fine for disabling the cache
middleware for tha
Hi Evert,
> > 2) Validate new usernames for case-insensitive uniqueness and filter
> > with case-insensitive queries whenever the username is URL param.
> def view(request, username, child=None, ...):
>username = username.lower()
The problem here is that that even if 'Charlie' and 'charlie'
I have a bunch of really weird errors coming from selenium built with the IDE
when running in proper selenium. The page in question is an admin form coming
from the python django framework
> info: Executing: |type | ctyhocn | gathi |
> debug: Command found, going to execute type
> error: Un
Hi,
I have created a User profile, pointing to the User table, as per the
documentation; how can I access the User fields from the UserProfile
so I can place that in the metadata class?
userprofile.models.py
http://dpaste.com/41831/
Thx!/Fco
--~--~-~--~~~---~--~~
OK, I've set Debug to FALSE, so I set it False and it's OK
let's have fun ! Django rocks
--~--~-~--~~~---~--~~
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
Hi Karen,
Thanks!
On Mar 27, 6:12 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Thu, Mar 27, 2008 at 6:45 PM, Francisco Benavides <
>
>
>
> [EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I am in the process of adding more information to the user, managed
> > via django.contrib.auth. I am gettin
Are you looking over my shoulders ? :)
Yes I've set up a wiki this 1 hour ago.
I cleaned my cookies and now he wants a 404.html template
I've never seen this before
I'll try to specify my template dir
---
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/django/core
Looks like you have a cookie in the webbrowser on your desktop, for
the localhost domain (have you been trying to run a wiki-page there?).
Try clearing that cookie, then reload/restart the dev-server.
> I've already run Django on my Laptop (OpenSuse 10.3) and it was so
> easy thanks to it's
Hi,
I've already run Django on my Laptop (OpenSuse 10.3) and it was so
easy thanks to it's own dev server.
On my desktop, I tried to run Djangon (openSuse 10.3 too).
Django Install : OK
import django : OK
Startproject : OK
runserver : OK
When I open my favorite browser, the only thing I can see
> I am writing an application that involves a number of nested parent-
> child relationships, where users create objects that each in turn have
> sub-objects. So far the URL structure looks like this:
>
> example.com/username/
> example.com/username/child1/, example.com/username/child2/
> example
David,
Good luck on what you are trying to achieve.
Jump in, I think your list is just enough for a proof of concept.
We are waiting eagerly to try what you come up with.
Dive in.
Regards,
Ariel
--~--~-~--~~~---~--~~
You received this message because you are su
A friend of mine that has been helping me look at this just showed me
ticket 6256: http://code.djangoproject.com/ticket/6256. So I guess no
need to reply. Thanks!
On Mar 28, 11:02 am, homebrew79 <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm having a really strange problem with the django admin, and
Hi,
I'm having a really strange problem with the django admin, and POST
data.
This is with trunk. On rev 7364. But this has been happening for a
long time on older builds.
There is an edit_inline that has several hundred associated records.
When saving, it frequently fails validation an gives
I am writing an application that involves a number of nested parent-
child relationships, where users create objects that each in turn have
sub-objects. So far the URL structure looks like this:
example.com/username/
example.com/username/child1/, example.com/username/child2/
example.com/username
What David said. In jquery it would be $("#field_id"). That's not a
django thing at all.
You can always view source to see what the field id is, but by default
django appends id_ to the field name in the model. So if it was called
"color" in your model, the field name would be "id_foo"
--~--~-
On Fri, Mar 28, 2008 at 11:54 AM, jeffself <[EMAIL PROTECTED]> wrote:
>
> I'm starting to see a lot of benefit in using UUID as a primary key
> rather than autogenerated id numbers. Since Django doesn't natively
> support the field, I guess you would have to use a CharField with a
> max_length of
Thanks Karen. Looks like that is my problem: using generic views with
newforms-admin. I'll need to either hand-roll those problematic forms
or wait for the newforms-generic to become available. I'll have to do
*something* - one of the foreign keys references a table with 1M rows!
That's one helluv
I'm starting to see a lot of benefit in using UUID as a primary key
rather than autogenerated id numbers. Since Django doesn't natively
support the field, I guess you would have to use a CharField with a
max_length of 32. Unfortunately, this wouldn't produce a native UUID
datatype which Oracle a
Hi everyone!
> Michael Wieher wrote:
> Get rid of your installation of django and re-install it.
---
done
>To test it, go to any unrelated location in your file-system (ie: cd /usr
>or cd /var or something, start up python and import django.)
---
I can import django without errors
>Also, be su
> thanks for reply, but i don't quite understand :( sorry i'm newbie
> here
> First my models.py is like this
> class DigitalSignage(models.Model):
> DS_ID = integerField()
>
> class tableSlot(models.Model):
> ds_id =models.ManyToManyField(DigitalSignage)
>
> class columnSetup(models
Hi everyone!
> Michael Wieher wrote:
> Get rid of your installation of django and re-install it.
---
done
>To test it, go to any unrelated location in your file-system (ie: cd /usr
>or cd /var or something, start up python and import django.)
---
I can import django without errors
>Also, be su
document.getElementById("field_id")
OR
if you use Prototype library : $("field_id")
--
David
On 28-Mar-08, at 10:49 AM, didia lim wrote:
> hi baxter, how can JS get the texfield by ID.. is there any
> documentation or example? sorry i'm still new in django
>
> - Original Message
> Fro
I've created a class called ElectionResults that contains the
following fields:
election = models.ForeignKey(Election)
precinct = models.ForeignKey(Precinct)
office = models.ForeignKey(Office)
candidate = models.ForeignKey(Candidate)
total_votes = models.PositiveIntegerField(default=0)
Here's th
1 - 100 of 130 matches
Mail list logo