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.
Tag: Django Tutorial
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:
[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.
[Django Tutorial] Create a New Django Application. Drillthrough of the Project Directory
A Django application is created within a Django Project. We have covered the creation of Django application on our previous blog. Go check it out for a detailed explanation. In order to create a new application we can do it by manage.py startapp command like shown below: