What does your WSGI script file look like? Looks a bit like 'application' is not referring to a valid WSGI application entry point.
Graham On 27/03/2014, at 10:43 PM, venu k <[email protected]> wrote: > Hi Graham, > > Thank you. I didnt disable the default and enable the current website. > After i did that , now the folder structure is not showing up. But i > get a syntax error , can you help me with that? > > Environment: > > > Django Version: 1.6.2 > Python Version: 2.7.3 > Installed Applications: > ('django.contrib.admin', > 'django.contrib.auth', > 'django.contrib.contenttypes', > 'django.contrib.sessions', > 'django.contrib.messages', > 'django.contrib.staticfiles', > 'nbsamwebapp') > Installed Middleware: > ('django.contrib.sessions.middleware.SessionMiddleware', > 'django.middleware.common.CommonMiddleware', > 'django.middleware.csrf.CsrfViewMiddleware', > 'django.contrib.auth.middleware.AuthenticationMiddleware', > 'django.contrib.messages.middleware.MessageMiddleware', > 'django.middleware.clickjacking.XFrameOptionsMiddleware') > > > Traceback: > File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" > in get_response > 114. response = wrapped_callback(request, > *callback_args, **callback_kwargs) > > Exception Type: TypeError at / > Exception Value: __init__() takes exactly 1 argument (2 given) > > On Thu, Mar 27, 2014 at 3:02 PM, Graham Dumpleton > <[email protected]> wrote: >> >> On 27/03/2014, at 8:25 PM, venu k <[email protected]> wrote: >> >>> Hi Team, >>> >>> I have been using django+modwsgi+apache, but recently my VM got >>> crashed and i had to rebuild the website from the scratch. I had the >>> set of files copied on my local desktop. I copied those files, but >>> somehow the apache is not serving the HTML files, but a folder >>> structure of where the project is located. I believe it is some issue >>> conferring the web.conf file. Can you guide me ? >> >> It will help to see the parts of the Apache configuration related to >> mod_wsgi and the WSGI application. >> >> The fact that it shows you the directory structure of your project is a bit >> worrying to start with, as it suggests you have put your project under the >> Apache DocumentRoot directory for the whole of Apache or the VirtualHost, >> something you should not do. >> >> Anyway, lets start with that configuration file. >> >> Graham >> >> -- >> You received this message because you are subscribed to the Google Groups >> "modwsgi" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/modwsgi. >> For more options, visit https://groups.google.com/d/optout. > > > > -- > VK > +91 97317 33666 > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/modwsgi. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/d/optout.
