Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Python PyDev Virtualenvwrapper
Python PyDev Virtualenvwrapper [message #1726929] Thu, 17 March 2016 14:23 Go to next message
Piotr Now is currently offline Piotr NowFriend
Messages: 2
Registered: March 2016
Junior Member
Hi,
When i run debug i have some error. I think that is a problem my Virtualenv.
I changed a postactivate file in my virtualenv.
(tb_dev) piotrek-VirtualBox taskbuster_project # cd $VIRTUAL_ENV/bin

(tb_dev) piotrek-VirtualBox bin # vim postactivate

export SECRET_KEY="your_secret_django_key"

what should i to do ?
Traceback (most recent call last):
  File "/var/www/taskbuster_project/manage.py", line 11, in <module>
    execute_from_command_line(sys.argv)
  File "/home/piotrek/.virtualenvs/tb_dev/lib/python3.4/site-packages/django/core/management/__init__.py", line 353, in execute_from_command_line
    utility.execute()
  File "/home/piotrek/.virtualenvs/tb_dev/lib/python3.4/site-packages/django/core/management/__init__.py", line 345, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/piotrek/.virtualenvs/tb_dev/lib/python3.4/site-packages/django/core/management/__init__.py", line 195, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File "/home/piotrek/.virtualenvs/tb_dev/lib/python3.4/site-packages/django/core/management/__init__.py", line 39, in load_command_class
    module = import_module('%s.management.commands.%s' % (app_name, name))
  File "/home/piotrek/.virtualenvs/tb_dev/lib/python3.4/importlib/__init__.py", line 109, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
  File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
  File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1129, in _exec
  File "<frozen importlib._bootstrap>", line 1471, in exec_module
  File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
  File "/home/piotrek/.virtualenvs/tb_dev/lib/python3.4/site-packages/django/core/management/commands/runserver.py", line 16, in <module>
    from django.db.migrations.executor import MigrationExecutor
  File "/home/piotrek/.virtualenvs/tb_dev/lib/python3.4/site-packages/django/db/migrations/executor.py", line 7, in <module>
    from .loader import MigrationLoader
  File "/home/piotrek/.virtualenvs/tb_dev/lib/python3.4/site-packages/django/db/migrations/loader.py", line 10, in <module>
    from django.db.migrations.recorder import MigrationRecorder
  File "/home/piotrek/.virtualenvs/tb_dev/lib/python3.4/site-packages/django/db/migrations/recorder.py", line 12, in <module>
    class MigrationRecorder(object):
  File "/home/piotrek/.virtualenvs/tb_dev/lib/python3.4/site-packages/django/db/migrations/recorder.py", line 26, in MigrationRecorder
    class Migration(models.Model):
  File "/home/piotrek/.virtualenvs/tb_dev/lib/python3.4/site-packages/django/db/migrations/recorder.py", line 27, in Migration
    app = models.CharField(max_length=255)
  File "/home/piotrek/.virtualenvs/tb_dev/lib/python3.4/site-packages/django/db/models/fields/__init__.py", line 1072, in __init__
    super(CharField, self).__init__(*args, **kwargs)
  File "/home/piotrek/.virtualenvs/tb_dev/lib/python3.4/site-packages/django/db/models/fields/__init__.py", line 166, in __init__
    self.db_tablespace = db_tablespace or settings.DEFAULT_INDEX_TABLESPACE
  File "/home/piotrek/.virtualenvs/tb_dev/lib/python3.4/site-packages/django/conf/__init__.py", line 55, in __getattr__
    self._setup(name)
  File "/home/piotrek/.virtualenvs/tb_dev/lib/python3.4/site-packages/django/conf/__init__.py", line 43, in _setup
    self._wrapped = Settings(settings_module)
  File "/home/piotrek/.virtualenvs/tb_dev/lib/python3.4/site-packages/django/conf/__init__.py", line 120, in __init__
    raise ImproperlyConfigured("The SECRET_KEY setting must not be empty.")
django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty.
Re: Python PyDev Virtualenvwrapper [message #1726941 is a reply to message #1726929] Thu, 17 March 2016 15:32 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

Piotr,

You're almost certain not to get help here. Eclipse is a framework atop
which many third-party tools are developed, but these are supported not
by Eclipse, but by their respective authors.
Re: Python PyDev Virtualenvwrapper [message #1726958 is a reply to message #1726941] Thu, 17 March 2016 17:31 Go to previous message
Piotr Now is currently offline Piotr NowFriend
Messages: 2
Registered: March 2016
Junior Member
What is a problem? How to on start "run debug" and before it call command "workon name_env" to select virtual environments?

[Updated on: Thu, 17 March 2016 17:31]

Report message to a moderator

Previous Topic:Import of Maven project - imports cannot be resolved.
Next Topic:Eclipse error after installing any new plugins
Goto Forum:
  


Current Time: Thu Apr 25 09:33:53 GMT 2024

Powered by FUDForum. Page generated in 0.08168 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top