Re: building multiple dynamic websites on the fly

2014-01-08 Thread Erik Cederstrand
Den 07/01/2014 kl. 14.40 skrev Mrinmoy Das :

> Is there a pure django solution towards this problem?

There is the Django sites framework to help you decide what to do depending on 
the domain name you are receiving. See 
https://docs.djangoproject.com/en/dev/ref/contrib/sites/. Or just look at 
HttpRequest.META.HTTP_HOST and continue from there.

If you only want to offer subdomains to your users (user1.example.com), you 
just set up your DNS to pass all subdomains to your server (*.example.com).

If you want to offer arbitrary domain names, you either need to ask your users 
to register a domain name and set up their DNS to point to your server (and 
possibly set up your web server to accept these domain names), or become a 
domain name registrar yourself so you can handle the paperwork for them (like 
e.g. https://one.com does). The latter is not really an option if you are a 
small company.

Erik

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/AAE42C55-D776-4C4F-85C0-3F01CE525D1C%40cederstrand.dk.
For more options, visit https://groups.google.com/groups/opt_out.


Re: building multiple dynamic websites on the fly

2014-01-07 Thread Rafael E. Ferrero
Django its not a DNS Server you need one (like BIND) to point yours domains
IMHO you can use python scripts for automate Bind config files.

See u.


2014/1/7 Mrinmoy Das 

> Hi,
>
> Is there a pure django solution towards this problem?
>
>
> Mrinmoy Das
> http://goromlagche.in/
>
>
> On Tue, Jan 7, 2014 at 6:49 PM, Rafael E. Ferrero <
> rafael.ferr...@gmail.com> wrote:
>
>>
>> 2014/1/7 Mrinmoy Das 
>>
>>> Yeah I am working with django. Thing is I want the users to have their
>>> own domain names. Which I will store on my database and there site will be
>>> running on that domain name. But all these will be under a single django
>>> project. So how do I solve the urls and domain names?
>>>
>>> Mrinmoy Das
>>> http://goromlagche.in/
>>>
>>> Maybe you must to create an script for create DNS config files ?
>> If the user want to use his own .com or .net or whatever... they must to
>> point his domain to a DNS Service... if you has your own domain and every
>> user has his own SUBdomain from you then you must create that on your own
>> DNS.
>>
>> Hope to help you!
>>
>>
>>>
>>>  On Tue, Jan 7, 2014 at 6:25 PM, Mark Moss  wrote:
>>>
 So, you are trying to create a "website builder". instead of asking how
 to build the entire project, break the project into smaller chunks (like,
 login, profile mgmt, site creator, preview manager etc). Then start
 building it yourself and start asking your questions when you face
 challenges.

 -
 - Mark
 Try *Pre-installed Django Framework
 * that works instantly
 out-of-the box!

 --
 You received this message because you are subscribed to the Google
 Groups "Django users" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to django-users+unsubscr...@googlegroups.com.
 To post to this group, send email to django-users@googlegroups.com.
 Visit this group at http://groups.google.com/group/django-users.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/1f49e1a2-f92f-477a-a8e2-6f5f00978106%40googlegroups.com
 .

 For more options, visit https://groups.google.com/groups/opt_out.

>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To post to this group, send email to django-users@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAFWA-MP8tB0uKrb8zRdym%2BXSSv%2BX3KHk6UZ8B6D-9jSYb%3DC0Vg%40mail.gmail.com
>>> .
>>>
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>
>>
>> --
>> Rafael E. Ferrero
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAJJc_8V1rJQPQvph83UORPRh_0-yZ-YdMu5A5iO_PYJvg9C-PA%40mail.gmail.com
>> .
>>
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAFWA-MOXmT9o7oUSx0dCP0ZzUt6m4vZCyLuNk2dAXJvXUEFirw%40mail.gmail.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Rafael E. Ferrero

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJJc_8VZrnkWjafO8tdwOuChzFOJHOYYwL%3DZMUNJHwN2RR%2Bm%3Dw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: building multiple dynamic websites on the fly

2014-01-07 Thread Mrinmoy Das
Hi,

Is there a pure django solution towards this problem?


Mrinmoy Das
http://goromlagche.in/


On Tue, Jan 7, 2014 at 6:49 PM, Rafael E. Ferrero
wrote:

>
> 2014/1/7 Mrinmoy Das 
>
>> Yeah I am working with django. Thing is I want the users to have their
>> own domain names. Which I will store on my database and there site will be
>> running on that domain name. But all these will be under a single django
>> project. So how do I solve the urls and domain names?
>>
>> Mrinmoy Das
>> http://goromlagche.in/
>>
>> Maybe you must to create an script for create DNS config files ?
> If the user want to use his own .com or .net or whatever... they must to
> point his domain to a DNS Service... if you has your own domain and every
> user has his own SUBdomain from you then you must create that on your own
> DNS.
>
> Hope to help you!
>
>
>>
>> On Tue, Jan 7, 2014 at 6:25 PM, Mark Moss  wrote:
>>
>>> So, you are trying to create a "website builder". instead of asking how
>>> to build the entire project, break the project into smaller chunks (like,
>>> login, profile mgmt, site creator, preview manager etc). Then start
>>> building it yourself and start asking your questions when you face
>>> challenges.
>>>
>>> -
>>> - Mark
>>> Try *Pre-installed Django Framework
>>> * that works instantly
>>> out-of-the box!
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To post to this group, send email to django-users@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/1f49e1a2-f92f-477a-a8e2-6f5f00978106%40googlegroups.com
>>> .
>>>
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAFWA-MP8tB0uKrb8zRdym%2BXSSv%2BX3KHk6UZ8B6D-9jSYb%3DC0Vg%40mail.gmail.com
>> .
>>
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> --
> Rafael E. Ferrero
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAJJc_8V1rJQPQvph83UORPRh_0-yZ-YdMu5A5iO_PYJvg9C-PA%40mail.gmail.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFWA-MOXmT9o7oUSx0dCP0ZzUt6m4vZCyLuNk2dAXJvXUEFirw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: building multiple dynamic websites on the fly

2014-01-07 Thread Rafael E. Ferrero
2014/1/7 Mrinmoy Das 

> Yeah I am working with django. Thing is I want the users to have their own
> domain names. Which I will store on my database and there site will be
> running on that domain name. But all these will be under a single django
> project. So how do I solve the urls and domain names?
>
> Mrinmoy Das
> http://goromlagche.in/
>
> Maybe you must to create an script for create DNS config files ?
If the user want to use his own .com or .net or whatever... they must to
point his domain to a DNS Service... if you has your own domain and every
user has his own SUBdomain from you then you must create that on your own
DNS.

Hope to help you!


>
> On Tue, Jan 7, 2014 at 6:25 PM, Mark Moss  wrote:
>
>> So, you are trying to create a "website builder". instead of asking how
>> to build the entire project, break the project into smaller chunks (like,
>> login, profile mgmt, site creator, preview manager etc). Then start
>> building it yourself and start asking your questions when you face
>> challenges.
>>
>> -
>> - Mark
>> Try *Pre-installed Django Framework
>> * that works instantly
>> out-of-the box!
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/1f49e1a2-f92f-477a-a8e2-6f5f00978106%40googlegroups.com
>> .
>>
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAFWA-MP8tB0uKrb8zRdym%2BXSSv%2BX3KHk6UZ8B6D-9jSYb%3DC0Vg%40mail.gmail.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Rafael E. Ferrero

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJJc_8V1rJQPQvph83UORPRh_0-yZ-YdMu5A5iO_PYJvg9C-PA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: building multiple dynamic websites on the fly

2014-01-07 Thread Mrinmoy Das
Yeah I am working with django. Thing is I want the users to have their own
domain names. Which I will store on my database and there site will be
running on that domain name. But all these will be under a single django
project. So how do I solve the urls and domain names?

Mrinmoy Das
http://goromlagche.in/


On Tue, Jan 7, 2014 at 6:25 PM, Mark Moss  wrote:

> So, you are trying to create a "website builder". instead of asking how to
> build the entire project, break the project into smaller chunks (like,
> login, profile mgmt, site creator, preview manager etc). Then start
> building it yourself and start asking your questions when you face
> challenges.
>
> -
> - Mark
> Try *Pre-installed Django Framework
> * that works instantly
> out-of-the box!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/1f49e1a2-f92f-477a-a8e2-6f5f00978106%40googlegroups.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFWA-MP8tB0uKrb8zRdym%2BXSSv%2BX3KHk6UZ8B6D-9jSYb%3DC0Vg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: building multiple dynamic websites on the fly

2014-01-07 Thread Mark Moss
So, you are trying to create a "website builder". instead of asking how to 
build the entire project, break the project into smaller chunks (like, 
login, profile mgmt, site creator, preview manager etc). Then start 
building it yourself and start asking your questions when you face 
challenges.

-
- Mark
Try *Pre-installed Django Framework 
* that works instantly 
out-of-the box!

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1f49e1a2-f92f-477a-a8e2-6f5f00978106%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: building multiple dynamic websites on the fly

2014-01-07 Thread Erik Cederstrand
Den 07/01/2014 kl. 11.03 skrev Mrinmoy Das :

> I am thinking of building an application which will enable users to build 
> their own websites on the fly. On my app you will need to sign-up and then 
> from their you can make your own websites from your profile (with your own 
> domain name). Can anyone guide me on the right way? 

You need to be much more specific. What tasks do you need help with? Nobody is 
going to give you a complete manual to create a new divshot.com or wix.com :-)

Erik

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8D5EEE16-9A99-4FD3-9761-8426E75B9872%40cederstrand.dk.
For more options, visit https://groups.google.com/groups/opt_out.