Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 (about 9 years ago)
- Default Branch: master
- Last Pushed: 2021-01-28T09:50:55.000Z (over 3 years ago)
- Last Synced: 2024-03-30T02:20:22.617Z (3 months 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
Lists
- awesome-django - Django-manage.py-anywhere - Run manage.py commands from anywhere. Finds closest to current path manage.py file and runs commands against it. (Videos)
- awesome-django - Django-manage.py-anywhere - Run manage.py commands from anywhere. Finds closest to current path manage.py file and runs commands against it. (Videos)
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.