Common


Just a common category
10 декабря 2017 г. 21:43

How do Django ClassBaseViews work - CreateView

![](/media/markdownx/38f697f8-ece5-4225-be6f-f961c238017a.png)

Share:
Published by: Dennis
18 декабря 2018 г. 15:58

Django ClassBase DetailView Demystified

Step by step work flow how Django CBV DetailView realy works. So it's just the default flow and on every step you could reassign the described methods in order to change the behavior on any step... ![](/media/markdownx/b2ee118f-dffc-4695-a1bc-41e17416e463.png)

Share:
Published by: Dennis
18 декабря 2018 г. 11:43

Autoadjusting django settings file for development and production environment

So, working on a !Django! Project requires from you to adjust !settings! to environment. For example #development and !production! !environment!.

Especialy if your code runs on a few production sites with minor changes and all of them are synchronized via !git!.

  1. I suggest turning settings.py file into settings module with a collection of necessary settings file in it.
    First in t...

Share:
Published by: Dennis
11 ноября 2017 г. 23:10

A collection of useful .gitignore templates

Here is a list of ready to use .gitignore templates for different type of projects. Including of course !Python! and many others...

!git!, !github!, !gitignore!

Share:
Published by: Dennis
11 ноября 2017 г. 23:14

Sending emails via Gmail from Django

      The most easies way to send emais from #Django Application is using #Gmail.

For what purpose you need to add a few lines of code into your settings.py:

Configuring Django

add the following to settings.py:

EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = 'username'
EMAIL_HOST_PASSWORD = 'password'

...

Share:
Published by: Dennis
5 июня 2017 г. 17:20

Themes to describe

Hello everybody!

It's just the first post.

In my blog I'm going to share my expirience in #Python development, #DataScience and #ArtificialIntelligence.. 

Share:
Published by: Dennis
5 июня 2017 г. 15:40