Receive our weekly advanced programming tips for FREE
11.March
Create first app in django
0
| 0 votes
Autor: bookkeeper
Chapter: Django
You have created you first django project. Now we should split up the logic into apps and other could reuse your app.

1. Create a folder "apps"
2. Change into it
3. Create a __init__.py file, to identify it as a module
4. Call django-admin.py startapp <app-name> Example: django-admin.py startapp homepage

It should look like this:



You have created your first app!