Re: Cant get to admin login page

350 views
Skip to first unread message

Nikolas Stevenson-Molnar

unread,
Jun 6, 2013, 10:36:29 PM6/6/13
to django...@googlegroups.com
Did you configure your database in settings.py as described in part 1?

_Nik

On 6/6/2013 2:53 PM, Rebecca wrote:
I'm on part 2 of the django book tutorial (https://docs.djangoproject.com/en/dev/intro/tutorial02/) and am trying to get onto the admin login page in my browser.  When I go to the admin site on my local domain (http://127.0.0.1:8000/admin/), I dont get to the login screen.  I get to something else from django 

"

It worked!

Congratulations on your first Django-powered page.

Of course, you haven't actually done any work yet. Here's what to do next:

  • If you plan to use a database, edit the DATABASES setting in myproject/settings.py.
  • Start your first app by running python manage.py startapp [appname].

You're seeing this message because you have DEBUG = True in your Django settings file and you haven't configured any URLs. Get to work!"



but not the login screen it said i would get in the tutorial.  Anyone know why? or how to get to the login page?


Thanks!!!!!!

--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Nikolas Stevenson-Molnar

unread,
Jun 6, 2013, 10:37:31 PM6/6/13
to django...@googlegroups.com
And also did you uncomment the appropriate lines to enable the admin app? https://docs.djangoproject.com/en/1.5/intro/tutorial01/#activating-models

Gladson Simplício Brito

unread,
Jun 6, 2013, 10:42:04 PM6/6/13
to django...@googlegroups.com
you forgot:

configs in settgins.py

manage.py syncdb


2013/6/6 Rebecca <corc...@mit.edu>

Rebecca

unread,
Jun 12, 2013, 2:05:25 PM6/12/13
to django...@googlegroups.com
Thanks, I never uncommented the lines in the urls.py document!

Александр Соболев

unread,
Jun 12, 2013, 2:17:58 PM6/12/13
to django...@googlegroups.com
Hi, maybe you should uncomment a few lines in project/urls.py


2013/6/13 Rebecca <corc...@mit.edu>

--

Александр Соболев

unread,
Jun 12, 2013, 2:22:06 PM6/12/13
to django...@googlegroups.com
from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    url(r'^admin/', include(admin.site.urls)),
)


2013/6/13 Александр Соболев <no.em...@gmail.com>

Glen J

unread,
Jun 10, 2014, 6:20:14 PM6/10/14
to django...@googlegroups.com
I have this exact same problem.  I'be checked both settings.py and urls.py and done a syncdb and still get nothing but the welcome page.  Any other ideas on what to check?
Reply all
Reply to author
Forward
0 new messages