Re: Internal Error after chaning SITE domain name and modifying html file...?
On Fri, Dec 7, 2012 at 6:21 PM, easypiewrote: > Here's my wsgi.py file located in my project: http://dpaste.org/dBRqQ/ > Sorry I miesread the traceback. In,oine 4 of wsgi.py you import settings and the one reporting the about about /etc/apache2/https is settings.py Is it possible that you somehow are importing/including/referencing /etc/apache2/https from settings.py? -- Ramiro Morales -- 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: Internal Error after chaning SITE domain name and modifying html file...?
On Fri, Dec 7, 2012 at 6:16 PM, easypiewrote: > Here's my apache log. I know this is outside of django but this might help > find the cause: http://dpaste.org/V9ONE/ thanks for the helps. >From the traceback you attached to the first message I'd say you need to review or post the /home/easyi/.virtualenvs/tomw/project/tomw/wsgi.py file. According to the traceback it has in line 4 a reference to a /etc/apache2/https or /etc/apache2/https: file that doesn't exist. -- Ramiro Morales -- 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: Internal Error after chaning SITE domain name and modifying html file...?
I'm not exactly sure what was the main cause of this but I had to remove all the project's files and its virtualenv and reinstall and git pull all the files back to start a fresh install. The two things I believe might be the culprit is either the wsgi.py file or the virtualenv itself. But after I did a fresh install of virtualenv and pull a copy of the project back to working server, everything booted back nicely. Thanks everyone (...for now? =) On Friday, December 7, 2012 12:03:27 AM UTC-8, easypie wrote: > > I'm getting an 500 internal error. I did two things before this happened. > (1) I modified a single html file then (2) logged into admin panel and > changed the SITE's domain name. Afterward, I restarted the server but the > website kept responding w/ 500 error. Here's the apache error log: > http://dpaste.org/crfbg/ > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/E3ejcteq2D0J. 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: Internal Error after chaning SITE domain name and modifying html file...?
I also went through this suggestion and the response is a success. https://groups.google.com/forum/?fromgroups=#!topic/django-users/Rb9F7BS6td0%5B1-25%5D -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/dpuQh2xSU-8J. 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: Internal Error after chaning SITE domain name and modifying html file...?
I thought this line took care of that: site.addsitedir( '/home/easyi/.virutalenvs/%s/lib/python2.7/site-packages' % settings. PROJECT_NAME) On Friday, December 7, 2012 4:01:12 PM UTC-8, Chris Cogdon wrote: > > Okay, I've never tried using virtualenv's with django before... but from > what I've read, one of the most important things to do is ensure that the > virtualenv site-packages directory is the first thing in sys.path the > wsgi.py file there doesn't seem to be manipulating sys.path at all. > > > On Friday, December 7, 2012 1:21:01 PM UTC-8, easypie wrote: >> >> Here's my wsgi.py file located in my project: http://dpaste.org/dBRqQ/ >> > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/gWtwa1zE5cEJ. 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: Internal Error after chaning SITE domain name and modifying html file...?
Okay, I've never tried using virtualenv's with django before... but from what I've read, one of the most important things to do is ensure that the virtualenv site-packages directory is the first thing in sys.path the wsgi.py file there doesn't seem to be manipulating sys.path at all. On Friday, December 7, 2012 1:21:01 PM UTC-8, easypie wrote: > > Here's my wsgi.py file located in my project: http://dpaste.org/dBRqQ/ > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/mumEjVSe6SIJ. 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: Internal Error after chaning SITE domain name and modifying html file...?
Here's my wsgi.py file located in my project: http://dpaste.org/dBRqQ/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/0DBDHo15FrcJ. 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: Internal Error after chaning SITE domain name and modifying html file...?
Here's my apache log. I know this is outside of django but this might help find the cause: http://dpaste.org/V9ONE/ thanks for the helps. On Friday, December 7, 2012 1:06:30 PM UTC-8, easypie wrote: > > I took the action suggested but it failed. So I decided to remove my whole > project directory and recreate the database to start a fresh install of the > project. But when I visit the site url it still returns the same error > posted in the apache error log. Is this maybe something to do with my wsgi > file or amazonaws storage that's messing everything up? or perhaps just my > apache server...? -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/GkQAPR7teaUJ. 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: Internal Error after chaning SITE domain name and modifying html file...?
I took the action suggested but it failed. So I decided to remove my whole project directory and recreate the database to start a fresh install of the project. But when I visit the site url it still returns the same error posted in the apache error log. Is this maybe something to do with my wsgi file or amazonaws storage that's messing everything up? or perhaps just my apache server...? -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/70-8_0iwLgEJ. 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: Internal Error after chaning SITE domain name and modifying html file...?
Run ./manage.py shell ... since that imports settings, that should also fail, and will perhaps give you more information Django isn't very good at showing you the "root cause" when a module fails to import, unfortunately, you might want to figure out a way of importing them manually and seeing what happened. On Friday, December 7, 2012 12:03:27 AM UTC-8, easypie wrote: > > I'm getting an 500 internal error. I did two things before this happened. > (1) I modified a single html file then (2) logged into admin panel and > changed the SITE's domain name. Afterward, I restarted the server but the > website kept responding w/ 500 error. Here's the apache error log: > http://dpaste.org/crfbg/ > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/bnX-A1l_WqoJ. 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: Internal Error after chaning SITE domain name and modifying html file...?
Or, is there still a Site object in the database whose Id matches the one specified in settings.py? (It depends on how you changed the site object.) On Fri, Dec 7, 2012 at 7:42 AM, Paul Backhousewrote: > Is it a Site cache issue? > > > https://docs.djangoproject.com/en/1.4/ref/contrib/sites/#caching-the-current-site-object > > Maybe try Site.objects.clear_cache() > > On Fri, 2012-12-07 at 00:03 -0800, easypie wrote: > > I'm getting an 500 internal error. I did two things before this > > happened. (1) I modified a single html file then (2) logged into admin > > panel and changed the SITE's domain name. Afterward, I restarted the > > server but the website kept responding w/ 500 error. Here's the apache > > error log: http://dpaste.org/crfbg/ > > > > > > -- > > You received this message because you are subscribed to the Google > > Groups "Django users" group. > > To view this discussion on the web visit > > https://groups.google.com/d/msg/django-users/-/Ihm02fnLxbIJ. > > 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. > > > -- > 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. > > -- 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: Internal Error after chaning SITE domain name and modifying html file...?
Is it a Site cache issue? https://docs.djangoproject.com/en/1.4/ref/contrib/sites/#caching-the-current-site-object Maybe try Site.objects.clear_cache() On Fri, 2012-12-07 at 00:03 -0800, easypie wrote: > I'm getting an 500 internal error. I did two things before this > happened. (1) I modified a single html file then (2) logged into admin > panel and changed the SITE's domain name. Afterward, I restarted the > server but the website kept responding w/ 500 error. Here's the apache > error log: http://dpaste.org/crfbg/ > > > -- > You received this message because you are subscribed to the Google > Groups "Django users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/django-users/-/Ihm02fnLxbIJ. > 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. -- 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.
Internal Error after chaning SITE domain name and modifying html file...?
I'm getting an 500 internal error. I did two things before this happened. (1) I modified a single html file then (2) logged into admin panel and changed the SITE's domain name. Afterward, I restarted the server but the website kept responding w/ 500 error. Here's the apache error log: http://dpaste.org/crfbg/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/Ihm02fnLxbIJ. 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.