On Thu, Jul 17, 2014 at 7:58 PM, Matt Gushee <m...@gushee.net> wrote:

> Hi, Josh and all--
>
> Well, I found out that if I set ACCOUNTS_APPROVAL_REQUIRED and
> ACCOUNTS_VERIFICATION_REQUIRED to True, as per Stephen's message, I
> can then create an inactive user, then go back and set their account
> active, and they get a confirmation email. I'm a little confused by
> the logic there: if you create and activate an account in separate
> steps, a confirmation email is sent, but not if you create an account
> that is active from the beginning. Is that intentional, or is it just
> a side-effect of the logic for creating public accounts?
>

The flow, as I understand it, is unauthed user registers an account. Admin
approves the account, which triggers the email notification. Otherwise, the
unauthed user would never know that their account had been approved.

Anyway, I'm still looking for a more elegant solution, but this
> two-step procedure will work for now.
>

It seems to me you are searching for a problem, not a solution.


> Okay ... I found the above documentation and code, and I sort of
> understand ... I think I don't yet have a good grasp of how the
> different parts of Django fit together, but anyway, if I do something
> like this, what would be the best place to put the code? It doesn't
> seem like something that should be an app ... or is it?


Make it an app in your project. Anything else will be much more work for
you in the long run. Django applications can have tests, models, views,
urls, forms, management commands, tasks, etc. or any subset of these,
though tests are often required. With an app, you can customize every
aspect of your Mezzanine(Django(Python)) project. Remember that Mezzanine
is just an Django app.

You currently have a project. The Django way is to make apps in the root of
your project, though some groups like to create an "apps" directory. 6 ==
0.5*12. Perhaps call your app "registration". Take advantage of the Django
startapp management command, documented at
https://docs.djangoproject.com/en/dev/ref/django-admin/#startapp-app-label-destination
.

It is always difficult in an email to know exactly which path through the
documentation the writer has taken. If you have not yet completed the the
official Django Tutorial, I urge you to. Ross Laird also wrote a bunch of
excellent blog posts that cover getting started with Mezzanine.

ken

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to