Re: Django 1.5 b1 django-admin.py error

2012-12-10 Thread Sultan Imanhodjaev
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.



Re: Django 1.5 b1 django-admin.py error

2012-12-03 Thread Aapo Rista
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/-/toDCpyxc7_MJ.
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.



Re: Django 1.5 b1 django-admin.py error

2012-11-28 Thread Sultan Imanhodjaev
Hi,

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.



On Nov 28, 2012, at 8:45 PM, Ramiro Morales wrote:

> On Wed, Nov 28, 2012 at 3:43 AM, Sultan Imanhodjaev
>  wrote:
>> Hello,
>> 
>> I just downloaded and type django-admin.py to start a new project and having
>> errors
>> 
>>> (devel)ninja devel: django-admin.py startproject hello
>>> Traceback (most recent call last):
>>> [..]
>> But when I just type django-admin.py I have error
>> 
>>> (devel)ninja devel: django-admin.py
>>> Usage: django-admin.py subcommand [options] [args]
>>> Options:
>>> [...]
>> 
>> Why Django cause this error since I simply use django-admin.py?
> 
> I've just tried to reproduce this based on ther rather sparse description 
> you've
> given us and I don't seee these problems.
> 
> Please expand the decription of your setup, particularly the "I just 
> downloaded"
> part. I see you are using a virtualenv.
> 
> -- 
> Ramiro Morales
> 
> -- 
> 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+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
> 

-- 
Kind regards,
Sultan Imanhodjaev
+996 559 06 76 06
PGP 0x4E357296
http://imanhodjaev.com

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django 1.5 b1 django-admin.py error

2012-11-28 Thread Ramiro Morales
On Wed, Nov 28, 2012 at 3:43 AM, Sultan Imanhodjaev
 wrote:
> Hello,
>
> I just downloaded and type django-admin.py to start a new project and having
> errors
>
>> (devel)ninja devel: django-admin.py startproject hello
>> Traceback (most recent call last):
>>  [..]
> But when I just type django-admin.py I have error
>
>> (devel)ninja devel: django-admin.py
>> Usage: django-admin.py subcommand [options] [args]
>> Options:
>> [...]
>
> Why Django cause this error since I simply use django-admin.py?

I've just tried to reproduce this based on ther rather sparse description you've
given us and I don't seee these problems.

Please expand the decription of your setup, particularly the "I just downloaded"
part. I see you are using a virtualenv.

-- 
Ramiro Morales

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Django 1.5 b1 django-admin.py error

2012-11-27 Thread Sultan Imanhodjaev
Hello,

I just downloaded and type django-admin.py to start a new project and 
having errors

(devel)ninja devel: django-admin.py startproject hello
> Traceback (most recent call last):
>   File "/Users/sultan/.virtualenvs/devel/bin/django-admin.py", line 5, in 
> 
> management.execute_from_command_line()
>   File 
> "/Users/sultan/.virtualenvs/devel/lib/python2.7/site-packages/django/core/management/__init__.py",
>  
> line 452, in execute_from_command_line
> utility.execute()
>   File 
> "/Users/sultan/.virtualenvs/devel/lib/python2.7/site-packages/django/core/management/__init__.py",
>  
> line 391, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File 
> "/Users/sultan/.virtualenvs/devel/lib/python2.7/site-packages/django/core/management/__init__.py",
>  
> line 262, in fetch_command
> app_name = get_commands()[subcommand]
>   File 
> "/Users/sultan/.virtualenvs/devel/lib/python2.7/site-packages/django/core/management/__init__.py",
>  
> line 108, in get_commands
> apps = settings.INSTALLED_APPS
>   File 
> "/Users/sultan/.virtualenvs/devel/lib/python2.7/site-packages/django/conf/__init__.py",
>  
> line 52, in __getattr__
> self._setup(name)
>   File 
> "/Users/sultan/.virtualenvs/devel/lib/python2.7/site-packages/django/conf/__init__.py",
>  
> line 47, in _setup
> self._wrapped = Settings(settings_module)
>   File 
> "/Users/sultan/.virtualenvs/devel/lib/python2.7/site-packages/django/conf/__init__.py",
>  
> line 132, in __init__
> raise ImportError("Could not import settings '%s' (Is it on 
> sys.path?): %s" % (self.SETTINGS_MODULE, e))
> ImportError: Could not import settings 'settings' (Is it on sys.path?): No 
> module named settings


But when I just type django-admin.py I have error

(devel)ninja devel: django-admin.py 
> Usage: django-admin.py subcommand [options] [args]
> Options:
>   -v VERBOSITY, --verbosity=VERBOSITY
> Verbosity level; 0=minimal output, 1=normal output,
> 2=verbose output, 3=very verbose output
>   --settings=SETTINGS   The Python path to a settings module, e.g.
> "myproject.settings.main". If this isn't provided, 
> the
> DJANGO_SETTINGS_MODULE environment variable will be
> used.
>   --pythonpath=PYTHONPATH
> A directory to add to the Python path, e.g.
> "/home/djangoprojects/myproject".
>   --traceback   Print traceback on exception
>   --version show program's version number and exit
>   -h, --helpshow this help message and exit
> Traceback (most recent call last):
>   File "/Users/sultan/.virtualenvs/devel/bin/django-admin.py", line 5, in 
> 
> management.execute_from_command_line()
>   File 
> "/Users/sultan/.virtualenvs/devel/lib/python2.7/site-packages/django/core/management/__init__.py",
>  
> line 452, in execute_from_command_line
> utility.execute()
>   File 
> "/Users/sultan/.virtualenvs/devel/lib/python2.7/site-packages/django/core/management/__init__.py",
>  
> line 375, in execute
> sys.stdout.write(self.main_help_text() + '\n')
>   File 
> "/Users/sultan/.virtualenvs/devel/lib/python2.7/site-packages/django/core/management/__init__.py",
>  
> line 241, in main_help_text
> for name, app in six.iteritems(get_commands()):
>   File 
> "/Users/sultan/.virtualenvs/devel/lib/python2.7/site-packages/django/core/management/__init__.py",
>  
> line 108, in get_commands
> apps = settings.INSTALLED_APPS
>   File 
> "/Users/sultan/.virtualenvs/devel/lib/python2.7/site-packages/django/conf/__init__.py",
>  
> line 52, in __getattr__
> self._setup(name)
>   File 
> "/Users/sultan/.virtualenvs/devel/lib/python2.7/site-packages/django/conf/__init__.py",
>  
> line 47, in _setup
> self._wrapped = Settings(settings_module)
>   File 
> "/Users/sultan/.virtualenvs/devel/lib/python2.7/site-packages/django/conf/__init__.py",
>  
> line 132, in __init__
> raise ImportError("Could not import settings '%s' (Is it on 
> sys.path?): %s" % (self.SETTINGS_MODULE, e))
> ImportError: Could not import settings 'settings' (Is it on sys.path?): No 
> module named settings


Why Django cause this error since I simply use django-admin.py?

 

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