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
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
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
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
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
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
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
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"
8 matches
Mail list logo