using django-admin as a replacement for
by Brian Bouterse
I am trying to do something like 'python manage.py dbshell' but can't seem
to do it with an Opus managed project. How do I do this?
I already read the 'django-admin help' yet it does not give any clues.
I tried several variants of the following: 'django-admin.py
--settings=settings'
yet all I get is: Unknown command: '--settings'
Does anyone know how to do this?
Brian
--
Brian Bouterse
ITng Services
13 years, 6 months
Sandbox Errors
by Eric D Helms
Does the app-name field require lower-case letters only? The repository
name is AloqaFeedGenerator which is what the system automatically grabs but
when that is submitted a validation error is raised.
Also, when deploying the AloqaFeedGenerator on the sandbox manually (using
all lower case app-name) I received the following:
Request Method:POSTRequest URL:
https://sandbox.opus.ncsu.edu/deployments/testingalohqa/Django
Version:1.2.1Exception
Type:DeploymentExceptionException Value:
syncdb failed. Code 1. Traceback (most recent call last):
File "/usr/bin/django-admin.py", line 5, in <module>
management.execute_from_command_line()
File "/usr/lib/python2.6/site-packages/django/core/management/__init__.py",
line 429, in execute_from_command_line
utility.execute()
File "/usr/lib/python2.6/site-packages/django/core/management/__init__.py",
line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python2.6/site-packages/django/core/management/base.py",
line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/lib/python2.6/site-packages/django/core/management/base.py",
line 217, in execute
self.validate()
File "/usr/lib/python2.6/site-packages/django/core/management/base.py",
line 245, in validate
num_errors = get_validation_errors(s, app)
File "/usr/lib/python2.6/site-packages/django/core/management/validation.py",
line 28, in get_validation_errors
for (app_name, error) in get_app_errors().items():
File "/usr/lib/python2.6/site-packages/django/db/models/loading.py",
line 146, in get_app_errors
self._populate()
File "/usr/lib/python2.6/site-packages/django/db/models/loading.py",
line 61, in _populate
self.load_app(app_name, True)
File "/usr/lib/python2.6/site-packages/django/db/models/loading.py",
line 78, in load_app
models = import_module('.models', app_name)
File "/usr/lib/python2.6/site-packages/django/utils/importlib.py",
line 35, in import_module
__import__(name)
File "/var/lib/opus/base/testingalohqa/aloqafeedgenerator/models.py",
line 3, in <module>
class Placemark(models.Model):
File "/var/lib/opus/base/testingalohqa/aloqafeedgenerator/models.py",
line 8, in Placemark
url = URLField(blank=True, verify_exists=True)
NameError: name 'URLField' is not defined
Exception Location:/home/bmbouter/src/opus/opus/lib/deployer/__init__.py in
_sync_database, line 177Python Executable:/usr/bin/pythonPython Version:
2.6.0Python Path:['/home/bmbouter/src/opus', '/usr/lib/python26.zip',
'/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2',
'/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old',
'/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/site-packages',
'/usr/lib/python2.6/site-packages/Numeric',
'/usr/lib/python2.6/site-packages/gtk-2.0']Server time:Thu, 30 Sep 2010
16:36:09 -0500
13 years, 7 months