It worked for me too but I don't understand why it works this way. On Tuesday, 4 December 2012 10:53:21 UTC+6, Aapo Rista wrote: > > keskiviikko, 28. marraskuuta 2012 16.53.15 UTC+2 Sultan Imanhodjaev > kirjoitti: > >> I use OSX Lion, virtualenv version 1.7.2, python 2.7.1. I just created a >> new virtualenv, downloaded and install Django 1.5 b1. >> > > I had the same problem: Mac OS X 10.8.2, Python 2.7.3 is installed with > MacPorts, just downloaded Django-1.5b1.tar.gz, created virtualenv with > command > > virtualenv ~/Documents/workspace/virtualenv/myproject-1.5 > > activated it: > > source ~/Documents/workspace/virtualenv/myproject-1.5/bin/activate > > and then tried to run django-admin.py help. This produced ImportError: > Could not import settings blaa blaa blaa. > > However, when I unset env variable DJANGO_SETTINGS_MODULE with command: > > export DJANGO_SETTINGS_MODULE= > > django-admin runs without complaints. You can verify if this variable is > set by issuing command: > > env | grep DJANGO_SETTINGS_MODULE > > >
-- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/B0YxD_jfIMcJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.