Reputation: 3082
Is it possible to pass arguments to settings through manage.py?
I need to pass some arguments to start a server with environment setup.
And I think it would be interesting to pass arguments to the settings.
Would anyone have another idea?
Thank you very much.
#python manage.py runserver var=local
Upvotes: 3
Views: 1793
Reputation: 1069
I normally have project setting as folder and then have base, production and development files which reflect setting as per envrioment and then I runserver using like python manage.py runserver --settings=settings.development
Upvotes: 3