Giter VIP home page Giter VIP logo

django-manage.py-anywhere's Introduction

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.

django-manage.py-anywhere's People

Contributors

timonweb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

django-manage.py-anywhere's Issues

Couldn't find in subdirs

My django project has the following architecture, i.e. my manage.py file is not in the root of my project but in the src/ folder.

It is not found because the v2.0 only goes up. The v1.0 was going down too.

project
├── src
│   ├── project
│   │   ├── __init__.py
│   │   ├── asgi.py
│   │   ├── settings.py
│   │   ├── urls.py
│   │   └── wsgi.py
│   ├── __init__.py
│   └── manage.py
├── README.md
├── node_modules
├── package.json
├── package-lock.json 
└── ...

SyntaxError

I get following Syntax Error when running manage.py:

File "manage.py", line 8
    while [[ "`pwd`" != '/' ]]; do
                              ^
SyntaxError: invalid syntax

Maschine: Ubuntu 14.04.2
Python: 2.7.6

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.