Re: django cms outside of django
chiggsy wrote: >> By "outside of Django" I'm guessing you mean "outside of a web environment" >> > > Yes, that is what i meant. > > >> Yes, you can use Django components separately. At work we use Django's >> ORM for management scripts such as print accounting. >> >> I've set up a standalone Django template-- no views, models, or urls. It >> was more like a traditionaly CGI script. >> > > > That sounds promising. I really wanted to use the ./manage.py > inspectdb tool in particular to turn this foreign db into python for > me. Is it at all possible to share your template? > Actually, I wrote up a little howto when I did the standalone Django template. http://www.programmerq.net/django_standalone_templates.html As for using the ORM in a standalone mode, there are plenty of examples and the like out there. Its pretty straightforward to do-- you just need to set your DJANGO_SETTINGS_MODULE to point to your settings, and write models/use inspectdb. The same type of thing is achieved when someone wants a cronjob to do something with their Django models. There are plenty of howtos for that as well. Jeff Anderson signature.asc Description: OpenPGP digital signature
Re: django cms outside of django
> By "outside of Django" I'm guessing you mean "outside of a web environment" Yes, that is what i meant. > > Yes, you can use Django components separately. At work we use Django's > ORM for management scripts such as print accounting. > > I've set up a standalone Django template-- no views, models, or urls. It > was more like a traditionaly CGI script. That sounds promising. I really wanted to use the ./manage.py inspectdb tool in particular to turn this foreign db into python for me. Is it at all possible to share your template? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: django cms outside of django
chiggsy wrote: > What steps are needed to use the django cms outside of django. I have > a database , that i want to manipulate. it's just a db. I dont want > to learn SQLAlchemy for this , today. I just want to goof around with > it, run some queries, etc. is this possible? > By "outside of Django" I'm guessing you mean "outside of a web environment" Yes, you can use Django components separately. At work we use Django's ORM for management scripts such as print accounting. I've set up a standalone Django template-- no views, models, or urls. It was more like a traditionaly CGI script. You just need to import the appropriate Django libs in your Python script, and you are good to go. Jeff Anderson signature.asc Description: OpenPGP digital signature
django cms outside of django
What steps are needed to use the django cms outside of django. I have a database , that i want to manipulate. it's just a db. I dont want to learn SQLAlchemy for this , today. I just want to goof around with it, run some queries, etc. is this possible? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---