Jump to content

[Solved] Internal Server Error - django project


arnews

Recommended Posts

When i request http://arnews.heliohost.org/ArNews/

 

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@arnews.heliohost.org and inform them of the time the error occurred, and anything you might have done that may have caused the error.

 

ArNews Tree : 

 

---/home/arnews/public_html/ArNews

----------/ArNews

---------------------/__init__.py

---------------------/dispatch.wsgi

---------------------/settings.py

---------------------/urls.py

----------/ArNewsBot

---------------------/migrations

---------------------/urls.py

---------------------/etc.

----------/media

----------/manage.py

----------/.htaccess

 

 

IN .htaccess :-

 

RewriteEngine On

RewriteBase /
RewriteRule ^(media/.*)$ - [L]
RewriteRule ^(admin_media/.*)$ - [L]
RewriteRule ^(ArNews/dispatch\.wsgi/.*)$ - [L]
RewriteRule ^(.*)$ ArNews/dispatch.wsgi/$1 [QSA,PT,L]

 

in dispatch.wsgi :-

 

import os ,sys
 
from django.core.wsgi import get_wsgi_application
sys.path.append("/home/arnews/public_html/ArNews");
 
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ArNews.settings")
 
application = get_wsgi_application()

 

in settings.py :-

 

 
DEBUG = True
 
ALLOWED_HOSTS = [
'*'
]
 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...