-
Notifications
You must be signed in to change notification settings - Fork 62
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
Supply other variables via command line #127
Comments
Potentially. Why not handle this by submitting a separate settings file
path? Am I crazy to think that is a style used by other Django management
commands? Where possible, I'd like mimic the style of the mother tongue.
…On Wed, Aug 8, 2018, 6:11 AM Claudiu Creanga ***@***.***> wrote:
My workflow implies that I receive the database from other systems. So
another system will run:
python manage.py build --build-dir folder but it will also have to
specify the path of the database it wants to use.
At the moment I'm using argparse and another file that the system can run
with the -input flag for the database path. Write that input path into a
file that then it is read by django.
Preferably I would like to have an argument in the build command where
users can insert something specific for their application (like in my case
the path to the db):
python manage.py build --build-dir folder --other-var path-df.sqlite
Are you interested in a PR like that?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#127>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAnCW_mJImPBB0b1RGL4FaOQwJN24z4ks5uOsd8gaJpZM4VzvA8>
.
|
@palewire thanks. I didn't know that I can pass a --settings flag to the build command. With that and an environment variable all works fine. |
Glad to hear it. I'm curious. What are you using bakery for? |
Delivering clinical dna & rna reports. Clients run a cloud app and some may also want a static html file at the end that they can download. Awesome project btw. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My workflow implies that I receive the database from other systems. So another system will run:
python manage.py build --build-dir folder
but it will also have to specify the path of the database it wants to use.At the moment I'm using argparse and another file that the system can run with the -input flag for the database path. It writes that input path into a file that then it is read by django.
Preferably I would like to have an argument in the build command where users can insert something specific for their application (like in my case the path to the db):
python manage.py build --build-dir folder --other-var path-df.sqlite
Are you interested in a PR like that?
The text was updated successfully, but these errors were encountered: