I want to create something like console.firebase.google.com, I am currently using Plesk Web Admin Panel, and I want to create a subdomain for the subdomain which will be example.example.example.com
How is that possible
Thanks
Create the main domain example.com and create the subdomain example.example.example.com by adding example.example.
Or:
Create the main domain example.example.com and create the subdomain example.example.example.com by adding example.
Or:
Create the main domain example.example.example.com.
As per Plesk logic, it is possible to create "subdomain" object only for the "main domain". There cannot be "subdomain" of "subdomain".
Related
I am trying to use django-database-size to display mysql table sizes to django admin page. The project has very limited docs to how to add the view.
Here is the repo: https://github.com/chrisspen/django-database-size
All it mentions about adding the view: Install the appropriate view in /sql (currently only PostgreSQL and MySQL supported).
App name = database_size and you need to create the view based on files in database directory.
I'm a beginner in Django.
I would like to know how to configure two different projects to share the same database table in Django. The database I'm using is MySQL.
Let's say there's two projects, project A and project B. In project A, I already created a custom user model in it. And in project B, I want to use the custom user table from database created in project A just for the login. Means that in project A, there's registration and login for the custom user model.
In project B, there's login only that will be using the same custom user data in the database.
Do I have to redefine the same custom user model from project A in project B?
What are the configuration settings that need to be done?
Thanks in advance.
project B can't accessible table from project A. but same database can accessible to multiple projects via enabling remote access on parent project database. but you should keep some point whenever your are made a model in any project then you must add that model in remain project
Okay, somehow I managed to solve this.
Like the previous step, I did python manage.py inspectdb > models.py in project A which I already created custom user model that used for registration and login. Then, I copy that models.py file into project B and changed the custom user model generated by project A to the exact same steps when I created the custom user model in project A. Means that I did the CustomUserManager class as well as the other necessary things required when you create a custom user model(AbstractBaseUser).
Then, in the settings.py of project B, I did AUTH_USER_MODEL which somehow solve this issue.
It seems like in order to use the same custom user model in different projects with same database, we need to redefine the exact custom user model along with managed = False.
Initially, I wanted a way to change when I receive a notification for free hard disk space, which I have successfully done. However, I would like to implement this rule on one of the existing templates rather than individually add it to each host. However, when I do attempt to add the trigger by using the expression {hostname:vfs.fs.size[drive:,pfree].last(0)}<5, I am confused as to what to put as the hostname, since I am trying to put this in a template for multiple hosts.
I have tried to name it the template name that consists of the hosts, but have been unsuccessful.
Thanks!
Trigger are associated with hosts they reference items from. To create a trigger "in" a template, reference an item from that template like so:
{template_name:vfs.fs.size[drive:,pfree].last(0)}<5
Why grails shiro plugin create read only tables in mysql for roles and permissions? i create controllers and actions and add them into permissions for registered role in BootStrap file. but every time when i want to add new action into permissions, I must delete the tables and recreate them via rerun the app. how I can edit permissions table manually or maybe I must not create roles and permissions in BootStrap for prod.
Are you sure these tables are readonly? You couldn't even write to them in the bootstrap...
Try to modify them with .save(failOnError:true) and see if you get an error message.
If you don't get an error, post your code with which you try to modify the roles and permissions and I'll help you to sort this out...
I want to make an app which allows to create a table by using returned user input. For example when you go to my website and fill in a website name I want it to create a table which corresponds this website name.
Another question would be how to make this user input make a subdomain to my current domain like:
yourURL.MyURL.com
u can simply use create_table method from ActiveRecord::Migration, but i don't think that this is a good way. To deal with subdomains u can read and watch nice railscast about that http://asciicasts.com/episodes/221-subdomains-in-rails-3