Django ‘Sites’ Model – what is and why is ‘SITE_ID = 1’?

Django was created from a set of scripts developed at a newspaper to publish content on multiple domains; using one single content base. This is where the “sites” module comes in. Its purpose is to mark content to be displayed for different domains. In previous versions of django, the startproject script automatically added the django.contrib.sites … Read more

Getting Site Matching Query Does Not Exist Error after creating django admin

The Site object for your Django project is missing. Each Django project has a Site object which contains the site’s name and domain. It is usually automatically created when creating a Django project (in particular, when the syncdb command runs) but in your case it seems that didn’t happen. To fix it: Open the Django … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)