I've been following the DjangoProject tutorial. When I run
python manage.py startapp newapp
while in the same directory as manage.py. In the newapp directory I see init.py, models.py, tests.py, and views.py but not admin.py file. Where is admin.py?
You have to create it yourself.
edit:
Currently only the development version of Django creates an admin.py file within a new app.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With