Check out the stackoverflow question
Best Regards,
Stanwin Siow
On Feb 23, 2012, at 11:20 AM, shartha wrote:
I have "django.contrib.admin" added to my INSTALLED_APP and database
is also sync'ed!
On Feb 22, 9:04 pm, Stanwin Siow <stanwin.kts...@gmail.com> wrote:check your settings.py file to ensure that you have the admin line uncommented in installed apps.Best Regards,Stanwin SiowOn Feb 23, 2012, at 10:58 AM, shartha wrote:Hello,I am trying to deploy a simple django site. The host I have choseninstalled django for me. But the problem is they have modified thefiles a little bit and it sometimes gets confusing for a novice personlike me. Here is my question:This is the urls.py on the server:===========================================from django.conf.urls.defaults import patterns, include, urlfrom django.shortcuts import render_to_responsefrom django.contrib import adminadmin.autodiscover()def index(request):return render_to_response('index.html', {})urlpatterns = patterns('',url(r'^$', 'hello.urls.index'),url(r'^admin/', include(admin.site.urls)),)============================================Now I have done the django tutorial part 1 and part 2 up to the pointwhere it asks you to uncomment 3 lines inthe urls.py. The lines thatare extra in the above files are the ones that were in it by default.The problem I have is when I try to go to /domain/admin I get thefollowing error:Page not found (404)Request Method: GETRequest URL: http://chekonam.info/adminUsing the URLconf defined in hello.urls, Django tried these URLpatterns, in this order:^$The current URL, admin, didn't match any of these.The django instance is installed in the hello folder. Could someoneplease tell me what's going on here? I could do all other steps in thetutorial without problem. But this one perplexes me!Thank you!--You received this message because you are subscribed to the Google Groups "Django users" group.To post to this group, send email to django-users@googlegroups.com.To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment