Re: I can't run django server nor activate the virtualenv

2014-05-03 Thread Lee
You are welcome, glad it helped :)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6a25dd58-95b2-4f3a-99e5-4c15b9c84f34%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: I can't run django server nor activate the virtualenv

2014-05-03 Thread Fred DJar
FINALLY 
the server is running

the problem was is two dependencies django-userena and django-bootstrap-form. 
and the userena dependency was relying on another dependency which is six 
(the core of the problem) because it didn't installed automatically when 
installing userena so i had to install it separately


I CAN't THANK YOU ENOUGH LEE
THANK YOU VERY MUCH FOR YOUR TIME

On Saturday, 3 May 2014 17:05:29 UTC+1, Lee wrote:
>
> Actually, its probably the same problem as from the start as I see your 
> install from the requirements file only installed Django itself and nothing 
> else. THerefore I presume it does not have a list of all the dependencies 
> you need. Assuming the last error was again "ImportError : No module named 
> bootstrapform", it looks like your project might be using 
> django-bootstrap-form from a quick google. So try the following with your 
> virtualenv active:
>
> pip install django-bootstrap-form
>
> BTW, what is this project you are trying to run. GIven it seems to have 
> external dependencies that you are not aware of, I assume its not your 
> code? If so, I would expect wherever you got it from to have a list of the 
> dependencies that the project needs to run (though usually they would be in 
> the requirements file too)
>
> Thanks
>
>
> On Saturday, 3 May 2014 16:59:01 UTC+1, Lee wrote:
>>
>> Can you copy the complete error across? The end of it is all important 
>> and its chopped off in the screenshot. 
>>
>> Thanks
>>
>> On Saturday, 3 May 2014 16:25:57 UTC+1, Fred DJar wrote:
>>>
>>> Thanks
>>> the second solution worked fine and the requirements were installed
>>>
>>> but again when i tried to run the server this is what i got
>>>
>>>
>>> 
>>>
>>>
>>> On Monday, 28 April 2014 11:03:40 UTC+1, Fred DJar wrote:




 *Hello guys, i'm a newbie so bear with me :)I have installed python 2.7 
 and django 1.6 on my desktop (ubuntu 14)but i can't run the application or 
 activate the virtualenv*

 *this is the message i got:*
 ubuntu@ubuntu:~/Downloads/saf$ python manage.py runserver
 Traceback (most recent call last):
   File "manage.py", line 10, in 
 execute_from_command_line(sys.argv)
   File 
 "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
  
 line 399, in execute_from_command_line
 utility.execute()
   File 
 "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
  
 line 392, in execute
 self.fetch_command(subcommand).run_from_argv(self.argv)
   File 
 "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
 line 242, in run_from_argv
 self.execute(*args, **options.__dict__)
   File 
 "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
 line 280, in execute
 translation.activate('en-us')
   File 
 "/usr/local/lib/python2.7/dist-packages/django/utils/translation/__init__.py",
  
 line 130, in activate
 return _trans.activate(language)
   File 
 "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
  
 line 188, in activate
 _active.value = translation(language)
   File 
 "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
  
 line 177, in translation
 default_translation = _fetch(settings.LANGUAGE_CODE)
   File 
 "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
  
 line 159, in _fetch
 app = import_module(appname)
   File 
 "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 
 40, in import_module
 __import__(name)



-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6682543e-c9b7-486d-918e-7c65d75a22f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: I can't run django server nor activate the virtualenv

2014-05-03 Thread Fred DJar
the boostrapform was installed correctly but there's still some problems
as you said this is not my code, and i will try to contact the guy who 
write the code and get the missing dependencies 




On Saturday, 3 May 2014 17:05:29 UTC+1, Lee wrote:
>
> Actually, its probably the same problem as from the start as I see your 
> install from the requirements file only installed Django itself and nothing 
> else. THerefore I presume it does not have a list of all the dependencies 
> you need. Assuming the last error was again "ImportError : No module named 
> bootstrapform", it looks like your project might be using 
> django-bootstrap-form from a quick google. So try the following with your 
> virtualenv active:
>
> pip install django-bootstrap-form
>
> BTW, what is this project you are trying to run. GIven it seems to have 
> external dependencies that you are not aware of, I assume its not your 
> code? If so, I would expect wherever you got it from to have a list of the 
> dependencies that the project needs to run (though usually they would be in 
> the requirements file too)
>
> Thanks
>
>
> On Saturday, 3 May 2014 16:59:01 UTC+1, Lee wrote:
>>
>> Can you copy the complete error across? The end of it is all important 
>> and its chopped off in the screenshot. 
>>
>> Thanks
>>
>> On Saturday, 3 May 2014 16:25:57 UTC+1, Fred DJar wrote:
>>>
>>> Thanks
>>> the second solution worked fine and the requirements were installed
>>>
>>> but again when i tried to run the server this is what i got
>>>
>>>
>>> 
>>>
>>>
>>> On Monday, 28 April 2014 11:03:40 UTC+1, Fred DJar wrote:




 *Hello guys, i'm a newbie so bear with me :)I have installed python 2.7 
 and django 1.6 on my desktop (ubuntu 14)but i can't run the application or 
 activate the virtualenv*

 *this is the message i got:*
 ubuntu@ubuntu:~/Downloads/saf$ python manage.py runserver
 Traceback (most recent call last):
   File "manage.py", line 10, in 
 execute_from_command_line(sys.argv)
   File 
 "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
  
 line 399, in execute_from_command_line
 utility.execute()
   File 
 "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
  
 line 392, in execute
 self.fetch_command(subcommand).run_from_argv(self.argv)
   File 
 "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
 line 242, in run_from_argv
 self.execute(*args, **options.__dict__)
   File 
 "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
 line 280, in execute
 translation.activate('en-us')
   File 
 "/usr/local/lib/python2.7/dist-packages/django/utils/translation/__init__.py",
  
 line 130, in activate
 return _trans.activate(language)
   File 
 "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
  
 line 188, in activate
 _active.value = translation(language)
   File 
 "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
  
 line 177, in translation
 default_translation = _fetch(settings.LANGUAGE_CODE)
   File 
 "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
  
 line 159, in _fetch
 app = import_module(appname)
   File 
 "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 
 40, in import_module
 __import__(name)



-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f297fcef-87d7-4bc2-a984-8ed4f12bd6ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: I can't run django server nor activate the virtualenv

2014-05-03 Thread Lee
Actually, its probably the same problem as from the start as I see your 
install from the requirements file only installed Django itself and nothing 
else. THerefore I presume it does not have a list of all the dependencies 
you need. Assuming the last error was again "ImportError : No module named 
bootstrapform", it looks like your project might be using 
django-bootstrap-form from a quick google. So try the following with your 
virtualenv active:

pip install django-bootstrap-form

BTW, what is this project you are trying to run. GIven it seems to have 
external dependencies that you are not aware of, I assume its not your 
code? If so, I would expect wherever you got it from to have a list of the 
dependencies that the project needs to run (though usually they would be in 
the requirements file too)

Thanks


On Saturday, 3 May 2014 16:59:01 UTC+1, Lee wrote:
>
> Can you copy the complete error across? The end of it is all important and 
> its chopped off in the screenshot. 
>
> Thanks
>
> On Saturday, 3 May 2014 16:25:57 UTC+1, Fred DJar wrote:
>>
>> Thanks
>> the second solution worked fine and the requirements were installed
>>
>> but again when i tried to run the server this is what i got
>>
>>
>> 
>>
>>
>> On Monday, 28 April 2014 11:03:40 UTC+1, Fred DJar wrote:
>>>
>>>
>>>
>>>
>>> *Hello guys, i'm a newbie so bear with me :)I have installed python 2.7 
>>> and django 1.6 on my desktop (ubuntu 14)but i can't run the application or 
>>> activate the virtualenv*
>>>
>>> *this is the message i got:*
>>> ubuntu@ubuntu:~/Downloads/saf$ python manage.py runserver
>>> Traceback (most recent call last):
>>>   File "manage.py", line 10, in 
>>> execute_from_command_line(sys.argv)
>>>   File 
>>> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
>>>  
>>> line 399, in execute_from_command_line
>>> utility.execute()
>>>   File 
>>> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
>>>  
>>> line 392, in execute
>>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>>   File 
>>> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
>>> line 242, in run_from_argv
>>> self.execute(*args, **options.__dict__)
>>>   File 
>>> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
>>> line 280, in execute
>>> translation.activate('en-us')
>>>   File 
>>> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/__init__.py",
>>>  
>>> line 130, in activate
>>> return _trans.activate(language)
>>>   File 
>>> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>>>  
>>> line 188, in activate
>>> _active.value = translation(language)
>>>   File 
>>> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>>>  
>>> line 177, in translation
>>> default_translation = _fetch(settings.LANGUAGE_CODE)
>>>   File 
>>> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>>>  
>>> line 159, in _fetch
>>> app = import_module(appname)
>>>   File 
>>> "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 
>>> 40, in import_module
>>> __import__(name)
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/938000b8-109e-4c2f-8fab-adf2de08f1ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: I can't run django server nor activate the virtualenv

2014-05-03 Thread Lee
Can you copy the complete error across? The end of it is all important and 
its chopped off in the screenshot. 

Thanks

On Saturday, 3 May 2014 16:25:57 UTC+1, Fred DJar wrote:
>
> Thanks
> the second solution worked fine and the requirements were installed
>
> but again when i tried to run the server this is what i got
>
>
> 
>
>
> On Monday, 28 April 2014 11:03:40 UTC+1, Fred DJar wrote:
>>
>>
>>
>>
>> *Hello guys, i'm a newbie so bear with me :)I have installed python 2.7 
>> and django 1.6 on my desktop (ubuntu 14)but i can't run the application or 
>> activate the virtualenv*
>>
>> *this is the message i got:*
>> ubuntu@ubuntu:~/Downloads/saf$ python manage.py runserver
>> Traceback (most recent call last):
>>   File "manage.py", line 10, in 
>> execute_from_command_line(sys.argv)
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
>> line 399, in execute_from_command_line
>> utility.execute()
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
>> line 392, in execute
>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
>> line 242, in run_from_argv
>> self.execute(*args, **options.__dict__)
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
>> line 280, in execute
>> translation.activate('en-us')
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/__init__.py",
>>  
>> line 130, in activate
>> return _trans.activate(language)
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>>  
>> line 188, in activate
>> _active.value = translation(language)
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>>  
>> line 177, in translation
>> default_translation = _fetch(settings.LANGUAGE_CODE)
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>>  
>> line 159, in _fetch
>> app = import_module(appname)
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 
>> 40, in import_module
>> __import__(name)
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1a60463a-459f-4af9-8357-87e9bf51424b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: I can't run django server nor activate the virtualenv

2014-05-03 Thread Fred DJar
Thanks
the second solution worked fine and the requirements were installed

but again when i tried to run the server this is what i got




On Monday, 28 April 2014 11:03:40 UTC+1, Fred DJar wrote:
>
>
>
>
> *Hello guys, i'm a newbie so bear with me :)I have installed python 2.7 
> and django 1.6 on my desktop (ubuntu 14)but i can't run the application or 
> activate the virtualenv*
>
> *this is the message i got:*
> ubuntu@ubuntu:~/Downloads/saf$ python manage.py runserver
> Traceback (most recent call last):
>   File "manage.py", line 10, in 
> execute_from_command_line(sys.argv)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
> line 399, in execute_from_command_line
> utility.execute()
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
> line 392, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
> line 242, in run_from_argv
> self.execute(*args, **options.__dict__)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
> line 280, in execute
> translation.activate('en-us')
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/__init__.py",
>  
> line 130, in activate
> return _trans.activate(language)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>  
> line 188, in activate
> _active.value = translation(language)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>  
> line 177, in translation
> default_translation = _fetch(settings.LANGUAGE_CODE)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>  
> line 159, in _fetch
> app = import_module(appname)
>   File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", 
> line 40, in import_module
> __import__(name)
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/254b5847-7990-43d6-ac8e-6a123720ad72%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: I can't run django server nor activate the virtualenv

2014-05-02 Thread Lee
Whoops sorry, should have thought, rmvirtualenv and mkvirtualenv come with 
virtualenvwrapper, not the default virtualenv...

Regarding the first error, was that the whole error or was there some more 
after where the screenshot cut off? Looks like it tried to install django 
that time so I guess the uninstall of the global version helped to some 
extent. 

Regarding the second option, ignore deleting the existing virtualenv 
(though you can just delete the original directories it created for it if 
you like) for now and just create a new one with a different name with the 
following:

*virtualenv --no-site-packages newenvname*

activate it as before then try running *pip install -r requirements *again  

On Saturday, 3 May 2014 00:23:03 UTC+1, Fred DJar wrote:
>
> Trying your first solution gave me this error messages !
>
>
>
> 
>
> And trying the second solution gave me the message that rmvirtualenv : 
> command not found !
>
>
> On Friday, 2 May 2014 23:26:43 UTC+1, Lee wrote:
>>
>> So it looks like its uninstalling the Django you already have 
>> installed in the global packages, in order to install the version specified 
>> in the requirements file, but is hitting a permissions error in doing 
>> so because you are not logged in as root (or elevating with sudo). I 
>> presume your virtualenv was set up using global site packages if its 
>> picking that up. So you have 2 options.
>>
>> 1) Elevate your permissions to delete the existing django in the site 
>> root with the following command (im not sure if you need to deactivate your 
>> virtualenv or not to do that since I never install anything globally):
>>
>> *sudo pip uninstall django*
>> Enter your password when prompted
>>
>> Then with your virtualenv activated try the previous command again:
>>
>> *pip install -r requirements*
>>
>> 2) delete your virtualenv, and create a new one, specifying no site 
>> packages so you have an isolated virtualenv rather than the one you have 
>> now:
>>
>> *rmvirtualenv env*
>>
>> Then the following to create the new one, activate it and then install 
>> your requirements:
>>
>> *mkvirtualenv --no-site-packages env*
>> *source activate* (from the bin folder as usual)
>> *pip install -r requirements*
>>
>> Thanks
>>
>> On Monday, 28 April 2014 11:03:40 UTC+1, Fred DJar wrote:
>>>
>>>
>>>
>>>
>>> *Hello guys, i'm a newbie so bear with me :)I have installed python 2.7 
>>> and django 1.6 on my desktop (ubuntu 14)but i can't run the application or 
>>> activate the virtualenv*
>>>
>>> *this is the message i got:*
>>> ubuntu@ubuntu:~/Downloads/saf$ python manage.py runserver
>>> Traceback (most recent call last):
>>>   File "manage.py", line 10, in 
>>> execute_from_command_line(sys.argv)
>>>   File 
>>> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
>>>  
>>> line 399, in execute_from_command_line
>>> utility.execute()
>>>   File 
>>> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
>>>  
>>> line 392, in execute
>>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>>   File 
>>> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
>>> line 242, in run_from_argv
>>> self.execute(*args, **options.__dict__)
>>>   File 
>>> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
>>> line 280, in execute
>>> translation.activate('en-us')
>>>   File 
>>> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/__init__.py",
>>>  
>>> line 130, in activate
>>> return _trans.activate(language)
>>>   File 
>>> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>>>  
>>> line 188, in activate
>>> _active.value = translation(language)
>>>   File 
>>> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>>>  
>>> line 177, in translation
>>> default_translation = _fetch(settings.LANGUAGE_CODE)
>>>   File 
>>> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>>>  
>>> line 159, in _fetch
>>> app = import_module(appname)
>>>   File 
>>> "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 
>>> 40, in import_module
>>> __import__(name)
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/86872e59-5849-415b-b490-f37f6e09935b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: I can't run django server nor activate the virtualenv

2014-05-02 Thread Fred DJar
Trying your first solution gave me this error messages !




And trying the second solution gave me the message that rmvirtualenv : 
command not found !


On Friday, 2 May 2014 23:26:43 UTC+1, Lee wrote:
>
> So it looks like its uninstalling the Django you already have installed in 
> the global packages, in order to install the version specified in the 
> requirements file, but is hitting a permissions error in doing so because 
> you are not logged in as root (or elevating with sudo). I presume your 
> virtualenv was set up using global site packages if its picking that up. So 
> you have 2 options.
>
> 1) Elevate your permissions to delete the existing django in the site root 
> with the following command (im not sure if you need to deactivate your 
> virtualenv or not to do that since I never install anything globally):
>
> *sudo pip uninstall django*
> Enter your password when prompted
>
> Then with your virtualenv activated try the previous command again:
>
> *pip install -r requirements*
>
> 2) delete your virtualenv, and create a new one, specifying no site 
> packages so you have an isolated virtualenv rather than the one you have 
> now:
>
> *rmvirtualenv env*
>
> Then the following to create the new one, activate it and then install 
> your requirements:
>
> *mkvirtualenv --no-site-packages env*
> *source activate* (from the bin folder as usual)
> *pip install -r requirements*
>
> Thanks
>
> On Monday, 28 April 2014 11:03:40 UTC+1, Fred DJar wrote:
>>
>>
>>
>>
>> *Hello guys, i'm a newbie so bear with me :)I have installed python 2.7 
>> and django 1.6 on my desktop (ubuntu 14)but i can't run the application or 
>> activate the virtualenv*
>>
>> *this is the message i got:*
>> ubuntu@ubuntu:~/Downloads/saf$ python manage.py runserver
>> Traceback (most recent call last):
>>   File "manage.py", line 10, in 
>> execute_from_command_line(sys.argv)
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
>> line 399, in execute_from_command_line
>> utility.execute()
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
>> line 392, in execute
>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
>> line 242, in run_from_argv
>> self.execute(*args, **options.__dict__)
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
>> line 280, in execute
>> translation.activate('en-us')
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/__init__.py",
>>  
>> line 130, in activate
>> return _trans.activate(language)
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>>  
>> line 188, in activate
>> _active.value = translation(language)
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>>  
>> line 177, in translation
>> default_translation = _fetch(settings.LANGUAGE_CODE)
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>>  
>> line 159, in _fetch
>> app = import_module(appname)
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 
>> 40, in import_module
>> __import__(name)
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/fef8f50d-4d30-4b28-9a4a-ce7ac01ac5fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: I can't run django server nor activate the virtualenv

2014-05-02 Thread Lee
So it looks like its uninstalling the Django you already have installed in 
the global packages, in order to install the version specified in the 
requirements file, but is hitting a permissions error in doing so because 
you are not logged in as root (or elevating with sudo). I presume your 
virtualenv was set up using global site packages if its picking that up. So 
you have 2 options.

1) Elevate your permissions to delete the existing django in the site root 
with the following command (im not sure if you need to deactivate your 
virtualenv or not to do that since I never install anything globally):

*sudo pip uninstall django*
Enter your password when prompted

Then with your virtualenv activated try the previous command again:

*pip install -r requirements*

2) delete your virtualenv, and create a new one, specifying no site 
packages so you have an isolated virtualenv rather than the one you have 
now:

*rmvirtualenv env*

Then the following to create the new one, activate it and then install your 
requirements:

*mkvirtualenv --no-site-packages env*
*source activate* (from the bin folder as usual)
*pip install -r requirements*

Thanks

On Monday, 28 April 2014 11:03:40 UTC+1, Fred DJar wrote:
>
>
>
>
> *Hello guys, i'm a newbie so bear with me :)I have installed python 2.7 
> and django 1.6 on my desktop (ubuntu 14)but i can't run the application or 
> activate the virtualenv*
>
> *this is the message i got:*
> ubuntu@ubuntu:~/Downloads/saf$ python manage.py runserver
> Traceback (most recent call last):
>   File "manage.py", line 10, in 
> execute_from_command_line(sys.argv)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
> line 399, in execute_from_command_line
> utility.execute()
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
> line 392, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
> line 242, in run_from_argv
> self.execute(*args, **options.__dict__)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
> line 280, in execute
> translation.activate('en-us')
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/__init__.py",
>  
> line 130, in activate
> return _trans.activate(language)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>  
> line 188, in activate
> _active.value = translation(language)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>  
> line 177, in translation
> default_translation = _fetch(settings.LANGUAGE_CODE)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>  
> line 159, in _fetch
> app = import_module(appname)
>   File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", 
> line 40, in import_module
> __import__(name)
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/039d9148-b2a8-4a54-bf4d-c1b505e72ad0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: I can't run django server nor activate the virtualenv

2014-05-02 Thread Fred DJar



I got this error message trying to fetch the requirements 




On Monday, 28 April 2014 11:03:40 UTC+1, Fred DJar wrote:
>
>
>
>
> *Hello guys, i'm a newbie so bear with me :)I have installed python 2.7 
> and django 1.6 on my desktop (ubuntu 14)but i can't run the application or 
> activate the virtualenv*
>
> *this is the message i got:*
> ubuntu@ubuntu:~/Downloads/saf$ python manage.py runserver
> Traceback (most recent call last):
>   File "manage.py", line 10, in 
> execute_from_command_line(sys.argv)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
> line 399, in execute_from_command_line
> utility.execute()
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
> line 392, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
> line 242, in run_from_argv
> self.execute(*args, **options.__dict__)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
> line 280, in execute
> translation.activate('en-us')
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/__init__.py",
>  
> line 130, in activate
> return _trans.activate(language)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>  
> line 188, in activate
> _active.value = translation(language)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>  
> line 177, in translation
> default_translation = _fetch(settings.LANGUAGE_CODE)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>  
> line 159, in _fetch
> app = import_module(appname)
>   File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", 
> line 40, in import_module
> __import__(name)
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/56455b8d-63ae-477f-a113-52a1e471482f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: I can't run django server nor activate the virtualenv

2014-05-02 Thread Fred DJar
OMG another problem appeared from nowhere 
the "source activate" command is not working. i can't activate my virtualenv






On Friday, 2 May 2014 14:50:12 UTC+1, Andréas Kühne wrote:
>
> You can always see if your shell is running with a virtual environment, by 
> the (env) in front of the prompt. If you check your last screenshot, you 
> will see that you are running in a virtualenvironment there.
>
> Regards,
>
> Andréas
>
> 2014-05-02 15:48 GMT+02:00 Andreas Kuhne  >:
>
>> You are not running your commands in a virtual environment. You can't run 
>> pip outside the virtual environment because that requires root permissions. 
>> If you type "sudo pip install -r requirements", it will install the files, 
>> but I'm not sure you want to do that. 
>>
>> Every shell you open, you have to run "source activate" from the bin 
>> folder. Otherwise you will be running on the systems default.
>>
>> So before you write "pip install -r requirements", make sure you are in 
>> the bin folder and write "source activate".
>>
>> Regards,
>>
>> Andréas
>>
>> 2014-05-02 15:29 GMT+02:00 Fred DJar 
>> :
>>
>>
>>> I've got an error message running the last command. here is the 
>>> screenshot
>>>
>>>
>>> 
>>>
>>>
>>> On Friday, 2 May 2014 07:52:24 UTC+1, Lee wrote:

 No, you were in the right locatin before. Look at your last screenshot. 
 There was a file called requirements and you do it from there. If it does 
 not work, please confirm what is in that requirements file

>>>  -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to django-users...@googlegroups.com .
>>> To post to this group, send email to django...@googlegroups.com
>>> .
>>> Visit this group at http://groups.google.com/group/django-users.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/fea28e89-1b67-475d-8959-a345cdb65473%40googlegroups.com
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/fe2c39f5-4bc6-4478-b0ed-8c42d9610faa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: I can't run django server nor activate the virtualenv

2014-05-02 Thread Andreas Kuhne
You can always see if your shell is running with a virtual environment, by
the (env) in front of the prompt. If you check your last screenshot, you
will see that you are running in a virtualenvironment there.

Regards,

Andréas

2014-05-02 15:48 GMT+02:00 Andreas Kuhne :

> You are not running your commands in a virtual environment. You can't run
> pip outside the virtual environment because that requires root permissions.
> If you type "sudo pip install -r requirements", it will install the files,
> but I'm not sure you want to do that.
>
> Every shell you open, you have to run "source activate" from the bin
> folder. Otherwise you will be running on the systems default.
>
> So before you write "pip install -r requirements", make sure you are in
> the bin folder and write "source activate".
>
> Regards,
>
> Andréas
>
> 2014-05-02 15:29 GMT+02:00 Fred DJar :
>
>
>> I've got an error message running the last command. here is the screenshot
>>
>>
>> 
>>
>>
>> On Friday, 2 May 2014 07:52:24 UTC+1, Lee wrote:
>>>
>>> No, you were in the right locatin before. Look at your last screenshot.
>>> There was a file called requirements and you do it from there. If it does
>>> not work, please confirm what is in that requirements file
>>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/fea28e89-1b67-475d-8959-a345cdb65473%40googlegroups.com
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALXYUbkYKHCRm7mfqf0GxAEWpLD1%2B34MvwJyqQUHv8%3DL13%3DdbA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: I can't run django server nor activate the virtualenv

2014-05-02 Thread Andreas Kuhne
You are not running your commands in a virtual environment. You can't run
pip outside the virtual environment because that requires root permissions.
If you type "sudo pip install -r requirements", it will install the files,
but I'm not sure you want to do that.

Every shell you open, you have to run "source activate" from the bin
folder. Otherwise you will be running on the systems default.

So before you write "pip install -r requirements", make sure you are in the
bin folder and write "source activate".

Regards,

Andréas

2014-05-02 15:29 GMT+02:00 Fred DJar :

>
> I've got an error message running the last command. here is the screenshot
>
>
> 
>
>
> On Friday, 2 May 2014 07:52:24 UTC+1, Lee wrote:
>>
>> No, you were in the right locatin before. Look at your last screenshot.
>> There was a file called requirements and you do it from there. If it does
>> not work, please confirm what is in that requirements file
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/fea28e89-1b67-475d-8959-a345cdb65473%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALXYUbmMWgH7BcfMFB78LK4-tRS6B1fJq9Rhry4higfAbDYDPw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: I can't run django server nor activate the virtualenv

2014-05-02 Thread Fred DJar



I've got an error message running the last command. here is the screenshot




On Friday, 2 May 2014 07:52:24 UTC+1, Lee wrote:
>
> No, you were in the right locatin before. Look at your last screenshot. 
> There was a file called requirements and you do it from there. If it does 
> not work, please confirm what is in that requirements file
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/fea28e89-1b67-475d-8959-a345cdb65473%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: I can't run django server nor activate the virtualenv

2014-05-02 Thread Lee
No, you were in the right locatin before. Look at your last screenshot. There 
was a file called requirements and you do it from there. If it does not work, 
please confirm what is in that requirements file

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/edb91771-a911-4140-8b75-f8403471b13c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: I can't run django server nor activate the virtualenv

2014-05-01 Thread Fred DJar
yes i know because i've installed django before trying to work the 
virtualenv problem


On Friday, 2 May 2014 01:05:20 UTC+1, Lee wrote:
>
> Also be aware that from the stack trace, it looks like you have django 
> installed into the global site packages rather than your virtualenv. The 
> main point of virtualenv is to avoid that and have isolated environments. 
> But it's not really a problem as long as you are aware of the fact that you 
> are using the global site packages 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a9963dff-4662-4159-b380-6300b73bac23%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: I can't run django server nor activate the virtualenv

2014-05-01 Thread Fred DJar
so i'm in the 
directory /usr/local/lib/python2.7/dist-packages/django/core/management
and now i should run the command pip install -r requirements 
and replace requirements with the missing file (for example base.py) 
is that it??


*i'm sorry if my questions seems dumb*
On Friday, 2 May 2014 00:53:25 UTC+1, Lee wrote:
>
> Next command: pip install -r requirements 
>
> From the directory where the requirements file is of course... And 
> assuming the requirements file has all the requirements of whatever you are 
> trying to run in it
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/eec98eee-c16c-4392-a8f7-d2af54c1ecdc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: I can't run django server nor activate the virtualenv

2014-05-01 Thread Lee
Also be aware that from the stack trace, it looks like you have django 
installed into the global site packages rather than your virtualenv. The main 
point of virtualenv is to avoid that and have isolated environments. But it's 
not really a problem as long as you are aware of the fact that you are using 
the global site packages 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d5406ccd-2091-4575-9d35-0a4709848681%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: I can't run django server nor activate the virtualenv

2014-05-01 Thread Lee
Next command: pip install -r requirements 

>From the directory where the requirements file is of course... And assuming 
>the requirements file has all the requirements of whatever you are trying to 
>run in it

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c1c351fd-7234-43f6-886c-90e1a8b1cb64%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: I can't run django server nor activate the virtualenv

2014-05-01 Thread Fred DJar
Lol, thanks that was super easy
but now i have another problem, i'm missing some packages even though i'm 
in the virtualenv

here is a screenshot demonstration


 


On Monday, 28 April 2014 11:03:40 UTC+1, Fred DJar wrote:
>
>
>
>
> *Hello guys, i'm a newbie so bear with me :)I have installed python 2.7 
> and django 1.6 on my desktop (ubuntu 14)but i can't run the application or 
> activate the virtualenv*
>
> *this is the message i got:*
> ubuntu@ubuntu:~/Downloads/saf$ python manage.py runserver
> Traceback (most recent call last):
>   File "manage.py", line 10, in 
> execute_from_command_line(sys.argv)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
> line 399, in execute_from_command_line
> utility.execute()
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
> line 392, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
> line 242, in run_from_argv
> self.execute(*args, **options.__dict__)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
> line 280, in execute
> translation.activate('en-us')
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/__init__.py",
>  
> line 130, in activate
> return _trans.activate(language)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>  
> line 188, in activate
> _active.value = translation(language)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>  
> line 177, in translation
> default_translation = _fetch(settings.LANGUAGE_CODE)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>  
> line 159, in _fetch
> app = import_module(appname)
>   File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", 
> line 40, in import_module
> __import__(name)
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d8b0218b-4773-4ffd-8d91-cc3cf6a97fc0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: I can't run django server nor activate the virtualenv

2014-05-01 Thread Lee
Enter the following command from the bin folder:

*source activate*

Thanks

On Monday, 28 April 2014 11:03:40 UTC+1, Fred DJar wrote:
>
>
>
>
> *Hello guys, i'm a newbie so bear with me :)I have installed python 2.7 
> and django 1.6 on my desktop (ubuntu 14)but i can't run the application or 
> activate the virtualenv*
>
> *this is the message i got:*
> ubuntu@ubuntu:~/Downloads/saf$ python manage.py runserver
> Traceback (most recent call last):
>   File "manage.py", line 10, in 
> execute_from_command_line(sys.argv)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
> line 399, in execute_from_command_line
> utility.execute()
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
> line 392, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
> line 242, in run_from_argv
> self.execute(*args, **options.__dict__)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
> line 280, in execute
> translation.activate('en-us')
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/__init__.py",
>  
> line 130, in activate
> return _trans.activate(language)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>  
> line 188, in activate
> _active.value = translation(language)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>  
> line 177, in translation
> default_translation = _fetch(settings.LANGUAGE_CODE)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>  
> line 159, in _fetch
> app = import_module(appname)
>   File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", 
> line 40, in import_module
> __import__(name)
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ff2e079f-725b-465f-85c2-eb5f34c3e733%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: I can't run django server nor activate the virtualenv

2014-05-01 Thread Fred DJar


Thank you for your response 
i've made a screenshot to illustrate clearly what happening

btw i'm not familiar with virtualenv in ubuntu i've only used it on windows 
and in order to activate the virtualenv i just run the activate the command.
maybe this is not the case in ubuntu!! maybe it should be run from the 
bash. if so can you tell me how because i have no idiea




On Monday, 28 April 2014 11:03:40 UTC+1, Fred DJar wrote:
>
>
>
>
> *Hello guys, i'm a newbie so bear with me :)I have installed python 2.7 
> and django 1.6 on my desktop (ubuntu 14)but i can't run the application or 
> activate the virtualenv*
>
> *this is the message i got:*
> ubuntu@ubuntu:~/Downloads/saf$ python manage.py runserver
> Traceback (most recent call last):
>   File "manage.py", line 10, in 
> execute_from_command_line(sys.argv)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
> line 399, in execute_from_command_line
> utility.execute()
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
> line 392, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
> line 242, in run_from_argv
> self.execute(*args, **options.__dict__)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
> line 280, in execute
> translation.activate('en-us')
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/__init__.py",
>  
> line 130, in activate
> return _trans.activate(language)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>  
> line 188, in activate
> _active.value = translation(language)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>  
> line 177, in translation
> default_translation = _fetch(settings.LANGUAGE_CODE)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>  
> line 159, in _fetch
> app = import_module(appname)
>   File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", 
> line 40, in import_module
> __import__(name)
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/aab67a71-769d-4c48-b8d0-5a5f6167670d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: I can't run django server nor activate the virtualenv

2014-05-01 Thread Lee
Please be more specific about your problem as its difficult to help when we 
don't know exactly what you are seeing. Have you managed to activate your 
virtualenv on ubuntu? If not, what specific error are you getting?

I see two problems here so far, regarding the import error, that means you 
are missing a dependency of the project you are trying to run. But that may 
just be that you've not activated your virtualenv - though you need to 
install the dependencies there once you get virtualenv running anyway most 
likely. The 'activate is not recognized as an internal or external command, 
operable program or batch file' error just means the activate script  was 
not found. You have to either be in the location where the activate script 
is, or else you need to specify the path to it, which will be in the bin 
folder of wherever you created the virtualenv. 

BTW, not wanting to confuse matters, but virtualenvwrapper is a useful 
addition on Linux, but its worth understanding virtualenv first.

On Thursday, 1 May 2014 21:25:42 UTC+1, Fred DJar wrote:
>
> Iv'e run it on ubuntu terminal but still not working
>
> On Tuesday, 29 April 2014 14:35:39 UTC+1, Rene Zelaya wrote:
>>
>> Hi Fred,
>>
>> Yes, definitely, I think you should run it on a Ubuntu terminal - I'm not 
>> that familiar with the Windows terminal
>>
>>
>> On Monday, April 28, 2014 10:10:29 AM UTC-4, Fred DJar wrote:
>>>
>>> Thanks Rene
>>> The virtualenv was created in Ubuntu but now i'm running windows, should 
>>> i run it in Ubuntu because i've noticed that virtualenv folder structure 
>>> differentiate from Ubuntu to windows
>>> this is the message i got from the prompt command: activate is not 
>>> recognized as an internal or external command, operable program or batch 
>>> file
>>>
>>> On Monday, 28 April 2014 11:03:40 UTC+1, Fred DJar wrote:




 *Hello guys, i'm a newbie so bear with me :)I have installed python 2.7 
 and django 1.6 on my desktop (ubuntu 14)but i can't run the application or 
 activate the virtualenv*

 *this is the message i got:*
 ubuntu@ubuntu:~/Downloads/saf$ python manage.py runserver
 Traceback (most recent call last):
   File "manage.py", line 10, in 
 execute_from_command_line(sys.argv)
   File 
 "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
  
 line 399, in execute_from_command_line
 utility.execute()
   File 
 "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
  
 line 392, in execute
 self.fetch_command(subcommand).run_from_argv(self.argv)
   File 
 "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
 line 242, in run_from_argv
 self.execute(*args, **options.__dict__)
   File 
 "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
 line 280, in execute
 translation.activate('en-us')
   File 
 "/usr/local/lib/python2.7/dist-packages/django/utils/translation/__init__.py",
  
 line 130, in activate
 return _trans.activate(language)
   File 
 "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
  
 line 188, in activate
 _active.value = translation(language)
   File 
 "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
  
 line 177, in translation
 default_translation = _fetch(settings.LANGUAGE_CODE)
   File 
 "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
  
 line 159, in _fetch
 app = import_module(appname)
   File 
 "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 
 40, in import_module
 __import__(name)



-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/53af6ee5-ff00-41dd-93bd-da00f1c54fcb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: I can't run django server nor activate the virtualenv

2014-05-01 Thread Fred DJar
Iv'e run it on ubuntu terminal but still not working

On Tuesday, 29 April 2014 14:35:39 UTC+1, Rene Zelaya wrote:
>
> Hi Fred,
>
> Yes, definitely, I think you should run it on a Ubuntu terminal - I'm not 
> that familiar with the Windows terminal
>
>
> On Monday, April 28, 2014 10:10:29 AM UTC-4, Fred DJar wrote:
>>
>> Thanks Rene
>> The virtualenv was created in Ubuntu but now i'm running windows, should 
>> i run it in Ubuntu because i've noticed that virtualenv folder structure 
>> differentiate from Ubuntu to windows
>> this is the message i got from the prompt command: activate is not 
>> recognized as an internal or external command, operable program or batch 
>> file
>>
>> On Monday, 28 April 2014 11:03:40 UTC+1, Fred DJar wrote:
>>>
>>>
>>>
>>>
>>> *Hello guys, i'm a newbie so bear with me :)I have installed python 2.7 
>>> and django 1.6 on my desktop (ubuntu 14)but i can't run the application or 
>>> activate the virtualenv*
>>>
>>> *this is the message i got:*
>>> ubuntu@ubuntu:~/Downloads/saf$ python manage.py runserver
>>> Traceback (most recent call last):
>>>   File "manage.py", line 10, in 
>>> execute_from_command_line(sys.argv)
>>>   File 
>>> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
>>>  
>>> line 399, in execute_from_command_line
>>> utility.execute()
>>>   File 
>>> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
>>>  
>>> line 392, in execute
>>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>>   File 
>>> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
>>> line 242, in run_from_argv
>>> self.execute(*args, **options.__dict__)
>>>   File 
>>> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
>>> line 280, in execute
>>> translation.activate('en-us')
>>>   File 
>>> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/__init__.py",
>>>  
>>> line 130, in activate
>>> return _trans.activate(language)
>>>   File 
>>> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>>>  
>>> line 188, in activate
>>> _active.value = translation(language)
>>>   File 
>>> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>>>  
>>> line 177, in translation
>>> default_translation = _fetch(settings.LANGUAGE_CODE)
>>>   File 
>>> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>>>  
>>> line 159, in _fetch
>>> app = import_module(appname)
>>>   File 
>>> "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 
>>> 40, in import_module
>>> __import__(name)
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b058a100-b8a9-4823-a862-2567421faf88%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: I can't run django server nor activate the virtualenv

2014-04-29 Thread Rene Zelaya
Hi Fred,

Yes, definitely, I think you should run it on a Ubuntu terminal - I'm not 
that familiar with the Windows terminal


On Monday, April 28, 2014 10:10:29 AM UTC-4, Fred DJar wrote:
>
> Thanks Rene
> The virtualenv was created in Ubuntu but now i'm running windows, should i 
> run it in Ubuntu because i've noticed that virtualenv folder structure 
> differentiate from Ubuntu to windows
> this is the message i got from the prompt command: activate is not 
> recognized as an internal or external command, operable program or batch 
> file
>
> On Monday, 28 April 2014 11:03:40 UTC+1, Fred DJar wrote:
>>
>>
>>
>>
>> *Hello guys, i'm a newbie so bear with me :)I have installed python 2.7 
>> and django 1.6 on my desktop (ubuntu 14)but i can't run the application or 
>> activate the virtualenv*
>>
>> *this is the message i got:*
>> ubuntu@ubuntu:~/Downloads/saf$ python manage.py runserver
>> Traceback (most recent call last):
>>   File "manage.py", line 10, in 
>> execute_from_command_line(sys.argv)
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
>> line 399, in execute_from_command_line
>> utility.execute()
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
>> line 392, in execute
>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
>> line 242, in run_from_argv
>> self.execute(*args, **options.__dict__)
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
>> line 280, in execute
>> translation.activate('en-us')
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/__init__.py",
>>  
>> line 130, in activate
>> return _trans.activate(language)
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>>  
>> line 188, in activate
>> _active.value = translation(language)
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>>  
>> line 177, in translation
>> default_translation = _fetch(settings.LANGUAGE_CODE)
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>>  
>> line 159, in _fetch
>> app = import_module(appname)
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 
>> 40, in import_module
>> __import__(name)
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5e619bec-0dee-4481-989a-27ceb4dff0ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: I can't run django server nor activate the virtualenv

2014-04-28 Thread Fred DJar
Thanks Rene
The virtualenv was created in Ubuntu but now i'm running windows, should i 
run it in Ubuntu because i've noticed that virtualenv folder structure 
differentiate from Ubuntu to windows
this is the message i got from the prompt command: activate is not 
recognized as an internal or external command, operable program or batch 
file

On Monday, 28 April 2014 11:03:40 UTC+1, Fred DJar wrote:
>
>
>
>
> *Hello guys, i'm a newbie so bear with me :)I have installed python 2.7 
> and django 1.6 on my desktop (ubuntu 14)but i can't run the application or 
> activate the virtualenv*
>
> *this is the message i got:*
> ubuntu@ubuntu:~/Downloads/saf$ python manage.py runserver
> Traceback (most recent call last):
>   File "manage.py", line 10, in 
> execute_from_command_line(sys.argv)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
> line 399, in execute_from_command_line
> utility.execute()
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
> line 392, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
> line 242, in run_from_argv
> self.execute(*args, **options.__dict__)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
> line 280, in execute
> translation.activate('en-us')
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/__init__.py",
>  
> line 130, in activate
> return _trans.activate(language)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>  
> line 188, in activate
> _active.value = translation(language)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>  
> line 177, in translation
> default_translation = _fetch(settings.LANGUAGE_CODE)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>  
> line 159, in _fetch
> app = import_module(appname)
>   File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", 
> line 40, in import_module
> __import__(name)
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6e5e3ded-7ad0-4fdc-94dc-e40c9d0e4b5b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: I can't run django server nor activate the virtualenv

2014-04-28 Thread Rene Zelaya
Hi Fred - 

So if you can't activate your virtualenv, and you installed Django in that 
virtualenv, that is likely the root of your problem, because without it, 
none of the modules will appear as installed and you will not be able to 
run the server (or access the python manage.py shell, etc).  I would first 
figure out why you can't activate the virtual environment -- what is the 
error when you try to activate it?

Rene

On Monday, April 28, 2014 6:03:40 AM UTC-4, Fred DJar wrote:
>
>
>
>
> *Hello guys, i'm a newbie so bear with me :)I have installed python 2.7 
> and django 1.6 on my desktop (ubuntu 14)but i can't run the application or 
> activate the virtualenv*
>
> *this is the message i got:*
> ubuntu@ubuntu:~/Downloads/saf$ python manage.py runserver
> Traceback (most recent call last):
>   File "manage.py", line 10, in 
> execute_from_command_line(sys.argv)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
> line 399, in execute_from_command_line
> utility.execute()
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
> line 392, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
> line 242, in run_from_argv
> self.execute(*args, **options.__dict__)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
> line 280, in execute
> translation.activate('en-us')
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/__init__.py",
>  
> line 130, in activate
> return _trans.activate(language)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>  
> line 188, in activate
> _active.value = translation(language)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>  
> line 177, in translation
> default_translation = _fetch(settings.LANGUAGE_CODE)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>  
> line 159, in _fetch
> app = import_module(appname)
>   File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", 
> line 40, in import_module
> __import__(name)
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c48bd8cd-4978-4583-ae76-33583e11e848%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: I can't run django server nor activate the virtualenv

2014-04-28 Thread Fred DJar
There is one other line:
ImportError : No module named bootstrapform

On Monday, 28 April 2014 11:34:35 UTC+1, Victor Hooi wrote:
>
> Hi Fred,
>
> Are there any lines *below* the error message you pasted?
>
> The last line I can see is:
>
> File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", 
>> line 40, in import_module 
>
> __import__(name)
>
>
> Is there anything else?
>
> Cheers,
> Victor
>
> On Monday, 28 April 2014 03:03:40 UTC-7, Fred DJar wrote:
>>
>>
>>
>>
>> *Hello guys, i'm a newbie so bear with me :)I have installed python 2.7 
>> and django 1.6 on my desktop (ubuntu 14)but i can't run the application or 
>> activate the virtualenv*
>>
>> *this is the message i got:*
>> ubuntu@ubuntu:~/Downloads/saf$ python manage.py runserver
>> Traceback (most recent call last):
>>   File "manage.py", line 10, in 
>> execute_from_command_line(sys.argv)
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
>> line 399, in execute_from_command_line
>> utility.execute()
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
>> line 392, in execute
>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
>> line 242, in run_from_argv
>> self.execute(*args, **options.__dict__)
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
>> line 280, in execute
>> translation.activate('en-us')
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/__init__.py",
>>  
>> line 130, in activate
>> return _trans.activate(language)
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>>  
>> line 188, in activate
>> _active.value = translation(language)
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>>  
>> line 177, in translation
>> default_translation = _fetch(settings.LANGUAGE_CODE)
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>>  
>> line 159, in _fetch
>> app = import_module(appname)
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 
>> 40, in import_module
>> __import__(name)
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/26114e5c-8952-4e38-9445-d1fb808152c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: I can't run django server nor activate the virtualenv

2014-04-28 Thread Victor Hooi
Hi Fred,

Are there any lines *below* the error message you pasted?

The last line I can see is:

File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", 
> line 40, in import_module 

__import__(name)


Is there anything else?

Cheers,
Victor

On Monday, 28 April 2014 03:03:40 UTC-7, Fred DJar wrote:
>
>
>
>
> *Hello guys, i'm a newbie so bear with me :)I have installed python 2.7 
> and django 1.6 on my desktop (ubuntu 14)but i can't run the application or 
> activate the virtualenv*
>
> *this is the message i got:*
> ubuntu@ubuntu:~/Downloads/saf$ python manage.py runserver
> Traceback (most recent call last):
>   File "manage.py", line 10, in 
> execute_from_command_line(sys.argv)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
> line 399, in execute_from_command_line
> utility.execute()
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
> line 392, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
> line 242, in run_from_argv
> self.execute(*args, **options.__dict__)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
> line 280, in execute
> translation.activate('en-us')
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/__init__.py",
>  
> line 130, in activate
> return _trans.activate(language)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>  
> line 188, in activate
> _active.value = translation(language)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>  
> line 177, in translation
> default_translation = _fetch(settings.LANGUAGE_CODE)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>  
> line 159, in _fetch
> app = import_module(appname)
>   File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", 
> line 40, in import_module
> __import__(name)
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c972709d-3b18-4ee0-82a7-aca095df2602%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


I can't run django server nor activate the virtualenv

2014-04-28 Thread Fred DJar



*Hello guys, i'm a newbie so bear with me :)I have installed python 2.7 and 
django 1.6 on my desktop (ubuntu 14)but i can't run the application or 
activate the virtualenv*

*this is the message i got:*
ubuntu@ubuntu:~/Downloads/saf$ python manage.py runserver
Traceback (most recent call last):
  File "manage.py", line 10, in 
execute_from_command_line(sys.argv)
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
line 399, in execute_from_command_line
utility.execute()
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
line 242, in run_from_argv
self.execute(*args, **options.__dict__)
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
line 280, in execute
translation.activate('en-us')
  File 
"/usr/local/lib/python2.7/dist-packages/django/utils/translation/__init__.py", 
line 130, in activate
return _trans.activate(language)
  File 
"/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
 
line 188, in activate
_active.value = translation(language)
  File 
"/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
 
line 177, in translation
default_translation = _fetch(settings.LANGUAGE_CODE)
  File 
"/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
 
line 159, in _fetch
app = import_module(appname)
  File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", 
line 40, in import_module
__import__(name)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/803f2d00-66bc-4a27-8389-6014730222d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.