Deploying Django to production environment
Hi All, I just joined linode and followed there instructions in setting up Django at http://library.linode.com/lamp-guides/ubuntu-9.10-karmic/. ServerAdmin squ...@bucknell.net ServerName bucknell.net ServerAlias www.bucknell.net DocumentRoot /srv/www/bucknell.net/public_html/ ErrorLog /srv/www/bucknell.net/logs/error.log CustomLog /srv/www/bucknell.net/logs/access.log combined My question is where do I place my django application files? How can I setup something like my development machine where I have a repository on assembla.com where I can check in and out easily to deploy? Thank you, John --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Django-Registration and Email Permission
Some on Linode IRC suggests that I install ssmtp package...I followed the instruction found here http://tombuntu.com/index.php/2008/10/21/sending-email-from-your-system-with-ssmtp/ and reboot the servers...everything works great now. On Nov 5, 12:19 pm, mm wrote: > Hello, > > I am using Django-Registration for my website on a linode ubuntu > virtual. I get connection problem sending activation email when users > sign up. > > Here is my settings: > > EMAIL_HOST = 'smtp.gmail.com' > EMAIL_PORT = 587 > EMAIL_HOST_USER = 'myusern...@gmail.com' > EMAIL_HOST_PASSWORD = 'mypassword' > EMAIL_USE_TLS = True > > I've tested locally and it works. I tested interactively via python > manage.py shell on the host and it works when I logged in as root. I > think there is a problem with permission since Apache is running under > www-data. Do you have any ideas how to fix this? > > Thank you, > MM --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
How write unit test for forms that download PDF file
On my website http://www.mathmaster.org, I have a lot of forms that generated a PDF math worksheets file after the user click the submit button. The way I test these pages is using the code similar to this method: def test_addition_post(self): post_data = { 'max_value': 10, 'min_value': 1, ..., } response = self.client.post('/addition/', post_data) self.failUnlessEqual(response.status_code, 200) self.failUnless('Data received', response.content) I don't think the code is working correctly because all my tests passed and I still get a simple reference error. -- 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=.