Commit 90ba6a05 by Java-于龙

Add new file

parent f9e59938
# app
* ## Create an app
```python
python manage.py startapp myapp
```
* ## Change app name appeared in django admin app
1. Modify `./myapp/app.py`, in the config class (which subclasses `AppConfig`) add `verbose_name`attribute to indicate the name
```python
from django.apps import Appconfig
class MyAppConfig(AppConfig):
name = 'myapp'
verbose_name = 'A Greate App'
```
1. Indicate the config class in `__init__.py` in the app folder throuth `default_app_config`
```python
default_app_config = 'myproject.myapp.MyAppConfig'
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment