External IPB authentication via Django
I am trying to implement external authentication in Invision Power Board Forum. They have converge which as I understand could do such things but I don't understand it yet. Maybe somebody could share his experience of using IPB/converge with Django? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Reinitializing of db connection
Hi, all. I use django ORM in multiprocessed parser. I use processing module: http://pyprocessing.berlios.de/doc/ Each process is a fork of main process and I need to work with DB in each process. It is not recommended to use one db connection from all forked processes, so I want to reinitialize connection to DB after forking. Could you help me and show the code that will reconnection to DB? May be (in each forked process): from django.conf import settings from django.db import connection connection.connection = None connection._cursor(settings) But I am not sure. Does this code do that I want? Does it affect on connection of parent process? Does it affect on anything? ) What do you think? Thanks. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Reinitializing of db connection
Hi, all. I use django ORM in multiprocessed parser. I use processing module: http://pyprocessing.berlios.de/doc/ Each process is a fork of main process and I need to work with DB in each process. It is not recommended to use one db connection from all forked processes, so I want to reinitialize connection to DB after forking. Could you help me and show the code that will reconnection to DB? May be (in each forked process): from django.conf import settings from django.db import connection connection.connection = None connection._cursor(settings) But I am not sure. Does this code do that I want? Does it affect on connection of parent process? Does it affect on anything? ) What do you think? Thanks. --~--~-~--~~~---~--~~ 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: Is it really this hard?
John M wrote: > I have checked the forum, and still can't believe I can't find a > solution to what I perceive as a simple problem: > > I have two models: > > Customer >Name >phone > > Order >Customer (foreign key to Customer) >date >product > > When I put up the form for order, I don't want the Customer (foreign > key) to appear. I've not seen anything on the forum that shows you > can easily eliminate a field from the form? > > Unless I'm missing how to create a custom form, bind it to the DB's > data and use it like I can form_for_instance() and form_for_model(). > > using FFI with a customer form, it doesn't seem to bind any data to > the fields, unless I'm missing something big, cause that would be > perfect, no? > > Hoping someone can help > > > > > Check this thread: http://softwaremaniacs.org/forum/viewtopic.php?id=596 Here is the solution for exactly the same problem as you have described. Thread in russian but there is a lot of code ) --~--~-~--~~~---~--~~ 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: Using Django Models outside of Django
johnny wrote: > Doing the following: > > from os import environ > environ['DJANGO_SETTINGS_MODULE'] = 'settings' > from settings import * > > Only works at the parent folder level. What if you have script in sub > folder level? I tried it at sub folder level and got error: > > from os import environ > environ['DJANGO_SETTINGS_MODULE'] = '../settings' > from settings import * from apps.mail.models import Email > Traceback (most recent call last): > File "", line 1, in ? > ImportError: No module named apps.mail.models > > > > > import os # "keeno.ru" directory contains my project directory "web_site" sys.path.append('/web/keeno.ru') os.environ["DJANGO_SETTINGS_MODULE"] = 'web_site.settings' --~--~-~--~~~---~--~~ 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: South - when to start?
I have found nice way to do quick development on 1st and 2nd steps you have mentioned. I've put following instructions in reset.sh: * Drop database * Create new database * Run ./manage.py syncdb * Generate sample data When I change some model then I just run reset.sh. That works even for several developers. If you pull someone changes then you run reset.sh and get actual database state. It really saves time because you do not need to spend your time writing migrations for schema and data. Of course, this method is not good if generating sample data takes a lot of time. In such case migrating could be better solution. On 18 фев, 16:24, Piotr Zalewa wrote: > Where is the best moment to start with south? > > 1. The very beginning, as the first app added to the project? > 2. At the moment when more devs will be involved? > 3. When real data will start to show? > > I'm building a new system, I think the current model progress is about > 20%, where 100% is the moment I will put the site on the server. I'm > very close to point 2. > > zalun > -- > blog http://piotr.zalewa.info > jobs http://webdev.zalewa.info > twit http://twitter.com/zalun > face http://facebook.com/zaloon -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.