Hi.
on the local PC all works

on the server, when I'm trying xxx.yyy/admin, i've got 404, and there is no 
diff DEBUG=True/False
how to detect error?

my urls.py, and in the settings.py 'django.contrib.admin', ALLOWED_HOSTS = 
['127.0.0.1', 'xxx.yyy']

from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.conf.urls.defaults import *
from django.contrib import admin
from django.conf import settings
from django.conf.urls.static import static
from cms.sitemaps import CMSSitemap

from django.conf.urls.defaults import patterns, include, url
from django.views.generic.base import TemplateView, RedirectView

from ajax_select import urls as ajax_select_urls


class TextPlainView(TemplateView):
def render_to_response(self, context, **kwargs):
return super(TextPlainView, self).render_to_response(
context, content_type='text/plain', **kwargs)


admin.autodiscover()

urlpatterns = patterns('',
(r'^admin/lookups/', include(ajax_select_urls)),
url(r'^$', 
view='medparser_site.medparser.views.search_form',name='search_form'), 
(r'^admin/', include(admin.site.urls)),
url(r'^', include('cms.urls')),
  
) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

urlpatterns += staticfiles_urlpatterns()

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to