Skip to content

Commit 28b2cbf

Browse files
committed
create apps python package to store multiple apps. One location for all apps
1 parent 07f8dd4 commit 28b2cbf

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,26 @@ $ python manage.py migrate --settings=root.settings.development
4343
```shell
4444
$ python manage.py runserver --settings=root.settings.development
4545
```
46+
47+
**Create a new app**
48+
```shell
49+
$ cd apps
50+
$ django-admin startpp <your_app_name>
51+
```
52+
53+
**Register a newly created app**
54+
- Go to [roots/settings/base.py](https://github.com/alex1the1great/Django-Eye/blob/master/root/settings/base.py)
55+
```python
56+
USER_DEFINE_APPS = [
57+
'apps.<your_app_name>.apps.<your_app_name>Config',
58+
]
59+
```
60+
61+
- Go to apps/<your_app>/apps.py
62+
- Change the app name to:
63+
> name = 'apps.<your_app_name>'
64+
65+
4666
## 🤝 Contributing
4767
Contributions, issues and feature requests are welcome!
4868
## ⭐️ Support

apps/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)