Django does not create admin.py file in new app

0

I'm following some video lessons about Django to make some changes in a project started some time by someone else. However, starting a new app in this project with the

django-admin start app mad 

files are created: __init__.py , models.py , testes.py and views.py , but not admin.py .

My version of Django is 1.3.4 and Python 2.7

What to do in this case? Can I create the file manually, or is there anything wrong with the settings?

    
asked by anonymous 08.02.2017 / 03:00

1 answer

1

Wilker,

It's probably the version of django you're using, I'm running version 1.10 and the admin.py file is created.

Also check the settings.py file in INSTALLED_APPS if the 'django.contrib.admin' value exists.

Either way you can create the admin.py file manually, with the initial contents as below:

from django.contrib import admin
    
08.02.2017 / 11:34