https://github.com/ojii/django-app-manage
manage.py for your reusable Django applications.
https://github.com/ojii/django-app-manage
Last synced: 3 months 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 (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-05T02:02:03.000Z (almost 9 years ago)
- Last Synced: 2025-03-27T19:41:48.994Z (3 months ago)
- Language: Python
- Size: 20.5 KB
- Stars: 6
- Watchers: 2
- 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.