Re: getting errors from my Django app

2020-03-31 Thread Adam Johnson
Hi!

I think you've found the wrong mailing list for this post. This mailing
list is for discussing the development of Django itself, not for support
using Django. This means the discussions of bugs and features in Django
itself, rather than in your code using it. People on this list are unlikely
to answer your support query with their limited time and energy.

For support, please follow the "Getting Help" page:
https://docs.djangoproject.com/en/3.0/faq/help/

Thanks for your understanding,

Adam

P.S. this is a Python error, the hint is right there in the error message:
"TypeError: __init__() got an unexpected keyword argument 'max_lenght'". I
think you meant max_length.

On Tue, 31 Mar 2020 at 19:52, Adam Geek  wrote:

>
> this is what I get when I run:   python3 manage.py createsuperuser
>
>
> Traceback (most recent call last):
>
>   File "manage.py", line 21, in 
>
> main()
>
>   File "manage.py", line 17, in main
>
> execute_from_command_line(sys.argv)
>
>   File
> "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/django/core/management/__init__.py",
> line 401, in execute_from_command_line
>
> utility.execute()
>
>   File
> "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/django/core/management/__init__.py",
> line 377, in execute
>
> django.setup()
>
>   File
> "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/django/__init__.py",
> line 24, in setup
>
> apps.populate(settings.INSTALLED_APPS)
>
>   File
> "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/django/apps/registry.py",
> line 114, in populate
>
> app_config.import_models()
>
>   File
> "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/django/apps/config.py",
> line 211, in import_models
>
> self.models_module = import_module(models_module_name)
>
>   File
> "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/__init__.py",
> line 127, in import_module
>
> return _bootstrap._gcd_import(name[level:], package, level)
>
>   File "", line 1014, in _gcd_import
>
>   File "", line 991, in _find_and_load
>
>   File "", line 975, in
> _find_and_load_unlocked
>
>   File "", line 671, in _load_unlocked
>
>   File "", line 783, in exec_module
>
>   File "", line 219, in
> _call_with_frames_removed
>
>   File "/Users/kabar/Desktop/wisdompets/adoption/models.py", line 3, in
> 
>
> class pet(models.Model):
>
>   File "/Users/kabar/Desktop/wisdompets/adoption/models.py", line 10, in
> pet
>
> sex =models.CharField(choices= SEX_CHOICES,max_lenght=1,blank=True);
>
>   File
> "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/django/db/models/fields/__init__.py",
> line 984, in __init__
>
> super().__init__(*args, **kwargs)
>
> TypeError: __init__() got an unexpected keyword argument 'max_lenght'
>
>
> any help?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/05e39666-2fd9-4a3d-abad-1a96fb3935b6%40googlegroups.com
> 
> .
>


-- 
Adam

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAMyDDM3A9hVaw1NkbUf%2BVkWaAadTbYX73LsefeDuHeoA6iE-3Q%40mail.gmail.com.


getting errors from my Django app

2020-03-31 Thread Adam Geek



this is what I get when I run:   python3 manage.py createsuperuser 


Traceback (most recent call last):

  File "manage.py", line 21, in 

main()

  File "manage.py", line 17, in main

execute_from_command_line(sys.argv)

  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/django/core/management/__init__.py",
 
line 401, in execute_from_command_line

utility.execute()

  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/django/core/management/__init__.py",
 
line 377, in execute

django.setup()

  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/django/__init__.py",
 
line 24, in setup

apps.populate(settings.INSTALLED_APPS)

  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/django/apps/registry.py",
 
line 114, in populate

app_config.import_models()

  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/django/apps/config.py",
 
line 211, in import_models

self.models_module = import_module(models_module_name)

  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/__init__.py",
 
line 127, in import_module

return _bootstrap._gcd_import(name[level:], package, level)

  File "", line 1014, in _gcd_import

  File "", line 991, in _find_and_load

  File "", line 975, in _find_and_load_unlocked

  File "", line 671, in _load_unlocked

  File "", line 783, in exec_module

  File "", line 219, in 
_call_with_frames_removed

  File "/Users/kabar/Desktop/wisdompets/adoption/models.py", line 3, in 


class pet(models.Model):

  File "/Users/kabar/Desktop/wisdompets/adoption/models.py", line 10, in pet

sex =models.CharField(choices= SEX_CHOICES,max_lenght=1,blank=True);

  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/django/db/models/fields/__init__.py",
 
line 984, in __init__

super().__init__(*args, **kwargs)

TypeError: __init__() got an unexpected keyword argument 'max_lenght'


any help?

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/05e39666-2fd9-4a3d-abad-1a96fb3935b6%40googlegroups.com.