x and the ability to compose forms dynamically and quickly.
Thanks for the help. I may pick it up again - but probably not for this
project.
-Todd Blanchard
On Dec 20, 2009, at 1:06 AM, Russell Keith-Magee wrote:
> As for dynamically expanding forms - Django treats that as a client
> side pr
expanding forms - IOW, allow the user to keep
adding books to an Author using DHTML.
So far my impression of forms is - ick - lame.
-Todd Blanchard
On Dec 19, 2009, at 4:37 PM, Karen Tracey wrote:
> On Fri, Dec 18, 2009 at 7:27 PM, Todd Blanchard wrote:
> One thing I'm keenly miss
Clear as mud. Where does it show how I update two objects in one form?
On Dec 19, 2009, at 1:16 PM, Antoni Aloy wrote:
> 2009/12/19 Todd Blanchard :
>> How does this solve the problem of having two related objects that have the
>> same attribute name (like "name") on
ef/request-response/#querydict-objects
> for more info.
>
> On Sat, Dec 19, 2009 at 2:27 AM, Todd Blanchard wrote:
> One thing I'm keenly missing from rails is the form input naming convention
> that causes the form values to be converted into a hierarchy. For instan
two' }}
this is very handy when updating multiple related objects in a single form
submit.
Is there a similar facility for django/python or will I need to write it?
-Todd Blanchard
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
T
I need users to attach arbitrary media files to database records. Attachments
seems to do what I need, except that its UI is utterly lame - it should figure
out the media type of the file from the extension and display an appropriate
thumbnail as well as a way to provide a viewer inline. Also,
'
and the entire app dies)
and a few others. I'm stuck. What's the trick to getting compatibility tags
for django installed into jinja2?
-Todd Blanchard
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post t
m no regex maven - I use them seldom and always
have to look them up and fiddle around with them for quite awhile to get them
right).
So, no, I would not be happier with pylons. I'm happy here with this
modification, thanks.
-Todd Blanchard
On Dec 4, 2009, at 12:41 AM, bruno desthuill
I'd gotten nearly a dozen responses to a later question so I figured the
threshold of awareness had passed on this one.
Anyhow, I'll check that one out. Thanks.
On Dec 3, 2009, at 2:48 PM, Nick Arnett wrote:
> tempted not to respond due to the "deafening silence" comment... did you
> imagine
y model vs view (because when I say view - I
mean just a function that takes a request, returns a response, and lives in a
file called views.py).
What am I missing?
On Dec 3, 2009, at 11:58 AM, bruno desthuilliers wrote:
> On 3 déc, 20:42, Todd Blanchard wrote:
>> On Dec 3, 2009, at 10:46
include it? I definitely cringe when copying an integrated
app's templates into my project's template hierarchy.
-Todd Blanchard
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to dj
c 3, 2009, at 9:05 AM, Todd Blanchard wrote:
> Forms seem nifty, but sometimes I want to display the data in the same format
> but readonly. Is there a to do this? I can't seem to find it.
>
> -Todd Blanchard
>
> --
>
> You received this message because you are s
Oh, I've already come to terms with that. So long as XCode makes indenting
easy I'm OK. :-)
On Dec 3, 2009, at 11:19 AM, Alex Robbins wrote:
> If you start to complain about significant whitespace too, you aren't
> welcome to stay either. :)
--
You received this message because you are subscr
I'm quite aware how the amazon browse service works. I also know it takes a
whole team of people to manage it. I'm one guy. :-)
On Dec 3, 2009, at 10:31 AM, Sean Perry wrote:
> Here is the page on Amazon for Learning Python:
--
You received this message because you are subscribed to the Goog
han one. Not DRY
at all. Just adding an app to INSTALLED_APPS should make all this other stuff
just happen.
-Todd Blanchard
On Dec 3, 2009, at 9:40 AM, Javier Guerra wrote:
> have you considered writing a url pattern generator? if it's handy
> enough, it would become quite popul
Forms seem nifty, but sometimes I want to display the data in the same format
but readonly. Is there a to do this? I can't seem to find it.
-Todd Blanchard
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group
python, django, postgis, and
a whole other raft of technologies all at once. Its a steep curve and I can
use all the help I can get.
-Todd Blanchard
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, se
That did it. I figured if the form had a primary key it would do an update. I
guess that was wrong.
The url is the form you describe, but the dispatcher view method adds the id to
the GET of the request to pass it on. So the url for this is actually
/incidents/edit/4.
Thanks.
On Dec 3, 20
n_occurred = forms.DateTimeField(widget=widgets.AdminSplitDateTime())
reporter = forms.ModelChoiceField(User.objects.all(),
widget=forms.HiddenInput())
id = forms.CharField(widget=forms.HiddenInput())
class Meta:
model = Incident
fields = ('title', '
Thanks, that makes the form show up populated.
But saving it creates a new record, despite making sure I have id in a hidden
field on the form. :-/
On Dec 3, 2009, at 12:26 AM, Rishabh Manocha wrote:
> On Thu, Dec 3, 2009 at 4:17 PM, Todd Blanchard wrote:
>> All the tutorials on form
onary of values, so how to convert a model object to a
dict?
-Todd Blanchard
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, se
string
> you've got handy.
>
> I think that the reason why this latter suggestion doesn't have a
> reason to exist is because you've always got to validate all sorts of
> stuff very specific to the model. By making one generic view, you're
> bound to never r
>> form = IncidentForm(initial={
>>'reporter': request.user.id,
makes it work OK. Seems counter-intuitive given the the ForeignKeyField wants
to work with objects rather than keys though.
On Nov 26, 2009, at 12:33 PM, Todd Blanchard wrote:
> I want it to
iceField
> (User.objects.all(), widget=forms.HiddenInput())
>
> then it should work out ok. I usually hide fk fields to a user if i
> want the current request.user object, because I don't want to allow
> the possibility for it to be changed.
>
> On Nov 25, 10:32 pm, Todd Blanchard wro
ve rendered the current logged in user's name elsewhere on the page,
it is set. But the popup selector isn't getting its selection set right. Any
tips?
-Todd Blanchard
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To
s
on every page as part of the base template.
So far so good. Hopefully I won't find any more widgets with surprise
dependencies.
-Todd Blanchard
On Nov 25, 2009, at 12:14 PM, Tim Valenta wrote:
> Is it a widget that has the "core.js"? I'd suggest putting that on
>
results in failure.
Is there some way to specify order dependency in js files using this mechanism?
Otherwise I think it is worthless.
-Todd Blanchard
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
ittle snippet or recipe to do this generically once and for all?
-Todd Blanchard
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send e
Did that, filed it. Ticket #12264
-Todd Blanchard
On Nov 25, 2009, at 8:01 AM, Tim Valenta wrote:
>
>
> On Nov 24, 10:32 pm, Todd Blanchard wrote:
>> Yep, I solved this by ripping and copying some code out of admin/sites.py
>> and adding a url conf for it.
>>
Blanchard
On Nov 24, 2009, at 8:42 PM, Karen Tracey wrote:
> On Tue, Nov 24, 2009 at 8:56 PM, Todd Blanchard wrote:
> I'm trying to use the date/time entry widgets from admin and I get this
> javascript error and the controls don't render.
>
> Where is this supposed to come f
I'm trying to use the date/time entry widgets from admin and I get this
javascript error and the controls don't render.
Where is this supposed to come from?
In annoyance, I have copied the head section precisely from an admin page that
work. Still doesn't work in my page.
in the admin
but now I'm building my own UI).
In fact, I'm pretty fuzzy in general about how code like widgets gets "found"
and loaded.
-Todd Blanchard
On Nov 24, 2009, at 3:52 PM, Tim Valenta wrote:
> Sorry-- I got out of sync with the replies.
>
>> Or am I missing s
sion is it has all of the elegance of X-windows. It can do anything
>>> but out of the box it does nothing except present a zillion confusing parts
>>> to the programmer and it has too many mechanisms but no policies.
>>
>>> I'm beginning to very much pine for
ve_media})
>
> Your template:
>{% block my_media_block %}
>{{ block.super }}
>{{ media }}
> {% endblock %}
>
> I fail to see what is so hard about this.
>
> Tim
>
> On Nov 24, 4:13 pm, Todd Blanchard wrote:
>> You know what, this is
ight in my head.
-Todd Blanchard
On Nov 24, 2009, at 2:05 PM, Tim Valenta wrote:
> The idea is along the lines of what you initially guessed.
>
> The admin accomplishes the non-duplicate effect in django/django/
> contrib/admin/options.py, starting at line 770. It loops over the
&g
;s in the admin base.html
> but you can take a look at if for there media blocks I believe are
> something like extrastyle etc...
>
> {% block extramedia %}
> {% if forms %}
>{% for form in forms %}
> {{ form.media }}
>{% endfor %}
> {% else %}
> {{ form
I've read this:
http://docs.djangoproject.com/en/dev/topics/forms/media/
Nifty.
Now, how exactly do I make sure that the media urls get spewed properly into
the head section of the page? This is apparently omitted everywhere I've
looked. The admin template seems to pull it off properly but
(not just Django -
> but it gets discussed a lot :-))
>
> Hope this helps!
>
> Happy Holidays!
>
> Best Regards,
> Donna 'SnowWrite' Snow
> card.ly/snowwrite
>
> Office Manager, Hacker Dojo
> hackerdojo.com
>
> Owner, C2E Training
> c2etraining.com
&
I'm still kind of struggling to get off the ground with django and
think I'd benefit from some face time with other developers. I'm in
San Diego.
Any resources?
-Todd
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
I like the rails mechanism for specifying page layouts (boilerplate
template that surrounds the currently rendered view).
Its simple and obvious.
I cannot, having read most of two books on django now along with the
website stuff, figure out how to do the same thing in django.
Also, I'm build
ddleware',
)
I added the last line and restarted the server. Same result.
On Nov 3, 2009, at 9:16 AM, Todd Blanchard wrote:
> As a total noob - I do that how?
>
> On Nov 3, 2009, at 9:14 AM, DrBloodmoney wrote:
>
>> Make sure that you have the CSRF middleware ins
As a total noob - I do that how?
On Nov 3, 2009, at 9:14 AM, DrBloodmoney wrote:
> Make sure that you have the CSRF middleware installed.
>
>
>> On Nov 3, 2009 12:09 PM, "Todd Blanchard" wrote:
>>
>> What did I screw up?
>>
>> TemplateSyntaxErr
What did I screw up?
TemplateSyntaxError at /polls/1/
Invalid block tag: 'csrf_token'
Request Method: GET
Request URL:http://localhost:8000/polls/1/
Exception Type: TemplateSyntaxError
Exception Value:
Invalid block tag: 'csrf_token'
Exception Location: /Library/Python/2.6/site-pac
On Oct 27, 2009, at 6:09 PM, Tim Chase wrote:
>
>> There's quite a learning curve here.
>
> The learning curve doesn't have much to do with Django, but
> rather development in general -- any time you take on a new
> technology (or soup of technologies, in this case Python/HTML/CSS
> Django's tem
You shouldn't have to do that. Most browsers cache form state so if a
user jumps off your page, then hits back, the form values should all
be restored. Try doing nothing and see what the browser does. I'll
bet it is what you want.
-Todd
On Oct 27, 2009, at 4:37 PM, webbo wrote:
>
> Hi
Great, I was trying to decide between that and "The definitive guide"
and guess which one I ordered
Back to Amazon... :-/
There's quite a learning curve here.
-Todd
On Oct 27, 2009, at 5:15 PM, Mike Dewhirst wrote:
>
> Todd Blanchard wrote:
>> Total d
that
relationship.
Anybody done this? Got any tips?
Thanks,
-Todd Blanchard
--~--~-~--~~~---~--~~
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@googlegro
ect
abandoned? Is there another workflow lib for django? I love the
admin and am leaning heavily towards django just for this, but I am
doing a system with a lot of different classes of users and events and
handoffs.
-Thanks
-Todd Blanchard
--~--~-~--~~~---~--~---
48 matches
Mail list logo