There are certain configurations in your settings.py such as DEBUG, STATIC_URL, DATABASES, SECRET_KEY, ALLOWED_HOSTS, etc. These settings are actually the ones that you need to look after while deploying to the production environment. Whenever your application goes live, you shouldn’t display your debug logs, or error messages on the browsers. This will make your application vulnerable. Also you might want to put different secret keys.
Category: Django
WARNINGS (URLs.W005) URL namespace ‘admin’ isn’t unique. You may not be able to reverse all URLs in this namespace
Lets jump into this minor issue you face while running Django migrations. The issue also has a quick fix. The issue is encountered when we type the following command in your terminal:
[Python] Making Website With DjangoCMS.
If you are following this website you can see we share most of the contents
[Django Tutorial] Connect MySQL Database in Django Framework
If you are looking forward to connect your MySQL database with python code that check
[Django Rest Framework] Build Your First REST API with Python Django Rest Framework. (CRUD Operation)
Django REST framework is a powerful and flexible toolkit for building Web APIs. Some reasons
[Django Rest Framework] OperationalError at /api/ no such table: django_session
If you are creating a API using Django Framework than you generally encounter this issue
[Django Tutorial] Implementation of Authentication, Login, Logout, Registration, URLs for logged in Users in Django.
In this blog tutorial, we will show you the step by step guide of implementing
[Django Tutorial] Table Search filter using Django filters.
When you have multiple entries in your table, sometimes it becomes difficult to find the
[Python Django] How To solve “ManagementForm data is missing or has been tampered with” issue?
We use forms to either post something or to retrieve items from the database. Simple
[Django Tutorial] Render Your First Django View.
The first route that is defined under urlpatterns is for django administrtion. You will be asked for your login credentials if you go to this url: http://127.0.0.1:8000/admin/
Second route which has a regex r’^$’ is defined for home. This denotes for an empty string. Therefore if the route is http://127.0.0.1:8000 it calls the home method and renders the view defined in that method.