Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ojii/django-app-manage
manage.py for your reusable Django applications.
https://github.com/ojii/django-app-manage
Last synced: 8 days ago
JSON representation
manage.py for your reusable Django applications.
- Host: GitHub
- URL: https://github.com/ojii/django-app-manage
- Owner: ojii
- Created: 2014-12-23T12:55:28.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-05T02:02:03.000Z (over 8 years ago)
- Last Synced: 2024-04-15T00:40:46.928Z (7 months ago)
- Language: Python
- Size: 20.5 KB
- Stars: 6
- Watchers: 3
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
#################
django-app-manage
#################manage.py for your reusable Django applications.
**********
Quickstart
**********Assuming you have an application named ``my_awesome_app``, add the following to
the root of the project (aka next to ``setup.py``) in a file called
``manage.py``::import app_manage
urlpatterns = []
if __name__ == '__main__':
app_manage.main(
['my_awesome_app'],
DATABASES=app_manage.DatabaseConfig(
env='DATABASE_URL',
arg='--db-url',
default='sqlite://localhost/local.sqlite'
),
ROOT_URLCONF='manage',
STATIC_ROOT=app_manage.TempDir(),
MEDIA_ROOT=app_manage.TempDir(),
)You can now run Django commands such as ``test`` or ``makemssages`` via that
``manage.py`` file.