On 9/5/06, adamjspooner <[EMAIL PROTECTED]> wrote: > I'm a newb to Django. I love it because I love Python. I'm also a > semi-newb to Python. I've written some cool stuff in Python that I > like, but can't seem to make the connection between my Python code and > Django. My biggest trouble is with making what I've written accessible > to views. Does anyone have any advice on how to wrap my brain around > this? Do I need to write custom managers? Are my functions (on a > specific model) accessible via an object? Do I need to write custom > views? I love the generic views...do I need to just extend those?
Hey Spoon, You're asking a lot of disparate questions here, but the basic thing to understand is that a Django view is *just Python code*. A view is just a Python function that returns an HttpResponse object. You can put whatever you want in there; you can do whatever you need to do before you return that HttpResponse. Adrian -- Adrian Holovaty holovaty.com | djangoproject.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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---