![]() ![]() For each of those models, register them with the admin as By default, logging in to the admin requires that the user has theįinally, determine which of your application’s models should be editable in theĪdmin interface. If you need to create a user to login with, use the createsuperuserĬommand. Visiting the URL you hooked it into ( /admin/, by default). Hook the admin’s URLs into your URLconf.Īfter you’ve taken these steps, you’ll be able to use the admin site by.If you’ve customized the MIDDLEWARE setting,ĭ.AuthenticationMiddleware andĭ.MessageMiddleware must be.The 'context_processors' option of OPTIONS. Add '' and its dependencies -ĭ, ,ĭ, and - to yourĭ_processors.request,ĭ_th, andĭ_ssages in. ![]() If you’re not using the default project template, here are the requirements: The admin is enabled in the default project template used by
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |