If needed, run the Django app again with python manage.py runserver 0.0. 0.0:8000 and then navigate once more to the URL http:// your-server-ip :8000/admin/ to get to the admin login page. Then log in with the username and password and password you just created.
One of the most powerful parts of Django is the automatic admin interface. It reads metadata from your models to provide a quick, model-centric interface where trusted users can manage content on your site. The admin's recommended use is limited to an organization's internal management tool.
When you put 'django. contrib. admin' in your INSTALLED_APPS setting, Django automatically looks for an admin module in each application and imports it. This is the default AppConfig class for the admin.
'django-admin' is not recognized as an internal or external command, operable program or batch file. To fix this, first close the terminal window and relaunch it with administrator privileges. Once you launch the elevated terminal window change directory to where you wish to start your Django project.
Try what Oggy is suggesting but then use ':' instead of '_' with the current Django:
<a href="{% url 'admin:index' %}">link to admin panel</a>
Which django version are you using? If you're using trunk, change your admin urlpatterns from:
(r'^admin/(.*)', admin.site.root)
to:
('^admin/', include(admin.site.urls))
And then you get a named URL pattern called 'admin_index' which you can refer to. See
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#reversing-admin-urls
for more information
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