I'm writing a new django project on 1.6 version but when I go to sync the database the settings.py returns this error:
Traceback (most recent call last): mod File= "manageimportlib.py", line 10, in <module> execute_from_command_lineimport_module(sysself.argvSETTINGS_MODULE) File "/usr/local/lib/python2.7/dist-packages/django/core/managementutils/__init__importlib.py", line 39940, in execute_from_command_lineimport_module utility.execute__import__(name) File "/usr/localhome/libyabir/python2.7Documentos/dist-packagespython/djangoproject_vine/corevine/managementvine/__init__settings.py", line 392, in execute29 self.fetch_command(subcommand).run_from_argv(self.argv) FileALLOWED_HOSTS "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",= line[] 261, in fetch_command commands = get_commands() File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 107, in get_commands^ SyntaxError: invalid syntax my settings.py before the error
import appsos BASE_DIR = settingsos.INSTALLED_APPS File "/usr/local/lib/python2path.7/dist-packages/django/conf/__init__dirname(os.py", line 54, in __getattr__ selfpath._setupdirname(name__file__)) File # "/usr/local/lib/python2.7/distQuick-packages/django/conf/__init__.py", line 49, in _setup start development settings - self._wrappedunsuitable =for Settings(settings_module)production # FileSee "https:/usr/localdocs.djangoproject.com/liben/python21.76/dist-packageshowto/djangodeployment/confchecklist/__init__.py", # lineSECURITY 128,WARNING: inkeep __init__ the secret key used modin production secret! SECRET_KEY = importlib.import_module(self.SETTINGS_MODULE)'*******************' # SECURITY FileWARNING: "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py",don't linerun 40,with debug turned on in import_moduleproduction! DEBUG = True TEMPLATE_DEBUG = __import__(name)True TEMPLATE_DIRS File= "/home/yabir/Documentos/python/project_vine/vine/vine/settings(os.py"path.join(BASE_DIR, line 29'templates') ALLOWED_HOSTS = [] ^ SyntaxError: invalid syntax