Forgot Password

Alireza Savand blog

I am Alireza Savand, a Software Architect. I created this place so I could write and enjoy.

Tagged with django

Django #django 9

Django is a python web framework.

How to make Facebook Login possible in Django app ?

Have you ever wonder how to make Facebook/Google/Twitter or any other social login that work under OAuth possible with Django ? Here's a list of libraries that will help you to do it.

Please keep in mind, some of these might be outdated or no longer work with the current …


Read more... #django


Alireza Savand • Jul 24 2019

How to set up a PostgreSQL database in Django

You need to install psycopg2 Python library.

Installation

Download http://initd.org/psycopg/, then install it under Python PATH

After downloading, easily extract the tarball and:

$ python setup.py install

Or if you wish, install it by either easy_install or pip or pipenv.

(I prefer to use pip over easy_install …


Read more... #django


Alireza Savand • Jul 21 2019 1

Is it possible to use Django when you don't want to create a database through a model?

Yes, you can for sure do that.

There are 2 options you have to work with Django when you already have the database tables.

  • You may simply ignore Django ORM since you’re not going to use any its feature and directly communicate with the database with any client library and …

Read more... #django


Alireza Savand • Mar 03 2018

Is it possible to use Django when you don't want to create a database through a model?

There are 2 options you have to work with Django when you already have the database tables.

  • You may simply ignore Django ORM since you’re not going to use any its feature and directly communicate with the database with any client library and execute either raw queries or even use …

Read more... #django


Alireza Savand • Jan 30 2018 2

Which is better to learn, Node.js, Java, or Python?

None of them, as long as you haven’t outlined the project you’re going to work on.

Python is everywhere.

Java is everywhere.

NodeJS is in many places too.

Many big firms and companies use them, DropBox has many millions of lines of code in Python. Applications such as Instagram, Pinterest, …


Read more... #django


Alireza Savand • Nov 29 2017 2

What will be the scope of Python programming in upcoming technologies?


Right now Python is what you’re looking for when it comes to Web Application. Writing a madly scalable Python web application that works amazingly as a REST is something you get done in Python very simple and quick.

Many great companies and project are built upon Django, you can find …


Read more... #django


Alireza Savand • Oct 12 2017 3

Are Django/python web apps easy to deploy?

Deploying a Django project is piece of cake. However it depends on your deployment infrastructure as well

Anyway, I use Heroku and this is the only thing I need to deploy my code to production:

​$ git push master heroku


That’s all, in less than a minute the whole …


Read more... #django


Alireza Savand • Jul 21 2017 1

Ignoring Django Http404 exception with Rollbar

Rollbar is great tool while developing, it helps me a lot in my work flow. (I like the Sentry interface though).

Recently I've noticed tons of errors getting reported to Rollbar because Django Http404 was raised.

To do this, at settings module I've configured the Rollbar to be like:


ROLLBAR …

Read more... #django


Alireza Savand • Mar 19 2017 1

Use Django or end up building a Django

No matter if you’re a beginner or Professional web developer, use Django Python web framework for your web project otherwise you’ll end up building and assembling a Django all together and you will learn that in a hard way.

Well that’s not completely true, if you’re sure that your project …


Read more... #django


Alireza Savand • Mar 18 2017