Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

django startapp admin file missing

Tags:

django

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?

like image 968
brno792 Avatar asked Sep 01 '26 00:09

brno792


1 Answers

You have to create it yourself.

edit:

Currently only the development version of Django creates an admin.py file within a new app.

like image 148
Matt Deacalion Avatar answered Sep 03 '26 18:09

Matt Deacalion



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!