django application hosted on godaddy don't display the site models in admin page

51 views
Skip to first unread message

Mironiuc Sergiu

unread,
Feb 12, 2014, 9:08:17 AM2/12/14
to django...@googlegroups.com

I have a problem. I moved a django site from one hosting to godaddy. On the GoDaddy hosting it doesn't display in the admin page the site models.

settings code:

INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.sitemaps',
'django.contrib.staticfiles',
# Uncomment the next line to enable the admin:
'mysite',
'django.contrib.admin',
# Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',

'storages',

)

urls.py code:

> from django.conf.urls import patterns, include, url from
> django.contrib import admin from django.conf import settings from
> .sitemaps import StaticViewSitemap from .sitemaps import OfertaSitemap
> admin.autodiscover()
> 
> sitemaps = {
>     'ro' : StaticViewSitemap,
>     'oferte':OfertaSitemap
>     }
> 
> urlpatterns = patterns('',
>     ...
>     url(r'^admin/', include(admin.site.urls)),
>     ... )

Can anybody help me?

Thomas Leo

unread,
Feb 12, 2014, 9:53:27 AM2/12/14
to django...@googlegroups.com
Can you give a little more info on your application stack?

Cal Leeming [Simplicity Media Ltd]

unread,
Feb 12, 2014, 10:06:14 AM2/12/14
to django...@googlegroups.com
Can you give us a bit more info about what is happening? Do you have any error logs or stacktrace?

Also the urls.py code is malformed, you might want to consider using pastebin to paste the code instead.

Cal


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c5980fd0-877d-4488-b2d5-fe6e78135abc%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Mironiuc Sergiu

unread,
Feb 12, 2014, 10:20:55 AM2/12/14
to django...@googlegroups.com
I don't use a logger yet.
But I'm going to configure one... and I'll be back with details.
Thanks! 

Mironiuc Sergiu

unread,
Feb 13, 2014, 4:40:59 AM2/13/14
to django...@googlegroups.com
I configured log. But in the log file I don't see any warning/errors about admin page.
Just some selects from database regarding users and groups.
But, another strange thing is that I don't have the "admin.pyc" file.
So, it looks like this file is not compiled...
May be that can be a suggestion...
Thanks!

Mironiuc Sergiu

unread,
Feb 13, 2014, 5:26:08 AM2/13/14
to django...@googlegroups.com
I found the problem. 
I had an "extra" (non-necessary) folder admin, that should be in the static folder and not dirrectly in the project folder.
That was a confusing thing for application.
Thanks to all people who tried to help me.
Regards!

Cal Leeming [Simplicity Media Ltd]

unread,
Feb 13, 2014, 10:28:47 AM2/13/14
to django...@googlegroups.com
Glad you got it sorted out, and thanks for letting us know!

Cal


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
Reply all
Reply to author
Forward
0 new messages