mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-11 04:07:48 +03:00
Switch to using apps.py with Users app
This commit is contained in:
parent
1a4f000940
commit
bf15e018c2
|
@ -43,7 +43,8 @@ THIRD_PARTY_APPS = (
|
|||
|
||||
# Apps specific for this project go here.
|
||||
LOCAL_APPS = (
|
||||
'{{ cookiecutter.project_slug }}.users', # custom users app
|
||||
# custom users app
|
||||
'{{ cookiecutter.project_slug }}.users.apps.UsersConfig',
|
||||
# Your stuff: custom apps go here
|
||||
)
|
||||
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class UsersConfig(AppConfig):
|
||||
name = '{{cookiecutter.project_slug}}.users'
|
||||
verbose_name = "Users"
|
||||
|
||||
def ready(self):
|
||||
"""Override this to put in:
|
||||
Users system checks
|
||||
Users signal registration
|
||||
"""
|
||||
pass
|
Loading…
Reference in New Issue
Block a user