--
You received this message because you are subscribed to the Google Groups "rapidsms" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rapidsms/-/FSOtqwt78ioJ.
To post to this group, send email to rapi...@googlegroups.com.
To unsubscribe from this group, send email to rapidsms+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rapidsms?hl=en.
Hi,
It is likely a bug in rapidsms that app.py is not created when you run rapidsms-admin.py startapp. But this something you can manually create. Same applies to admin.py.
Thank you,
Trevor
ImportError: Settings cannot be imported, because environment variable
DJANGO_SETTINGS_MODULE is undefined.
If I do the "import django" everything looks fine
On Thu, Feb 9, 2012 at 4:55 PM, Victor Miclovich <vicmic...@gmail.com> wrote:
> http://stackoverflow.com/questions/1641444/why-am-i-getting-this-error-in-django
On Thu, Feb 9, 2012 at 5:08 PM, Victor Miclovich <vicmic...@gmail.com> wrote:
> Has your situation been resolved yet?
>
Has your situation been resolved yet?
--
--
Thats exactly what am trying to do,and this is the sample from settings.py
INSTALLED_APPS = [
# the essentials.
"django_nose",
"djtables",
"rapidsms",
"Mileage",
BELOW IS THE ERROR.....
sosewe@sosewe-OptiPlex-760:~/RapidDevelopment/Mileage$ rapidsms-admin.py syncdb
Traceback (most recent call last):
File "/usr/local/bin/rapidsms-admin.py", line 26, in <module>
management.execute_from_command_line()
File "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py",
line 429, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py",
line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py",
line 261, in fetch_command
klass = load_command_class(app_name, subcommand)
File "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py",
line 67, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "/usr/local/lib/python2.6/dist-packages/django/utils/importlib.py",
line 35, in import_module
__import__(name)
File "/usr/local/lib/python2.6/dist-packages/django/core/management/commands/syncdb.py",
line 7, in <module>
from django.core.management.sql import custom_sql_for_model,
emit_post_sync_signal
File "/usr/local/lib/python2.6/dist-packages/django/core/management/sql.py",
line 6, in <module>
from django.db import models
File "/usr/local/lib/python2.6/dist-packages/django/db/__init__.py",
line 14, in <module>
if not settings.DATABASES:
File "/usr/local/lib/python2.6/dist-packages/django/utils/functional.py",
line 276, in __getattr__
self._setup()
File "/usr/local/lib/python2.6/dist-packages/django/conf/__init__.py",
line 40, in _setup
raise ImportError("Settings cannot be imported, because
environment variable %s is undefined." % ENVIRONMENT_VARIABLE)
ImportError: Settings cannot be imported, because environment variable
DJANGO_SETTINGS_MODULE is undefined.
export DJANGO_SETTINGS_MODULE=mysite.settings
rapidsms-admin.py sycndb
have a look at this feedback.
sosewe@sosewe-OptiPlex-760:~/RapidDevelopment/Mileage$ python manage.py syncdb
python: can't open file 'manage.py': [Errno 2] No such file or directory
the content of my mileage folder is;
__init__.py
models.py
tests.py
views.py
so its true the mange.py file is indeed missing in there.
Thanks alot plus all the members.
welcome... you have friends in this group :-)