Cookiecutter-django: django_extensions app is imported in local settings only

Created on 3 Feb 2017  路  2Comments  路  Source: pydanny/cookiecutter-django

I noticed the django_extensions app is being imported in local configuration only; provided I want to use its TimeStampedModel to build my models upon, shouldn't the app be present in production configuration as well i.e installed in common.py?

Most helpful comment

@webyneter django-extensions is only used in development (local.py) for security reasons. See: https://github.com/pydanny/cookiecutter-django/issues/417#issuecomment-158452987

said that, django-model-utils provide a very similar TimeStampedModel model class https://github.com/jazzband/django-model-utils/blob/3.1.2/model_utils/models.py#L18-L28

and other usefull features

All 2 comments

@webyneter django-extensions is only used in development (local.py) for security reasons. See: https://github.com/pydanny/cookiecutter-django/issues/417#issuecomment-158452987

said that, django-model-utils provide a very similar TimeStampedModel model class https://github.com/jazzband/django-model-utils/blob/3.1.2/model_utils/models.py#L18-L28

and other usefull features

@luzfcb, thanks for the exhaustive reply!

Was this page helpful?
0 / 5 - 0 ratings