Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
paas-test
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Java-于龙
paas-test
Commits
90ba6a05
Commit
90ba6a05
authored
May 30, 2018
by
Java-于龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new file
parent
f9e59938
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
mdtest.md
mdtest.md
+24
-0
No files found.
mdtest.md
0 → 100644
View file @
90ba6a05
# 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'
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment