Re: django custom authentication

2017-09-15 Thread callsamleung
template_name maybe - template_name: The name of a template to display for the view used to log the user in. Defaults to registration/login.html. see: https://docs.djangoproject.com/en/1.8/topics/auth/default/#all-authentication-views news: https://docs.djangoproject.com/en/1.8/ref/tem

Hi, I want to know what's the core layer of django.

2017-09-15 Thread callsamleung
In Django Developer group, easy to see core layer of django, but what's the layer is the core layer? model, view, template? thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it

Re: setup.py for Django project?

2017-09-08 Thread callsamleung
hi, yes, django has `setup.py`, that's `manage.py`,LOL depend on how you think. if you code is like `tools`, that use `setup.py` like your code is a `calculator`. if not, that's many way to setup, like Fabric, Ansible,etc. think this two word, `functional` and `system/project` for python, see P

Re: How to pre-load model data?

2017-09-08 Thread callsamleung
hi, think about problem, you mean initial data? see this(https://docs.djangoproject.com/en/1.11/howto/initial-data/) django way suggestion: 1. django command, load/dump data.(https://docs.djangoproject.com/en/1.11/ref/django-admin/#django-admin-dumpdata) 2. write your data migration(https://doc