Posts Tagged with 'Django'

Django is a high-level Python web framework that enables rapid development of secure and maintainable websites. Built by experienced developers, it takes care of much of the hassle of web development, so you can focus …

Last updated 6 months, 2 weeks ago | 447 views

Tags:- Python Django

To ensure your Django sitemap uses HTTPS, you can specify the protocol by adding it as a class variable in your sitemap class. Solution: Define Protocol in Sitemap Class Django's sitemap framework uses 'http' as …

Last updated 9 months ago | 578 views

Tags:- Python Django Django Sitemap Framework

Python | Print String N times >>> s = 'Python' >>> n = 5 >>> print(s * n) PythonPythonPythonPythonPython  

Last updated 3 years, 3 months ago | 1390 views

Tags:- Python Django

Python | Return multiple values from functions >>> def A(): return 2, 3, 4 >>> a, b, c = A() >>> print(a, b, c) 2 3 4  

Last updated 3 years, 3 months ago | 1316 views

Tags:- Python Django

Python | Join all items of a list to convert into a single string >>> x = ["Python", "Online", "Training"] >>> print(" ".join(x)) Python Online Training  

Last updated 3 years, 3 months ago | 1312 views

Tags:- Python Django

Python | Reversing a String >>> x = 'PythonWorld' >>> print(x[: : -1]) dlroWnohtyP  

Last updated 3 years, 3 months ago | 1361 views

Tags:- Python Django

 Python | In-place swapping of two numbers >>> a, b = 10, 20 >>> print(a, b) 10 20 >>> a, b = b, a >>> print(a, b) 20 10  

Last updated 3 years, 3 months ago | 1330 views

Tags:- Python Django

In Django, static files are the files that serve the purpose of additional purposes such as images, CSS, or JavaScript files. Static files managed by “django.contrib.staticfiles”. There are three main things to  set up static …

Last updated 3 years, 3 months ago | 1109 views

Tags:- Django

Compared to other frameworks, Django offers more code reusability. As Django is a combination of apps, copying those apps from one directory to another with some tweaks to the settings.py file won't need much time …

Last updated 3 years, 3 months ago | 1518 views

Tags:- Django

Django follows a Model-View -Template (MVT) architecture which is a variant of the MVC architecture.  Model: Logical data structure behind the entire app and signified by a database. A model is used in Django to …

Last updated 3 years, 3 months ago | 1445 views

Tags:- Django

Django | Set up Database We need to edit the setting.py file present in the project, which contains all the settings related to the project. By default Django comes with an SQLite database; The  SQLite database …

Last updated 3 years, 3 months ago | 1371 views

Tags:- Django

List the inheritance styles in Django There are three possible inheritance styles in Django, and they are: Abstract Base Classes: This is used when we want to make the parent class hold the information which …

Last updated 3 years, 3 months ago | 1388 views

Tags:- Django

Django | Set up environment variables in Django   1. Install Django Environ In your terminal, inside the project directory, type: $ pip install django-environ 2. Import environ in settings.py import environ 3. Initialise environ …

Last updated 3 years, 3 months ago | 1475 views

Tags:- Django

Some of the more well-known companies that make use of Django are:’ Instagram Mozilla Firefox Reddit YouTube Disqus Bitbucket Spotify NASA Pinterest Eventbrite, etc.

Last updated 3 years, 5 months ago | 1568 views

Tags:- Django

Django | Features  Features available in Django are Optimized for SEO Extremely fast A loaded framework that features authentications, content administrations and RSS feeds Exceptionally scalable to meet the heaviest traffic demand Highly secure Versatility, …

Last updated 3 years, 5 months ago | 1353 views

Tags:- Django