Code Monkey home page Code Monkey logo

Comments (1)

bernardopires avatar bernardopires commented on September 23, 2024

Hi jdcaballero,

thanks for the compliments and your feedback! It is not my intention to add
all previous django commands in a schema-compatible way. You can however
achieve what you want quite easily. Take a look at BaseTenantCommand. All
you have to do is to create a new Subclass of BaseTenantCommand and then
set the COMMAND_NAME to django's create superuser command
(createsuperuser). BaseTetantCommand will automatically run the command to
all schemas. You can use --schema to choose a specific schema if you want.

If you want to send a new patch, I'd suggest you to make a new command that
works exactly like BaseTenantCommand, that is, on all schemas. It would
take as an argument the name of which django command you want to run. All
other arguments would be passed to the command you wish to run. So if the
new command name is run_schemas and you want to create a new super user for
a specific schema, it would work like this ./manage.py run_schemas
createsuperuser --username=bla --email=[email protected]
--schema=my_specific_schema

Cheers,
Bernardo

2013/2/21 jdcaballero [email protected]

Hi, First of all I appreciate such a useful and great project. I will like
to send you a link to a test projecthttps://github.com/jdcaballero/django-tenant-schemas-test-project(minimal Blog) I've put that can be useful for people interested in
starting using your code.

Second: Are you willing to include a management command to create
superusers in the schemas ? I think that can be useful in settings such as
the one of blogs that use admin to enter data. In affirmative case I can
put some time to contribute it.

regards,


Reply to this email directly or view it on GitHubhttps://github.com//issues/24.

Bernardo Pires Carneiro

from django-tenant-schemas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.