runserver

Once the superuser has been created, pass the runserver argument to manage.py to start the local development web server:

This will make the localhost open at port 8000 by default (http://127.0.0.1:8000). The administrative panel is available at: http://127.0.0.1:8000/admin. Open a web browser and navigate to the administrative panel URL. Enter the superuser credentials:

Once they are entered, the administrative panel will list the available models, as well as the authentication and authorization section. These models are initially shown with an s at the end of their name (pluralizing them by default). This behavior can (and should) be overridden, though we won't focus on that task here:

Click on the U_s_statess model under ARENAS, and then click on the first object in the list of states objects. It should look like this:

These fields can be edited through this administrative panel, and even the geometry of the state (or, in this case, Puerto Rico) can be edited using the OpenLayers editing plugin included. Click Save after any edits. The data row can also be deleted from this interface.

Explore the complete administrative panel documentation here:
https://docs.djangoproject.com/en/2.0/ref/contrib/admin/.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset