Posts with tag: #python

Django: class based views

27 July 2018 — Written by Mitesh Patel
#python#django

In Django views used to be defined as function, which accepts the request argument and return HttpResponse. Well that is a very easy approach to implement a view for any given path. while there are other drawbacks of using this approach, like:

Read more →

Django: Set path for global static files

25 July 2018 — Written by Mitesh Patel
#python#django

In Django all your custom js/css/images are placed in /static/ directory of your module, But global file should be placed in your application, Django is not supplied with already created / configured global static path. you have to configure it manually.

Read more →
Copyright © 2022 Mitesh Patel. Built with Gatsby