https://github.com/timonweb/django-manage.py-anywhere
Run manage.py commands from anywhere. Finds the closest to current path manage.py file and runs commands against it.
https://github.com/timonweb/django-manage.py-anywhere
Last synced: over 1 year ago
JSON representation
Run manage.py commands from anywhere. Finds the closest to current path manage.py file and runs commands against it.
- Host: GitHub
- URL: https://github.com/timonweb/django-manage.py-anywhere
- Owner: timonweb
- Created: 2015-05-05T19:38:07.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2021-01-28T09:50:55.000Z (over 5 years ago)
- Last Synced: 2024-05-16T00:47:01.788Z (about 2 years ago)
- Language: Python
- Homepage: http://timonweb.com/posts/running-django-managepy-commands-from-anywhere/
- Size: 5.86 KB
- Stars: 34
- Watchers: 3
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Django-manage.py-anywhere
Run manage.py commands from any directory of your Django project.
> NOTE: This tool doesn't need any further updates, so don't worry if you see that it hasn't got any updates recently. It doesn't need any. It just works with any Django version. Enjoy!
# Installation is quick and simple
One line installer:
```
pip install django_managepy_anywhere
```
# Usage
Run ```manage.py``` from any directory of your Django project. It will find closest manage.py file to your current position and execute it.
The closer the file, the faster it will be found and executed. Usually, if you're within your Django code directory, manage.py will be found and executed very quickly.
# Version 2.0
While version 1.0 was based on bash, I completely rewrote the script in v2.0 and now it uses Python to execute. Should be more reliable in different environments, especially in
Docker.