-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add rdmo-admin script #1185
base: 2.3.0
Are you sure you want to change the base?
Add rdmo-admin script #1185
Conversation
|
Maybe we should combine commands, |
After some thoughts I am wondering if this only solves my problems and could be better solved with a local custom script or Makefile. We can discuss this in our next meeting. |
I would keep it, think it's also useful for the local dev setup.. |
b46853f
to
cba45de
Compare
Rebased and ready (after tests are ok). |
def clean_dir(self, path, quiet=False): | ||
if path and os.path.exists(path): | ||
shutil.rmtree(path) | ||
if not quiet: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where does quiet
come from? it's not in the command arguments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To not "log" removal of the __pycache__
directories, see L37.
This PR adds a
rdmo-admin
script, which works like thedjango-admin
script and offers a way to use management scripts outside anrdmo-app
(e.g. in therdmo
repo).(My) use cases are:
instead of
or
instead of
which might not be to impressive, but has a more uniform interface and might be easier to document.
I think this could really be helpful if we extent it to help with the setup of RDMO, something like
We could even think about replacing rdmo-app with a cookiecutter, but I am not sure about this, yet.
Another use case would be to simplify the
makemessages
step.Any other ideas are welcome. Also, do we need this or is this additional complexity.