Saturday, June 1, 2013

Re: (error) tutorial 2: local admin page not working

  Ok. so you have settings of your database... But did you do something for enabling admin ? (my answer is Nope.) See your urls.py file (there is a comment line - read it closely.) Then go to settings.py file and find INSTALLED_APPS dict(in comments here you can read all.) Only after it you need run ./manage.py syncdb. 

P.S. use south :-)

суббота, 1 июня 2013 г., 2:20:15 UTC+3 пользователь Issam Laradji написал:
After setting up the database using the command:

"python manage.py syncdb"

I ran "python manage.py runserver" to launch the server

But then when I try open the admin page " http://127.0.0.1:8000/admin/"

I keep getting this error,                  


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 mysite/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!



Thanks in advance...

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@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.
 
 

No comments:

Post a Comment