4. La aplicación django-marcador¶
El objetivo de el tutorial es crear una aplicación de Django para gestionar marcadores. Ahora que el proyecto se ha creado y configurado, puedes empezar a trabajar en la propio aplicación.
4.1. Crear la applicación¶
You can create the app with the following command:
$ python manage.py startapp marcador
A new directory marcador will be created with the following
comments:
marcador
|-- __init__.py
|-- admin.py
|-- migrations
|   `-- __init__.py
|-- models.py
|-- tests.py
`-- views.py
The directory is found under the project directory mysite:
mysite
|-- manage.py
|-- marcador
|   |-- __init__.py
|   |-- admin.py
|   |-- migrations
|   |   `-- __init__.py
|   |-- models.py
|   |-- tests.py
|   `-- views.py
|-- mysite
|   |-- __init__.py
|   |-- settings.py
|   |-- urls.py
|   `-- wsgi.py
|-- static
`-- templates
Finally, add your new app marcador to INSTALLED_APPS in the file
settings.py:
33 34 35 36 37 38 39 40 41  | INSTALLED_APPS = (
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'marcador',
)
 |