Or, if you prefer, use a slightly older version of Django that doesn't 
require an sqlite library that's newer than your OS has.

Either that, or if you plan on using a database other than sqlite in 
production, once you modify your settings.py's DATABASES variable to use 
something other than sqlite, you won't have this problem anymore.

On Friday, July 19, 2019 at 2:08:50 PM UTC-6, Tal wrote:
>
> This is a known problem 
> <https://www.google.com/url?q=https%3A%2F%2Fcode.djangoproject.com%2Fticket%2F30313&sa=D&sntz=1&usg=AFQjCNFEZ2GRHkL_bqyMdSDy3JG3hcC3rQ>
>  - 
> at least on CentOS 7. Not sure what OS you're running on AWS - I don't have 
> much experience with AWS. I literally just ran into this on my CentOS 7. I 
> posted a fix for CentOS 7. Maybe it'll help you.
>
>
> On Friday, July 19, 2019 at 1:22:20 PM UTC-6, Jani Tiainen wrote:
>>
>> Hi.
>>
>> Error is simple. Python is using too old version of sqlite. There are few 
>> options to fix that depending what os your system runs on.
>>
>> Though sqlite is not very suitable for production so you may want to use 
>> something better like Postgres.
>>
>>
>> pe 19. heinäk. 2019 klo 22.14 anchal agarwal <agarwal...@gmail.com> 
>> kirjoitti:
>>
>>> This is my whole Traceback
>>> Traceback (most recent call last):
>>>   File "manage.py", line 15, in <module>
>>>     execute_from_command_line(sys.argv)
>>>   File 
>>> "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py",
>>>  
>>> line 381, in execute_from_command_line
>>>     utility.execute()
>>>   File 
>>> "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py",
>>>  
>>> line 357, in execute
>>>     django.setup()
>>>   File "/usr/local/lib/python3.7/site-packages/django/__init__.py", line 
>>> 24, in setup
>>>     apps.populate(settings.INSTALLED_APPS)
>>>   File "/usr/local/lib/python3.7/site-packages/django/apps/registry.py", 
>>> line 114, in populate
>>>     app_config.import_models()
>>>   File "/usr/local/lib/python3.7/site-packages/django/apps/config.py", 
>>> line 211, in import_models
>>>     self.models_module = import_module(models_module_name)
>>>   File "/usr/lib64/python3.7/importlib/__init__.py", line 127, in 
>>> import_module
>>>     return _bootstrap._gcd_import(name[level:], package, level)
>>>   File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
>>>   File "<frozen importlib._bootstrap>", line 983, in _find_and_load
>>>   File "<frozen importlib._bootstrap>", line 967, in 
>>> _find_and_load_unlocked
>>>   File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
>>>   File "<frozen importlib._bootstrap_external>", line 728, in exec_module
>>>   File "<frozen importlib._bootstrap>", line 219, in 
>>> _call_with_frames_removed
>>>   File "/home/ec2-user/wavybeatz/music/models.py", line 4, in <module>
>>>     class Album(models.Model):
>>>   File 
>>> "/usr/local/lib/python3.7/site-packages/django/db/models/base.py", line 
>>> 117, in __new__
>>>     new_class.add_to_class('_meta', Options(meta, app_label))
>>>   File 
>>> "/usr/local/lib/python3.7/site-packages/django/db/models/base.py", line 
>>> 321, in add_to_class
>>>     value.contribute_to_class(cls, name)
>>>   File 
>>> "/usr/local/lib/python3.7/site-packages/django/db/models/options.py", line 
>>> 204, in contribute_to_class
>>>     self.db_table = truncate_name(self.db_table, 
>>> connection.ops.max_name_length())
>>>   File "/usr/local/lib/python3.7/site-packages/django/db/__init__.py", 
>>> line 28, in __getattr__
>>>     return getattr(connections[DEFAULT_DB_ALIAS], item)
>>>   File "/usr/local/lib/python3.7/site-packages/django/db/utils.py", line 
>>> 201, in __getitem__
>>>     backend = load_backend(db['ENGINE'])
>>>   File "/usr/local/lib/python3.7/site-packages/django/db/utils.py", line 
>>> 110, in load_backend
>>>     return import_module('%s.base' % backend_name)
>>>   File "/usr/lib64/python3.7/importlib/__init__.py", line 127, in 
>>> import_module
>>>     return _bootstrap._gcd_import(name[level:], package, level)
>>>   File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
>>>   File "<frozen importlib._bootstrap>", line 983, in _find_and_load
>>>   File "<frozen importlib._bootstrap>", line 967, in 
>>> _find_and_load_unlocked
>>>   File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
>>>   File "<frozen importlib._bootstrap_external>", line 728, in exec_module
>>>   File "<frozen importlib._bootstrap>", line 219, in 
>>> _call_with_frames_removed
>>>   File 
>>> "/usr/local/lib/python3.7/site-packages/django/db/backends/sqlite3/base.py",
>>>  
>>> line 66, in <module>
>>>     check_sqlite_version()
>>>   File 
>>> "/usr/local/lib/python3.7/site-packages/django/db/backends/sqlite3/base.py",
>>>  
>>> line 63, in check_sqlite_version
>>>     raise ImproperlyConfigured('SQLite 3.8.3 or later is required (found 
>>> %s).' % Database.sqlite_version)
>>> django.core.exceptions.ImproperlyConfigured: SQLite 3.8.3 or later is 
>>> required (found 3.7.17).
>>>
>>> On Sat, Jul 20, 2019 at 12:29 AM anchal agarwal <agarwal...@gmail.com> 
>>> wrote:
>>>
>>>> I used default sqlite as my Database
>>>> DATABASES = {
>>>> 'default': {
>>>> 'ENGINE': 'django.db.backends.sqlite3',
>>>> 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
>>>> }
>>>> }
>>>> My python version is python3 and Django version is 2.1.5
>>>>
>>>> On Fri, Jul 19, 2019 at 7:06 PM Desh Deepak <deshde...@gmail.com> 
>>>> wrote:
>>>>
>>>>> Hi, show me your database connection, also tell me python and Django 
>>>>> version.
>>>>>
>>>>>
>>>>> On Fri, 19 Jul 2019, 18:06 anchal agarwal, <agarwal...@gmail.com> 
>>>>> wrote:
>>>>>
>>>>>> Hello Django users,
>>>>>> i am trying to deploy my django on AWS 
>>>>>> I am following this 
>>>>>> https://medium.com/@charlesthk/deploy-nginx-django-uwsgi-on-aws-ec2-amazon-linux-517a683163c6
>>>>>> Everything was going right but when i run python manage.py migrate , 
>>>>>> it's giving me this error
>>>>>> django.core.exceptions.ImproperlyConfigured: SQLite 3.8.3 or later is 
>>>>>> required (found 3.7.17).
>>>>>> how can i resolve this?
>>>>>> Please help me 
>>>>>>
>>>>>> -- 
>>>>>> 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...@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/CAMT%3DisVCsYAju5agUWxPrpjZ5a-NGc1X0A7U34c4QthnAM0jKA%40mail.gmail.com
>>>>>>  
>>>>>> <https://groups.google.com/d/msgid/django-users/CAMT%3DisVCsYAju5agUWxPrpjZ5a-NGc1X0A7U34c4QthnAM0jKA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>> -- 
>>>>> 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...@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/CAJ0m4xiKUd3sOH0mwJtsUKS-mO8w4hok6VmKoS%3DFEbaSJ9XSag%40mail.gmail.com
>>>>>  
>>>>> <https://groups.google.com/d/msgid/django-users/CAJ0m4xiKUd3sOH0mwJtsUKS-mO8w4hok6VmKoS%3DFEbaSJ9XSag%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>> -- 
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/CAMT%3DisWL4x%2BQVz5x3p_xn8mPZc93U5Vg6DjgPnEkyaCbwA0QhQ%40mail.gmail.com
>>>  
>>> <https://groups.google.com/d/msgid/django-users/CAMT%3DisWL4x%2BQVz5x3p_xn8mPZc93U5Vg6DjgPnEkyaCbwA0QhQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/26559578-875a-46ae-9ee2-cfe68a16db8f%40googlegroups.com.

Reply via email to