Tumblelog by Soup.io
Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.

July 19 2018

test

this is a test

July 09 2018

generic 12factor manage.py for containers

Base manage.main hack which supports being an entry point.

In your project setup.py, add::

entry_points={
    'console_scripts': [
        'yourproject = yourproject.manage:main',
    ],
}

Replace your manage.py content with::

#!/usr/bin/env python
from crudlfap.manage import main

if __name__ == '__main__':
    main('yourproject.settings')

Note that it will enable DEBUG env ...

June 26 2018

Filter to shorten Natural Time

  • This is a filter to shorten the natural time value obtained using naturaltime function from humanize.

July 19 2018

test

this is a test

July 09 2018

generic 12factor manage.py for containers

Base manage.main hack which supports being an entry point.

In your project setup.py, add::

entry_points={
    'console_scripts': [
        'yourproject = yourproject.manage:main',
    ],
}

Replace your manage.py content with::

#!/usr/bin/env python
from crudlfap.manage import main

if __name__ == '__main__':
    main('yourproject.settings')

Note that it will enable DEBUG env ...

July 19 2018

test

this is a test

July 09 2018

generic 12factor manage.py for containers

Base manage.main hack which supports being an entry point.

In your project setup.py, add::

entry_points={
    'console_scripts': [
        'yourproject = yourproject.manage:main',
    ],
}

Replace your manage.py content with::

#!/usr/bin/env python
from crudlfap.manage import main

if __name__ == '__main__':
    main('yourproject.settings')

Note that it will enable DEBUG env ...

July 19 2018

test

this is a test

Older posts are this way If this message doesn't go away, click anywhere on the page to continue loading posts.
Could not load more posts
Maybe Soup is currently being updated? I'll try again automatically in a few seconds...
Just a second, loading more posts...
You've reached the end.

Don't be the product, buy the product!

Schweinderl