Where I work, we mix django into PHP sites often since most of our customers already have PHP web sites, but want to pay us to extend them with new functionality. I do this by setting up a django project on another apache/uwsgi/nginx virtual host which routes specific parts of the application to Django and away from PHP. You can do all of this with a single domain, and on a single machine. This way the requests never even are sent to the PHP app for certain sections of the URL space. Thus you can replace sections of a PHP app with Django functionality. You will need to recreate the look and feel on the django side though. Sometimes that can be a pain to get perfect and it leads to a look-and-feel consistency maintainence problem over time. One way to avoid that pain is to have the PHP site include blocks of functionality from the django application through something like an iframe. This minimizes the look and feel consistence since most every page is loaded from PHP.
Brian On Wed, Jul 27, 2011 at 9:34 AM, brian <brian.down...@yakkadesign.com>wrote: > I'm learning Django and was hoping to get some advice on an > application I want to try. > > I'm trying to create a Django form that is included in a php based > website. > > I'm working on a php based website that has a 'contact us' form that > was created with http://wufoo.com/. In the php website there is a > little code to include the wufoo form. The form is created in wufoo > and they manage the e-mails and storing the data. > > I want to replace the wufoo form with my Django form. My plan was to > host the Django form on a new domain. My reason behind wanting to use > Django is so that when the contact is submitted I can store the info > in a database, send an e-mail, and write the data to another program. > I don't care about wufoo's automatic form building; My plan is to hand > write the form code. > > I bought the book 'The Definitive Guide to Django: Web Development > Done Right' and I've read about half of it. It seems creating the > form is really easy but I'm not sure the best way to include that form > in the php website. > > Do you have any suggestions about creating a Django form that will be > included in a php website? In the php website, I'd prefer not to use > javascript. > > Brian > > -- > 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. > > -- Brian Bouterse ITng Services -- 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.