Re: Django Internal Server Error

388 views
Skip to first unread message

Cal Leeming [Simplicity Media Ltd]

unread,
Oct 8, 2012, 6:40:11 AM10/8/12
to django...@googlegroups.com
It's possible your django version installed is either not compatible with the project you are using - or the installation may be corrupted somehow.

Personally, I've never encountered this problem before using WSGI (normally it *just works*).

A quick search on Google shows this;

There is also documentation on the WSGI module;

Can you confirm which version of Python and Django you have installed?

Side note - using upper case letters (i.e. Yourdogsdead instead of yourdogsdead) in usernames on *nix based servers is not really a great thing to do :/

Cal

On Mon, Oct 8, 2012 at 2:13 AM, Wnt2bsleepin <wnt2bs...@gmail.com> wrote:
I looked in the log files for apache and it came up with the following. 

 File "/home/Yourdogsdead/uglstats/uglstats/wsgi.py", line 26, in ?
 from django.core.wsgi import get_wsgi_application
 ImportError: No module named django.core.wsgi

I am not sure why it's not importing properly. 

--
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/-/9ao5LPpT3NkJ.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Cal Leeming [Simplicity Media Ltd]

unread,
Oct 8, 2012, 6:43:22 AM10/8/12
to django...@googlegroups.com
Here is the test I used to determine if the import was working correctly.

Can you do the same as below and paste the result??

 foxx@web1/slice10173160 [~] > python
Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>> print django.VERSION
(1, 4, 0, 'final', 0)
>>> from django.core.wsgi import get_wsgi_application
>>>

Cal

Mohamadreza Rezaei

unread,
Oct 8, 2012, 12:46:05 AM10/8/12
to django...@googlegroups.com, All About Symbian Forums, Mail Delivery Subsystem, list...@gmail.com, List...@googlegroups.com, pl...@google.com, iran-iran Moderator, Ad...@webhfstira.com
Hi my connect moderate google groups, thanks you for report my errors
in my page blog site net gateway, what way I able to Validate your
requsted?

2012/10/8, Wnt2bsleepin <wnt2bs...@gmail.com>:
> I looked in the log files for apache and it came up with the following.
>
> File "/home/Yourdogsdead/uglstats/uglstats/wsgi.py", line 26, in ?
> from django.core.wsgi import get_wsgi_application
> ImportError: No module named django.core.wsgi
>
> I am not sure why it's not importing properly.
>
> --
> 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/-/9ao5LPpT3NkJ.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


--
Asia Middle East Iran Mazandaran Amol Mapointer.
Persian Civil Engineering Central publisher allnet all rights Reserved
Copyright 2010 C.D.W REBW Bonian Sazan Shomal COMPANY.
https://oildig.blogspot.com/

Wnt2bsleepin

unread,
Oct 9, 2012, 1:46:02 PM10/9/12
to django...@googlegroups.com
Can you explain why it's bad to use uppercase names in Nix systems? I will remake the account if I need to. 
Here is the output of python

 

Python 2.4 (#2, Oct  7 2012, 20:19:23)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: No module named django
>>>

and under python 2.7
Python 2.7.2 (default, Oct  6 2012, 14:11:15)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>> print django.VERSION
(1, 4, 1, 'final', 0)
>>>





Wnt2bsleepin

unread,
Oct 9, 2012, 4:17:35 PM10/9/12
to django...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages