Re: Django 1.3
I was wondering if South would be added as part of the standard Django release? Best. On Aug 2, 1:10 pm, Russell Keith-Magee wrote: > On Sun, Aug 1, 2010 at 10:35 PM, mayikmaster wrote: > > hello and thank you for this great project which I have learned so > > much. I would like to know what will happen with djanggo 1.3 Where > > we've heard.many thanks > > Formal plans for Django 1.3 have not yet been announced. > > However, as a rough indication, I would expect to see a 1.3 release at > very end of this year (perhaps early next year if schedules run over). > There won't be a lot of major new features delivered in Django 1.3; > the focus will be on fixing bugs and adding minor features that were > missed during the 1.2 development cycle. > > Yours > Russ Magee %-) -- 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.
Re: Pre-Registration User versus Registerred User?
U can try using sessions. Django supports anonymous sessions. See here: http://docs.djangoproject.com/en/dev/topics/http/sessions/ and here: http://www.djangobook.com/en/2.0/chapter14/ Best. On Jul 8, 12:38 am, iJames wrote: > I think my brains have been un-djangoed because I think I'm missing > something obvious. > > I've got the user model linked in with my own model serving as the > profile which is working for registerring and authenticating a user. > > But I'm wondering how to have a guest be able to do some things with > the intention of registerring later on? > > For instance, I want a user to be able to input some data and upload a > file and then after that set themselves up with a login and/or openid > or something like that. > > There are three aspects I'm troubled with which I think should be > obvious but I'm missing them: > > 1) If I setup these views/templates to be accessible to a non- > authenticated user, how will any data they create be associated with > the authenticated user later? And if they don't register, how can I > find and purge the data after some time? > > 2) Can I not delete the session cookie so that the non-authenticated > user can return in the same browser and still see their data? > > 3) What is the best practice for managing views/templates for the > triple world Guest versus Registerred User versus Admin? In > particular, how do I manage the different contexts that can ripple > through a the base template and the included templates? > > Thanks! I've got another burning question, but this one's first! > > James -- 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.
Re: Most effective and stable Django set up on a production server?
hi, may i know how ( or where ) do i get the traceback from the error logs? ( i'm kind of a server noob ) On Oct 19, 12:47 pm, Graham Dumpleton wrote: > On Oct 19, 2:23 pm, DjangoRocks wrote: > > > Hi all, > > as per the subject: what is the most effective and stable Django set > > up options on a production server? > > > I am currently on a mod_python, linux, apache set up. > > > And sometimes, it seems that the server is unstable. > > For example, whenever i try to submit a form ( uploading images ), > > there are times where it says that there is an error ( template not > > found ), and times where the upload was successful. ( the code running > > on my local computer runs perfectly) > > > Is that due to unstable server? > > Probably not. More than likely you have some order dependency in way > things are loaded into memory by your Django application. > > You should post the exact traceback from the error logs so that people > can at least attempt to resolve what is likely your real problem > rather than just assume that changing hosting mechanisms will help. > > > What do u guys recommend for a most effective and stable Django set up > > options on a production server? > > Django documentation no longer recommends mod_python. Have you looked > at the Django documentation recently to see what it does say? > > http://docs.djangoproject.com/en/dev/howto/deployment/#howto-deployme... > > Graham --~--~-~--~~~---~--~~ 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: watermark using django-watermark
Hi al, I understand that there is a google code fourm for django-watermark, but i am really trying to get some help here with regards to using django-watermarks Here's what happened: 1. My installation of django-watermark is successful and the issues occurred after i typed in the watermark filter in my html code. 2. My code is: I have also tried this(this version is no opening and close commas in the outside the {{ and }} ): 3. After when i refreshed my page to see the result, i received the following error: "Caught an exception while rendering: global name '_percent' is not defined" the full error message is as follows: *** TemplateSyntaxError at /image/details/112/ Caught an exception while rendering: global name '_percent' is not defined Request Method: GET Request URL:http://localhost:8000/image/details/112/ Exception Type: TemplateSyntaxError Exception Value: Caught an exception while rendering: global name '_percent' is not defined Exception Location: /usr/local/lib/python2.6/dist-packages/django/template/debug.py in render_node, line 81 Python Executable: /usr/bin/python Python Version: 2.6.2 Python Path:['/home/eugene/public_html/django/ajaxcrud', '/usr/local/lib/python2.6/dist-packages/django_watermark-0.1.5_pre1- py2.6.egg', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/Numeric', '/usr/lib/python2.6/dist-packages/PIL', '/usr/lib/python2.6/dist-packages/gst-0.10', '/var/lib/python-support/python2.6', '/usr/lib/python2.6/dist-packages/gtk-2.0', '/var/lib/python-support/python2.6/gtk-2.0', '/usr/local/lib/python2.6/dist-packages'] Server time:Sat, 24 Oct 2009 03:02:14 -0500 ** I am using Ubuntu 9.04, Django 1.02. May i know how do i fix this error? Cos i find it weird that the _percent thing is not defined... If i do not use the watermark filter, there is no problems at all. Or am i doing something wrong with the html code? Please advise me. Thank you! --~--~-~--~~~---~--~~ 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 production set up woes [Please Help]
ok thanks! i got it up and running. On Oct 19, 2:51 am, Михаил Лукин wrote: > http://docs.djangoproject.com/en/dev/howto/deployment/ > Choose your deployment method and you'll find the answer > > 2009/10/18 DjangoRocks > > > > > > > hi, how do i put the project's path in my server pyhton path ? > > > On Oct 19, 2:36 am, Михаил Лукин wrote: > > > Seems that you didn't put your project's path in your server python path. > > > > 2009/10/18 DjangoRocks > > > > > Hi yes, i restarted apache after uploading my files. > > > > > Just in case, here is the error message i received: > > > > ViewDoesNotExist at /user/eugene/ > > > > > Could not import crud.views. Error was: No module named crud.views > > > > > Request Method: GET > > > > Request URL: http://140.119.19.139/user/eugene/ > > > > Exception Type: ViewDoesNotExist > > > > Exception Value: > > > > > Could not import crud.views. Error was: No module named crud.views > > > > > Exception Location: /home/lab/public_html/django/django/core/ > > > > urlresolvers.py in _get_callback, line 133 > > > > Python Executable: /usr/bin/python > > > > Python Version: 2.6.2 > > > > Python Path: ['/home/lab/public_html/django', '/usr/lib/python2.6', > > '/ > > > > usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/ > > > > python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/ > > > > python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/Numeric', > > > > '/usr/lib/python2.6/dist-packages/PIL', '/usr/lib/python2.6/dist- > > > > packages/gst-0.10', '/var/lib/python-support/python2.6', '/usr/lib/ > > > > python2.6/dist-packages/gtk-2.0', '/var/lib/python-support/python2.6/ > > > > gtk-2.0', '/usr/local/lib/python2.6/dist-packages'] > > > > Server time: Sun, 18 Oct 2009 13:23:32 -0500 > > > > > * > > > > The weird thing is that i have installed the application and uploaded > > > > as it is up to my production server. And its telling me that the > > > > 'crud' views does not exist. > > > > > How do i fix this? > > > > > Best. > > > > > On Oct 19, 2:05 am, Daniel Roseman wrote: > > > > > On Oct 18, 6:54 pm, DjangoRocks wrote: > > > > > > > Hi all, > > > > > > The environment i am using to set up my django project/app on a > > > > > > production server is as follows: > > > > > > Ubuntu 9.04, Django 1.02, Python version 2.6.2. > > > > > > > Mysql, mysqldb, apache2 and php is all set up and good to go. > > > > > > > I have followed the tutorial athttp:// > > > > jeffbaier.com/articles/installing-django-on-an-ubuntu-linux-se... > > > > > > for setting Django and it worked ok. I named the project as the > > same > > > > > > name for my django project on my development computer. > > > > > > > I got the Django error message since i have not done anything yet > > when > > > > > > i visited the ip address. Which means that my installation were ok. > > > > > > > Next i created an app ( on the production server ) as per the name > > i > > > > > > have named on my development computer. > > > > > > After which i uploaded alllmy django projct/app files to the > > > > > > production server using the terminal. > > > > > > > Here's where the nightmare happens: > > > > > > > After i have copied all my django project files to the production > > > > > > server, and tested the application on the production server, only > > the > > > > > > homepage worked. > > > > > > > Whenever i tried to visit other pages to test it out, i received > > the > > > > > > error : Exception Type: ViewDoesNotExist > > > > > > > However, the problem is that i have already started the app in the > > > > > > production server before i upload all my files onto the project > > > > > > itself. > > > > > > > May i know how do i fix this problem? > > > > > > > Best Regards, > > > > > > Eugene > > > > > > Did you restart Apache after uploading your files? > > > > > -- > > > > > DR. > > > > -- > > > regards, > > > Mihail > > -- > regards, > Mihail --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Weird server issues] Most effective and stable Django set up on a production server?
Hi all, as per the subject: what is the most effective and stable Django set up options on a production server? I am currently on a mod_python, linux, apache set up. And sometimes, it seems that the server is unstable. For example, whenever i try to submit a form ( uploading images ), there are times where it says that there is an error ( template not found ), and times where the upload was successful. ( the code running on my local computer runs perfectly) Is that due to unstable server? What do u guys recommend for a most effective and stable Django set up options on a production server? --~--~-~--~~~---~--~~ 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 production set up woes [Please Help]
hi, how do i put the project's path in my server pyhton path ? On Oct 19, 2:36 am, Михаил Лукин wrote: > Seems that you didn't put your project's path in your server python path. > > 2009/10/18 DjangoRocks > > > > > > > Hi yes, i restarted apache after uploading my files. > > > Just in case, here is the error message i received: > > ViewDoesNotExist at /user/eugene/ > > > Could not import crud.views. Error was: No module named crud.views > > > Request Method: GET > > Request URL: http://140.119.19.139/user/eugene/ > > Exception Type: ViewDoesNotExist > > Exception Value: > > > Could not import crud.views. Error was: No module named crud.views > > > Exception Location: /home/lab/public_html/django/django/core/ > > urlresolvers.py in _get_callback, line 133 > > Python Executable: /usr/bin/python > > Python Version: 2.6.2 > > Python Path: ['/home/lab/public_html/django', '/usr/lib/python2.6', '/ > > usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/ > > python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/ > > python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/Numeric', > > '/usr/lib/python2.6/dist-packages/PIL', '/usr/lib/python2.6/dist- > > packages/gst-0.10', '/var/lib/python-support/python2.6', '/usr/lib/ > > python2.6/dist-packages/gtk-2.0', '/var/lib/python-support/python2.6/ > > gtk-2.0', '/usr/local/lib/python2.6/dist-packages'] > > Server time: Sun, 18 Oct 2009 13:23:32 -0500 > > > ********* > > The weird thing is that i have installed the application and uploaded > > as it is up to my production server. And its telling me that the > > 'crud' views does not exist. > > > How do i fix this? > > > Best. > > > On Oct 19, 2:05 am, Daniel Roseman wrote: > > > On Oct 18, 6:54 pm, DjangoRocks wrote: > > > > > Hi all, > > > > The environment i am using to set up my django project/app on a > > > > production server is as follows: > > > > Ubuntu 9.04, Django 1.02, Python version 2.6.2. > > > > > Mysql, mysqldb, apache2 and php is all set up and good to go. > > > > > I have followed the tutorial athttp:// > > jeffbaier.com/articles/installing-django-on-an-ubuntu-linux-se... > > > > for setting Django and it worked ok. I named the project as the same > > > > name for my django project on my development computer. > > > > > I got the Django error message since i have not done anything yet when > > > > i visited the ip address. Which means that my installation were ok. > > > > > Next i created an app ( on the production server ) as per the name i > > > > have named on my development computer. > > > > After which i uploaded alllmy django projct/app files to the > > > > production server using the terminal. > > > > > Here's where the nightmare happens: > > > > > After i have copied all my django project files to the production > > > > server, and tested the application on the production server, only the > > > > homepage worked. > > > > > Whenever i tried to visit other pages to test it out, i received the > > > > error : Exception Type: ViewDoesNotExist > > > > > However, the problem is that i have already started the app in the > > > > production server before i upload all my files onto the project > > > > itself. > > > > > May i know how do i fix this problem? > > > > > Best Regards, > > > > Eugene > > > > Did you restart Apache after uploading your files? > > > -- > > > DR. > > -- > regards, > Mihail --~--~-~--~~~---~--~~ 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 production set up woes [Please Help]
hi, how do i put the project's path in my server pyhton path ? On Oct 19, 2:36 am, Михаил Лукин wrote: > Seems that you didn't put your project's path in your server python path. > > 2009/10/18 DjangoRocks > > > > > > > Hi yes, i restarted apache after uploading my files. > > > Just in case, here is the error message i received: > > ViewDoesNotExist at /user/eugene/ > > > Could not import crud.views. Error was: No module named crud.views > > > Request Method: GET > > Request URL: http://140.119.19.139/user/eugene/ > > Exception Type: ViewDoesNotExist > > Exception Value: > > > Could not import crud.views. Error was: No module named crud.views > > > Exception Location: /home/lab/public_html/django/django/core/ > > urlresolvers.py in _get_callback, line 133 > > Python Executable: /usr/bin/python > > Python Version: 2.6.2 > > Python Path: ['/home/lab/public_html/django', '/usr/lib/python2.6', '/ > > usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/ > > python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/ > > python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/Numeric', > > '/usr/lib/python2.6/dist-packages/PIL', '/usr/lib/python2.6/dist- > > packages/gst-0.10', '/var/lib/python-support/python2.6', '/usr/lib/ > > python2.6/dist-packages/gtk-2.0', '/var/lib/python-support/python2.6/ > > gtk-2.0', '/usr/local/lib/python2.6/dist-packages'] > > Server time: Sun, 18 Oct 2009 13:23:32 -0500 > > > ********* > > The weird thing is that i have installed the application and uploaded > > as it is up to my production server. And its telling me that the > > 'crud' views does not exist. > > > How do i fix this? > > > Best. > > > On Oct 19, 2:05 am, Daniel Roseman wrote: > > > On Oct 18, 6:54 pm, DjangoRocks wrote: > > > > > Hi all, > > > > The environment i am using to set up my django project/app on a > > > > production server is as follows: > > > > Ubuntu 9.04, Django 1.02, Python version 2.6.2. > > > > > Mysql, mysqldb, apache2 and php is all set up and good to go. > > > > > I have followed the tutorial athttp:// > > jeffbaier.com/articles/installing-django-on-an-ubuntu-linux-se... > > > > for setting Django and it worked ok. I named the project as the same > > > > name for my django project on my development computer. > > > > > I got the Django error message since i have not done anything yet when > > > > i visited the ip address. Which means that my installation were ok. > > > > > Next i created an app ( on the production server ) as per the name i > > > > have named on my development computer. > > > > After which i uploaded alllmy django projct/app files to the > > > > production server using the terminal. > > > > > Here's where the nightmare happens: > > > > > After i have copied all my django project files to the production > > > > server, and tested the application on the production server, only the > > > > homepage worked. > > > > > Whenever i tried to visit other pages to test it out, i received the > > > > error : Exception Type: ViewDoesNotExist > > > > > However, the problem is that i have already started the app in the > > > > production server before i upload all my files onto the project > > > > itself. > > > > > May i know how do i fix this problem? > > > > > Best Regards, > > > > Eugene > > > > Did you restart Apache after uploading your files? > > > -- > > > DR. > > -- > regards, > Mihail --~--~-~--~~~---~--~~ 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 production set up woes [Please Help]
I've create another project and app on the production server directly and i received the same problem. ViewDoesNotExist at /hello/ Could not import testapp.views. Error was: No module named testapp.views Request Method: GET Request URL:http://140.119.19.139/hello/ Exception Type: ViewDoesNotExist Exception Value: Could not import testapp.views. Error was: No module named testapp.views Exception Location: /home/lab/public_html/django/django/core/ urlresolvers.py in _get_callback, line 133 Python Executable: /usr/bin/python Python Version: 2.6.2 Python Path:['/home/lab/public_html/django', '/usr/lib/python2.6', '/ usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/ python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/ python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/Numeric', '/usr/lib/python2.6/dist-packages/PIL', '/usr/lib/python2.6/dist- packages/gst-0.10', '/var/lib/python-support/python2.6', '/usr/lib/ python2.6/dist-packages/gtk-2.0', '/var/lib/python-support/python2.6/ gtk-2.0', '/usr/local/lib/python2.6/dist-packages'] Server time:Sun, 18 Oct 2009 13:37:43 -0500 Is it possible that django cannot serve app on production server? How do i fix this problem? On Oct 19, 2:22 am, DjangoRocks wrote: > Hi yes, i restarted apache after uploading my files. > > Just in case, here is the error message i received: > ViewDoesNotExist at /user/eugene/ > > Could not import crud.views. Error was: No module named crud.views > > Request Method: GET > Request URL: http://140.119.19.139/user/eugene/ > Exception Type: ViewDoesNotExist > Exception Value: > > Could not import crud.views. Error was: No module named crud.views > > Exception Location: /home/lab/public_html/django/django/core/ > urlresolvers.py in _get_callback, line 133 > Python Executable: /usr/bin/python > Python Version: 2.6.2 > Python Path: ['/home/lab/public_html/django', '/usr/lib/python2.6', '/ > usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/ > python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/ > python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/Numeric', > '/usr/lib/python2.6/dist-packages/PIL', '/usr/lib/python2.6/dist- > packages/gst-0.10', '/var/lib/python-support/python2.6', '/usr/lib/ > python2.6/dist-packages/gtk-2.0', '/var/lib/python-support/python2.6/ > gtk-2.0', '/usr/local/lib/python2.6/dist-packages'] > Server time: Sun, 18 Oct 2009 13:23:32 -0500 > > * > The weird thing is that i have installed the application and uploaded > as it is up to my production server. And its telling me that the > 'crud' views does not exist. > > How do i fix this? > > Best. > > On Oct 19, 2:05 am, Daniel Roseman wrote: > > > On Oct 18, 6:54 pm, DjangoRocks wrote: > > > > Hi all, > > > The environment i am using to set up my django project/app on a > > > production server is as follows: > > > Ubuntu 9.04, Django 1.02, Python version 2.6.2. > > > > Mysql, mysqldb, apache2 and php is all set up and good to go. > > > > I have followed the tutorial > > > athttp://jeffbaier.com/articles/installing-django-on-an-ubuntu-linux-se... > > > for setting Django and it worked ok. I named the project as the same > > > name for my django project on my development computer. > > > > I got the Django error message since i have not done anything yet when > > > i visited the ip address. Which means that my installation were ok. > > > > Next i created an app ( on the production server ) as per the name i > > > have named on my development computer. > > > After which i uploaded alllmy django projct/app files to the > > > production server using the terminal. > > > > Here's where the nightmare happens: > > > > After i have copied all my django project files to the production > > > server, and tested the application on the production server, only the > > > homepage worked. > > > > Whenever i tried to visit other pages to test it out, i received the > > > error : Exception Type: ViewDoesNotExist > > > > However, the problem is that i have already started the app in the > > > production server before i upload all my files onto the project > > > itself. > > > > May i know how do i fix this problem? > > > > Best Regards, > > > Eugene > > > Did you restart Apache after uploading your files? > > -- > > DR. --~--~-~--~~~---~--~~ 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 production set up woes [Please Help]
Hi yes, i restarted apache after uploading my files. Just in case, here is the error message i received: ViewDoesNotExist at /user/eugene/ Could not import crud.views. Error was: No module named crud.views Request Method: GET Request URL:http://140.119.19.139/user/eugene/ Exception Type: ViewDoesNotExist Exception Value: Could not import crud.views. Error was: No module named crud.views Exception Location: /home/lab/public_html/django/django/core/ urlresolvers.py in _get_callback, line 133 Python Executable: /usr/bin/python Python Version: 2.6.2 Python Path:['/home/lab/public_html/django', '/usr/lib/python2.6', '/ usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/ python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/ python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/Numeric', '/usr/lib/python2.6/dist-packages/PIL', '/usr/lib/python2.6/dist- packages/gst-0.10', '/var/lib/python-support/python2.6', '/usr/lib/ python2.6/dist-packages/gtk-2.0', '/var/lib/python-support/python2.6/ gtk-2.0', '/usr/local/lib/python2.6/dist-packages'] Server time:Sun, 18 Oct 2009 13:23:32 -0500 * The weird thing is that i have installed the application and uploaded as it is up to my production server. And its telling me that the 'crud' views does not exist. How do i fix this? Best. On Oct 19, 2:05 am, Daniel Roseman wrote: > On Oct 18, 6:54 pm, DjangoRocks wrote: > > > > > Hi all, > > The environment i am using to set up my django project/app on a > > production server is as follows: > > Ubuntu 9.04, Django 1.02, Python version 2.6.2. > > > Mysql, mysqldb, apache2 and php is all set up and good to go. > > > I have followed the tutorial > > athttp://jeffbaier.com/articles/installing-django-on-an-ubuntu-linux-se... > > for setting Django and it worked ok. I named the project as the same > > name for my django project on my development computer. > > > I got the Django error message since i have not done anything yet when > > i visited the ip address. Which means that my installation were ok. > > > Next i created an app ( on the production server ) as per the name i > > have named on my development computer. > > After which i uploaded alllmy django projct/app files to the > > production server using the terminal. > > > Here's where the nightmare happens: > > > After i have copied all my django project files to the production > > server, and tested the application on the production server, only the > > homepage worked. > > > Whenever i tried to visit other pages to test it out, i received the > > error : Exception Type: ViewDoesNotExist > > > However, the problem is that i have already started the app in the > > production server before i upload all my files onto the project > > itself. > > > May i know how do i fix this problem? > > > Best Regards, > > Eugene > > Did you restart Apache after uploading your files? > -- > DR. --~--~-~--~~~---~--~~ 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 production set up woes [Please Help]
My application was working alright on my development computer by the way. Best. On Oct 19, 1:54 am, DjangoRocks wrote: > Hi all, > The environment i am using to set up my django project/app on a > production server is as follows: > Ubuntu 9.04, Django 1.02, Python version 2.6.2. > > Mysql, mysqldb, apache2 and php is all set up and good to go. > > I have followed the tutorial > athttp://jeffbaier.com/articles/installing-django-on-an-ubuntu-linux-se... > for setting Django and it worked ok. I named the project as the same > name for my django project on my development computer. > > I got the Django error message since i have not done anything yet when > i visited the ip address. Which means that my installation were ok. > > Next i created an app ( on the production server ) as per the name i > have named on my development computer. > After which i uploaded alllmy django projct/app files to the > production server using the terminal. > > Here's where the nightmare happens: > > After i have copied all my django project files to the production > server, and tested the application on the production server, only the > homepage worked. > > Whenever i tried to visit other pages to test it out, i received the > error : Exception Type: ViewDoesNotExist > > However, the problem is that i have already started the app in the > production server before i upload all my files onto the project > itself. > > May i know how do i fix this problem? > > Best Regards, > Eugene --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Django production set up woes [Please Help]
Hi all, The environment i am using to set up my django project/app on a production server is as follows: Ubuntu 9.04, Django 1.02, Python version 2.6.2. Mysql, mysqldb, apache2 and php is all set up and good to go. I have followed the tutorial at http://jeffbaier.com/articles/installing-django-on-an-ubuntu-linux-server/ for setting Django and it worked ok. I named the project as the same name for my django project on my development computer. I got the Django error message since i have not done anything yet when i visited the ip address. Which means that my installation were ok. Next i created an app ( on the production server ) as per the name i have named on my development computer. After which i uploaded alllmy django projct/app files to the production server using the terminal. Here's where the nightmare happens: After i have copied all my django project files to the production server, and tested the application on the production server, only the homepage worked. Whenever i tried to visit other pages to test it out, i received the error : Exception Type: ViewDoesNotExist However, the problem is that i have already started the app in the production server before i upload all my files onto the project itself. May i know how do i fix this problem? Best Regards, Eugene --~--~-~--~~~---~--~~ 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: Zip multiple files into a zipped folder for download?
To Dj Gilcrease: hi, the link which u have sent me expired. May i know if you can repaste the code again if it is not too much trouble for u? Best Regards, Eugene On Sep 4, 11:11 pm, Dj Gilcrease wrote: > Here is how I do ithttp://dpaste.com/89530/ > > I am using a View class that I wrote to make my life easier so it wont > directly translate to a standard view function but it should give you > enough details to get you started --~--~-~--~~~---~--~~ 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: Zip multiple files into a zipped folder for download?
ok thank you guys! I'll test it out and see how it goes. BEst Regards, Eugene On Sep 4, 11:11 pm, Dj Gilcrease wrote: > Here is how I do ithttp://dpaste.com/89530/ > > I am using a View class that I wrote to make my life easier so it wont > directly translate to a standard view function but it should give you > enough details to get you started --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Zip multiple files into a zipped folder for download?
Hi all, I've got an advanced question. How do i create a zip file that contain multiple files and folders in the zip file? For example, within the zip it contains: folder.zip -> file1.php -> file2.php -> file3.html -> folder ---> fileInFolder1.css ---> fileInFolder.html ---> fileInFolder.php And the zip file is available for download? Best Regards. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---