Hello,

so now I have spent some time with Django and after the "WOW! the
models and the admin interface so cool!"-phase I am now in a "somehow
things are complicated for me..."-phase.

Here is what I did:
* defined a few models
* used the admin screen
* defined a few views

Now my idea was of course to expose some of the add-features of the
admin screen to normal site views, which I did like this:
* defined some url configurations and used url.py to define them
* wrote a view that displayed a form using form_from_model
* wrote some functions that look at request.POST with the values from
the form
* added instances of whatever I needed to add with values from the
post request

So now I have arrived at a user screen that was considerably more work
than getting the admin screen to work, but is far worse. (not a good
trade off...)

1. the form elements do not display those nice widgets as does the
admin screen (e.g. the DateField elements are missing the little
calendar and the today button) Where do I get the javascript action
from?

2. The error handling is different. In my version there are no nice
near form element error messages. I can treat an error only by looking
at my add operation. I don^t assume I need to reprogram the mechanism
of inserting those error messages in the right place, do I!?

Any hints from you?
thanks,
    Oliver


--~--~---------~--~----~------------~-------~--~----~
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 email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to