Re: mtv pattern(diagram)

2010-10-14 Thread Roberto Benitez
I don't know is not in this chain of messages but yesterday "refreegrata"
shared the following graph and I agree with it:

request
|
|
   V
internal controller(urls.py)
   |
   |
  V

||
|   views |<-->model
|___|<--->template
  |
  |
 V
response


Simple, clear, I think nothing is missing. Maybe urls.py should be between
views and response too. Credits to refreegrata !

Thanks

Roberto

On Wed, Oct 13, 2010 at 8:57 AM, Kenneth Gonsalves wrote:

> On Wed, 2010-10-13 at 04:51 -0700, refreegrata wrote:
> > I have some questions.
> >
> > difference between : views in mtv and controllers in mvc,
> > difference between : templates in mtv and views in mvc,
> >
> > I read the documentation for Django, but still not clear to me.
>
> my diagram:
>
> request --> url --> view --> model --> view --> template -->url --> view
> --> model --> view --> url --> view ...
> --
> regards
> Kenneth Gonsalves
>
> --
> 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 email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Rich email with attachments

2010-10-14 Thread Roberto Benitez
I don't know tinyMCE in detail.
What I know is to send emails with media and style you need to include all
css inside the email template and, instead of making relative reference to
media urls, you have to use the whole absolute url.
My 2 cents.

Roberto

On Thu, Oct 14, 2010 at 7:35 AM, Jonathan Barratt <
jonathan.barr...@knifeict.com> wrote:

> On 14 ?.?. 2010, at 14:45, Sheena wrote:
>
> > Hi all
> >
> > I'm making a site in which users have access to a rich text editor
> > implemented with tinyMCE. What I want to do with the result is turn it
> > into an email and send it off.
> >
> > I want to include a non-standard button and I was wondering if anyone
> > can let me know how this can be achieved. The button should add an in-
> > line image off the user's hdd. When a user chooses to send off the
> > email I need all the images added in this way to be uploaded onto my
> > server.
>
> It sounds to me like what you're asking about is on the tinyMCE side of
> things, not Django's, and if so, this looks like what you're looking for:
>
> http://tinymce.moxiecode.com/examples_im/example_01.php
>
> > I also want to have the option to add any attachment. So I want to
> > have a button that when pressed allows the user to pick a file on
> > their hdd and have it uploaded immediately, without loosing anything
> > that's already filled in on the email form.
>
> For non-images looks like you want this:
>
> http://tinymce.moxiecode.com/examples_fm/example_01.php
>
> > I'm a bit of a nube in terms of both Django and javascript so I hope
> > it's not a silly request, I hope someone will at least be able to
> > point me in the right direction.
>
> On the server-side, once you've received the HTTP request with the uploaded
> file, you'll want to use the Django features described here:
> http://docs.djangoproject.com/en/dev/topics/http/file-uploads/
>
> Good luck!
> Jonathan
>
> --
> 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 email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: mtv pattern(diagram)

2010-10-13 Thread Roberto Benitez
* * * * * More experienced django developers: please correct me if I am
wrong. * * * * * *

>From my point of view, in terms of django, your graphic would look like the
following:

request ---> views ---> model ---> template ---> response
  |^
  |-|


Wouldn't it ? Why not ?

Thanks

Roberto


2010/10/13 Jonathan Barratt 

> On 13 ?.?. 2010, at 18:51, refreegrata wrote:
>
> > I have some questions.
>
> First off, I don't think you should be making a distinction of mtv against
> mvc. Django is mvc, there's no need, IMO, to describe it differently as an
> mtv -- model, template, view are just names for elements which Django uses
> to build an MVC framework.
>
> > difference between : views in mtv and controllers in mvc,
>
> IMHO, the controller, in both cases, is the user's browser. That's what
> lets them interact with the view you present and send input back to your
> model for processing. But others with more knowledge of Django than me may
> present you with a less simplistic description than this (e.g. some
> controller work is done in view functions).
>
> > difference between : templates in mtv and views in mvc,
>
> As Tom Evans put it so well, templates are just a sublayer of MVC views.
> Django's view methods, and templates should you use them, are its
> implementation of the View component in MVC.
>
> 0.02,
> Jonathan
>
> --
> 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 email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: cannot open Django official website

2010-10-10 Thread Roberto Benitez
Form me is working right now.
I don't know if it wasn't available before.

Roberto

On Sun, Oct 10, 2010 at 12:53 PM, retzzz  wrote:

> Anybody know what's wrong with django official website
> www.djangoproject.com?
> I can't open it by several days. Is it down or just my access request
> was blocked?
>
> --
> 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 email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Project-wide tests

2010-10-08 Thread Roberto Benitez
One thing you can do is to call your "out of django" app test process from
one of your django app test modules.
Roberto

On Fri, Oct 8, 2010 at 11:00 PM, diogobaeder  wrote:

> Hi there,
>
> I know that the testing facilities from Django read "test" modules
> inside all the installed apps, but is there a way to include a test
> from outside the apps, for example a "test" module located in the
> project root?
>
> I'm trying to do this so that I can build an end-to-end test that
> involves all the applications.
>
> Thanks!
>
> Diogo
>
> --
> 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 email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.