Help with Django initial setup

65 views
Skip to first unread message

George Mathew

unread,
Apr 4, 2016, 4:33:26 PM4/4/16
to Django users
Hi,
I am trying to learn Django. 

I was following the official tutorial https://docs.djangoproject.com/en/1.9/intro/tutorial01/

When I entered the command "python manage.py runserver" I got the following error. Please help.


Performing system checks...

Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x000001F60BFE2488>
Traceback (most recent call last):
  File "C:\Users\George\AppData\Local\Programs\Python\Python35\lib\site-packages\django\utils\autoreload.py", line 226, in wrapper
    fn(*args, **kwargs)
  File "C:\Users\George\AppData\Local\Programs\Python\Python35\lib\site-packages\django\core\management\commands\runserver.py", line 116, in inner_run
    self.check(display_num_errors=True)
  File "C:\Users\George\AppData\Local\Programs\Python\Python35\lib\site-packages\django\core\management\base.py", line 426, in check
    include_deployment_checks=include_deployment_checks,
  File "C:\Users\George\AppData\Local\Programs\Python\Python35\lib\site-packages\django\core\checks\registry.py", line 75, in run_checks
    new_errors = check(app_configs=app_configs)
  File "C:\Users\George\AppData\Local\Programs\Python\Python35\lib\site-packages\django\core\checks\model_checks.py", line 14, in check_all_models
    for model in apps.get_models():
TypeError: get_models() missing 1 required positional argument: 'self'


Avraham Serour

unread,
Apr 5, 2016, 4:14:14 AM4/5/16
to django-users
it seems you have a problem with one of your methods, you declared it without arguments when it should receive one (self)
it looks like it is on one of your models, please recheck your models.py


--
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5110083f-c5af-47e4-9903-f4ee8fbbf337%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages