Re: Using Django other-than as web framework.

2009-07-03 Thread maplye
def execute_from_command_line(): from django.core.management import setup_environ sys.path.append(projectpath) try: import settings except ImportError: print "You don't appear to have a settings file in this directory!" print "Please run this from inside a

Re: Using Django other-than as web framework.

2009-07-02 Thread Harsha Reddy
Give Mysql prompt: python manage.py dbshell Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 8255 to server version: 5.0.22 Type

Re: Using Django other-than as web framework.

2009-07-02 Thread Harsha Reddy
after setting the var: export DJANGO_SETTINGS_MODULE=pyMyApp.settings it works!! Thanks a lot! On Jul 2, 1:25 pm, Daniel Roseman wrote: > On Jul 2, 8:25 am, Harsha Reddy wrote: > > > > > I using Django from past one week. > > > On the Django web site, I read that it is a high-level python web

Re: Using Django other-than as web framework.

2009-07-02 Thread geert
Without quite knowing the details of your particular project, I can assert that a django app will happily double as a cli app. In fact, I do this almost all the time. The only thing you are now missing is the proper way to import the settings. Try something like this from django.core.management

Re: Using Django other-than as web framework.

2009-07-02 Thread Emily Rodgers
On Jul 2, 8:25 am, Harsha Reddy wrote: > I using Django from past one week. > > On the Django web site, I read that it is a high-level python web > framework. Inspite of knowing this I am trying to use a Django > application both as a web application as well as a CLI client. > > To know if this w

Re: Using Django other-than as web framework.

2009-07-02 Thread Daniel Roseman
On Jul 2, 8:25 am, Harsha Reddy wrote: > I using Django from past one week. > > On the Django web site, I read that it is a high-level python web > framework. Inspite of knowing this I am trying to use a Django > application both as a web application as well as a CLI client. > > To know if this w

Re: Using Django other-than as web framework.

2009-07-02 Thread jon michaels
What do you get when you type 'python manage.py dbshell'? On Thu, Jul 2, 2009 at 10:25 AM, Harsha Reddy wrote: > > I using Django from past one week. > > On the Django web site, I read that it is a high-level python web > framework. Inspite of knowing this I am trying to use a Django > applicati

Using Django other-than as web framework.

2009-07-02 Thread Harsha Reddy
I using Django from past one week. On the Django web site, I read that it is a high-level python web framework. Inspite of knowing this I am trying to use a Django application both as a web application as well as a CLI client. To know if this works out, I created a Django project named "pyMyApp"