Tuesday, August 14, 2012

Re: DJANGO_DEFAULT_SETTINGS

On 15-8-2012 1:02, Furbee wrote:

> DJANGO_SETTINGS_MODULE is an environment variable that must be set. I
> believe this is taken care of for you when you create a project using
> django-admin. You may need to create it manually.

No, the trick is to run the manage.py script from the project's
directory. This manage.py script is created by django-admin.py
startproject. I realize you were on the right track, but putting it down
correctly. The full details are in the manual as linked previously.

From the tips and tricks department:
You can use a shell (as in zsh/sh/bash/ksh) alias to run that script:
alias djmanage='python manage.py'
--
Melvyn Sopacua

--
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate