Fix grammar.
parent
011785f86d
commit
fe3ce7d300
1 changed files with 1 additions and 1 deletions
|
|
@ -183,7 +183,7 @@ and its constants in the `/app/users/constants.py` file:
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
First about the constants file, I like to have my constants in their own file and inside my module for 2 main reasons. Your constants will probably be used in your models, forms and views. The second reason is that it's a better organization for you to find them. Also, importing your constants as the module in uppercase indicates the constant type and the module name (like `USER` for `users.constants`) will avoid you name conflicts.
|
First about the constants file, I like to have my constants in their own file and inside my module for 2 main reasons. Your constants will probably be used in your models, forms and views. The second reason is that it's a better organization for you to find them. Also, importing your constants as the module in uppercase indicates the constant type and the module name (like `USER` for `users.constants`) will help you avoid name conflicts.
|
||||||
|
|
||||||
### First form
|
### First form
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue