FAQ Database Discussion Community

How to resolve the following error in Django(1.4.2)

Am getting the following error: Traceback (most recent call last): File "manage.py", line 11, in <module> execute_manager(settings) File "C:\Users\Blue\Anaconda\lib\site-packages\django\core\management\__init__.py", line 459, in execute_manager utility.execute() File "C:\Users\Blue\Anaconda\lib\site-packages\django\core\management\__init__.py", line 382, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "C:\Users\Blue\Anaconda\lib\site-packages\django\core\management\base.py", line 196, in run_from_argv...

Django can't find staticfiles with Debug=False and Allowed_Hosts

Hi all I'm having trouble solving this issue: If I turn DEBUG to False, I can't run manage.py runserver: CommandError: You must set settings.ALLOWED_HOSTS if DEBUG is False Then, let's say I add something to ALLOWED_HOSTS: ALLOWED_HOSTS = ['*'] or ALLOWED_HOSTS = ['localhost'] or ALLOWED_HOSTS = ['', 'localhost'] Now, I...

No such table as django_site

I am following from the docs of django-disqus to use it in my project. I have installed it in my settings, with other needed settings (API key and short name). But when I try to run these commands: >>> from django.contrib.sites.models import Site >>> Site.objects.all() I am getting an error:...