User-set domain-prefixes, i.e. myname.googlegroups.com

23 views
Skip to first unread message

Alec Taylor

unread,
Jan 1, 2012, 9:45:48 AM1/1/12
to django...@googlegroups.com
Good morning,

I want to integrate user-set domain-prefixes to the registration
process of my site.

Sample form:

Username: []
Name: []
Password: []
Email: []
Domain prefix: [].googlegroups.com

How would I go about doing this in Django? — I suspect there would be
some facets of this (i.e. DNS) outside the scope of Django, but there
would be a good portion of it possible within Django.

Thanks for all suggestions,

Alec Taylor

creecode

unread,
Jan 1, 2012, 1:27:21 PM1/1/12
to django...@googlegroups.com
Hello Alec Taylor,

I've done something like this at one of my websites.

The basic steps I use are gather the info in a form.

On form submit the info goes into a website registration database and the user is sent a website creation confirmation email.

The user receives the email and clicks on the supplied confirmation link.

The user is informed that they will receive an email when their website has been created.

(The above should be familiar to those of you that have used James Bennett's django-registration.  It's basically the same mechanics but applied to website registration/creation.)

A cron job triggers once a minute and scans the website registration database, creating any confirmed pending website registration requests.

The cron job sets up a django environment and calls a series of custom django-admin commands that creates databases, django projects, apache configs, etc.

The DNS config for the domain is given a wildcard (*.googlegroups.com) address record and Apache is used to redirect to a default domain for any domain that isn't picked up by Apache's config files.

Toodle-looooooooooooooooooo............
creecode

Alec Taylor

unread,
Jan 2, 2012, 10:38:35 AM1/2/12
to django...@googlegroups.com
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/0VvJsoARllkJ.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.

Thanks a heap!

I'll see if I can set this up.

---

Do you think this sort of layout is popular, or would
googlegroups.com/myname be better (or be provided as an alternative)?

Reply all
Reply to author
Forward
0 new messages