Sunday, January 29, 2012

Re: failing django install on dreamhost

I'm going to guess that maybe there is a syntax in one of the lines
preceding this one. Could you share the entire DATABASE session of
your settings file?

FYI, I have written a more up to date procedure for running Django on
Dreamhost - built on the great posts by Jeff Croft and others.
http://dashdrum.com/blog/2011/08/django-on-dreamhost/

On Jan 16, 12:19 pm, ebhakt <ebh...@gmail.com> wrote:
> I have tried to install django on dreamhost using many ways :
>
>    1. I have tried the official django install script from dreamhost
>    2. tried to follow instructions as per
>    http://jeffcroft.com/blog/2006/may/11/django-dreamhost/
>
> But in all the cases it fails at the syncdb step
>
> I tried the steps mentioned in jeff's blog with an older version of django
> even (v1.2.1)
>
> but nothing seem to work !!
>
> Here is the message that i get doing django-admin.py syncdb
>
> ============================================
>
> Traceback (most recent call last):
>   File "/usr/bin/django-admin.py", line 5, in <module>
>     management.execute_from_command_line()
>   File
> "/home/shell_user/django/django_src/django/core/management/__init__.py",
> line 429, in execute_from_command_line
>     utility.execute()
>   File
> "/home/shell_user/django/django_src/django/core/management/__init__.py",
> line 379, in execute
>     self.fetch_command(subcommand).run_from_argv(self.argv)
>   File
> "/home/shell_user/django/django_src/django/core/management/__init__.py",
> line 252, in fetch_command
>     app_name = get_commands()[subcommand]
>   File
> "/home/shell_user/django/django_src/django/core/management/__init__.py",
> line 101, in get_commands
>     apps = settings.INSTALLED_APPS
>   File "/home/shell_user/django/django_src/django/utils/functional.py",
> line 276, in __getattr__
>     self._setup()
>   File "/home/shell_user/django/django_src/django/conf/__init__.py", line
> 40, in _setup
>     self._wrapped = Settings(settings_module)
>   File "/home/shell_user/django/django_src/django/conf/__init__.py", line
> 73, in __init__
>     mod = importlib.import_module(self.SETTINGS_MODULE)
>   File "/home/shell_user/django/django_src/django/utils/importlib.py", line
> 35, in import_module
>     __import__(name)
>   File "/home/shell_user/django/django_projects/WebBuilder/settings.py",
> line 16
>     'NAME': 'oncloud_database',                      # Or path to database
> file if using sqlite3.
>          ^
> SyntaxError: invalid syntax
>
> ============================================
>
> Please comment !!
>
> Any help is always welcome
>
> Thanks
>
> --
> Bhaskar Tiwari
> Freelancer Developer and Active Directory Specialist
> Previously with Directory Services, Microsoft
> Cell Phone: Home Town : +91 9808437438 (preferred) , Delhi: +91 9971697075
> ____________________________________________________________
>  All we have to decide is what to do with the time that has been given to us
>
> Personal:
> ===================http://ebhakt.info/
> ===================
>
> Professional:
> ===================http://www.ebhakt.com/http://fytclub.net/http://crackzhack.net/
> ===================

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment