Creating multiple sites with django - python

I have to create a project in django where the admin can create the sites dynamically and assign the administrators for the same, which would manage that particular site.
Can someone please suggest with some hint on how it can be done?
Thanks in advance.

If you are already familiar with django sites, extend the User profile and write a custom auth in a similar way as in this question: 1404131/how-to-get-unique-users-across-multiple-django-sites-powered-by-the-sites-frame

Related

Create a Gmail account in Django using Python?

I'm working on a Django project and wanted its users to have the ability to create a Gmail account directly through our site.
Is anyone familiar with a way to do so?
If not, I was thinking of embedding Google's account creation page directly into the Django site, but I'm still unsure of how to do that.
Any suggestions would be great.
Thanks!

Django CMS Multisite User Permissions

Im starting a project using Django CMS that has multiple sites being controlled from one instance of Django CMS. I have found the documentation for User Permissions and Group Permissions but didn't see anything by default about permissions depending on which site the user is on.
I want to be able to give user a group and have them only be able to login to a specific site(s). Im sure this is going to be possible by requesting the current SITE_ID but I just wanted to see if anyone could point me in the right direction of a plugin or middleware that might let me do this?
Any advice would be greatly appreciated.

How to add custom view and actions to django admin panel?

I'm new at Python and Django development. I'm trying to make a simple blog.
Right now what i am trying to do is create a admin function to show comments that not approved by admin yet. I like to show that comments and offer accept or reject choices to admin.
The problem is, i don't know the steps. I made some searches online but couldn't find what we are looking for. What are the steps to do this? What i need to learn to do this?
How do i add add custom list, buttons and functionality? I don't event know where to write code for my custom admin functionality.
Ps: I'm not looking for someone to write code for me. I'm just looking for guidelines.
I recommend using django-admin-plus (https://github.com/jsocol/django-adminplus) which does exactly what you want:
AdminPlus aims to be the smallest possible extension to the excellent Django admin component that lets you add admin views that are not tied to models.
All AdminPlus does is allow you to add simple custom views (well, they can be as complex as you like!) without mucking about with hijacking URLs, and providing links to them right in the admin index.

Django: Create a site with subsites

I would like to create a site in django that follows the following example.
example.com
site1.example.com
site2.example.com
example.com being the main site. Users should be able to login from example.com to access the other subsites. What's the best way to accomplish this or has someone done something similar they'd like to share to help me solve this headache I'm having.
They should have different apps per subdomain
The way to do this is to have each site share the same database for at least some of the functionality; that is, some common elements are associated with one or more sites using the ManyToManyField.
See Django's documentation for associating content with multiple sites.

Multiple-instance Django forum software

Does anyone know of a django forum plugin that allows each member to have his own forum? If there isn't anything, than what would be the best way to accomplish this with a "regular" forum plugin for Django?
I once created a feature matrix of all Django forum apps I could find. It might be a bit outdated now, though (contributions welcome).
At least django-threadedcomments uses generic foreign keys, so you can attach a message thread to any database object, including users.
Look at DjangoBB.
Yep, the forum app of SCT can be used for this - simply set it up and create multiple "community Groups" (these are similar to vhosts) and map them to subdomains - each community group would have separate forum categories, can have separate templates, separate user permissions, etc. (but they will obviously share the same django users and their profiles) - as an example.. the following websites are all hosted on the same instance:
SCT website
My personal website/blog (the blog is also based on SCTs forum)
ShelfShare Community
Check out diamanda. I'm not sure it does what you need as far as the each user having its forums, but that's probably not too hard to hack on top. Probably as simple as adding a few ForeignKeys into auth.User to the diamanda models. In general django pluggables and djangoapps are good places to look for django stuff that is already written. Also, check out pinax.
I believe the Sphene Community Tools can do this.

Categories