Re: TypeError: resolve() got an unexpected keyword argument 'strict' in Django

2020-05-14 Thread uday
Abhi,
Did you got any resolution for this issue. I did recent upgrade to Django 
3.0.6 and started getting the same issue.
My pathlib library is also upto date.

On Monday, April 13, 2020 at 4:28:57 AM UTC+5:30, Abhishek Pandey wrote:
>
> Hello Everyone!
>
> I am a new Django learner. I followed some tutorials to install django but 
> when i try to runserver an error message comes up. Whenever I hit this 
> command: python manage.py runserver
> the following error comes up.
>
> Watching for file changes with StatReloader
> Performing system checks...
>
> 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 
> "/Users/Abhi/PycharmProjects/SearchProject/venv/lib/python3.6/site-packages/django/core/management/__init__.py",
>  
> line 401, in execute_from_command_line
> utility.execute()
>   File 
> "/Users/Abhi/PycharmProjects/SearchProject/venv/lib/python3.6/site-packages/django/core/management/__init__.py",
>  
> line 395, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File 
> "/Users/Abhi/PycharmProjects/SearchProject/venv/lib/python3.6/site-packages/django/core/management/base.py",
>  
> line 328, in run_from_argv
> self.execute(*args, **cmd_options)
>   File 
> "/Users/Abhi/PycharmProjects/SearchProject/venv/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>  
> line 60, in execute
> super().execute(*args, **options)
>   File 
> "/Users/Abhi/PycharmProjects/SearchProject/venv/lib/python3.6/site-packages/django/core/management/base.py",
>  
> line 369, in execute
> output = self.handle(*args, **options)
>   File 
> "/Users/Abhi/PycharmProjects/SearchProject/venv/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>  
> line 95, in handle
> self.run(**options)
>   File 
> "/Users/Abhi/PycharmProjects/SearchProject/venv/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>  
> line 102, in run
> autoreload.run_with_reloader(self.inner_run, **options)
>   File 
> "/Users/Abhi/PycharmProjects/SearchProject/venv/lib/python3.6/site-packages/django/utils/autoreload.py",
>  
> line 599, in run_with_reloader
> start_django(reloader, main_func, *args, **kwargs)
>   File 
> "/Users/Abhi/PycharmProjects/SearchProject/venv/lib/python3.6/site-packages/django/utils/autoreload.py",
>  
> line 584, in start_django
> reloader.run(django_main_thread)
>   File 
> "/Users/Abhi/PycharmProjects/SearchProject/venv/lib/python3.6/site-packages/django/utils/autoreload.py",
>  
> line 299, in run
> self.run_loop()
>   File 
> "/Users/Abhi/PycharmProjects/SearchProject/venv/lib/python3.6/site-packages/django/utils/autoreload.py",
>  
> line 305, in run_loop
> next(ticker)
>   File 
> "/Users/Abhi/PycharmProjects/SearchProject/venv/lib/python3.6/site-packages/django/utils/autoreload.py",
>  
> line 345, in tick
> for filepath, mtime in self.snapshot_files():
>   File 
> "/Users/Abhi/PycharmProjects/SearchProject/venv/lib/python3.6/site-packages/django/utils/autoreload.py",
>  
> line 361, in snapshot_files
> for file in self.watched_files():
>   File 
> "/Users/Abhi/PycharmProjects/SearchProject/venv/lib/python3.6/site-packages/django/utils/autoreload.py",
>  
> line 260, in watched_files
> yield from iter_all_python_module_files()
>   File 
> "/Users/Abhi/PycharmProjects/SearchProject/venv/lib/python3.6/site-packages/django/utils/autoreload.py",
>  
> line 105, in iter_all_python_module_files
> return iter_modules_and_files(modules, frozenset(_error_files))
>   File 
> "/Users/Abhi/PycharmProjects/SearchProject/venv/lib/python3.6/site-packages/django/utils/autoreload.py",
>  
> line 141, in iter_modules_and_files
> resolved_path = path.resolve(strict=True).absolute()
> TypeError: resolve() got an unexpected keyword argument 'strict'
>
>
>
> Can anyone help me out with this, please?
>
>

-- 
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/8f9d6e92-d645-4e49-9ea3-0ffce3f56ae3%40googlegroups.com.


Re: SPA websites with Django

2019-11-15 Thread uday devikar
I want to take a input from a end user

Name , email and message .. I don't want to validate user or anything
...just want a input . In django .
What should I do...?


On Thu 14 Nov, 2019, 6:19 PM Michael Thomas, 
wrote:

> Django is a backend platform - it's agnostic as to what type of front end
> you build with it.
>
> On Thu, Nov 14, 2019 at 4:27 PM Inna Reddy  wrote:
>
>> Hi,
>>
>> Can we build Single page web applications with Django ?
>>
>> --
>> 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/26edfa5c-74b9-46f1-9d8f-3512625b3e78%40googlegroups.com
>> 
>> .
>>
> --
> 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/CAEdx1foJTu27k%2B6wtK_F8H2VedpF70MiVLp_vfK%2B0C%3DbBcmr%2BA%40mail.gmail.com
> 
> .
>

-- 
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/CAAbiicyuUjcYZur85naXq86jedWoRDibQ0_bXQFDyn%2BUeDgt4Q%40mail.gmail.com.


Error decoding password stored in mysql : binascii.Error: Incorrect padding

2018-03-14 Thread uday bhaskar
Hello Everyone. 

I am trying to decode previously encoded and stored in mysql but ending up 
with binascii.Error: Incorrect padding error. I have been using sqllite for 
a while with same functionality used to work . When I changed to mysql it 
broke things . Any help with it is much appreciated. 


>>> dbins.user_pass
*"b'ZWJzMTJndTFTJEhANUg=\\n'"*

>>> base64.decodebytes(dbins.user_pass)
Traceback (most recent call last):
  File "D:\Development\sss\pyenv\lib\base64.py", line 517, in 
_input_type_check
m = memoryview(s)
TypeError: memoryview: a bytes-like object is required, not 'str'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "", line 1, in 
  File "D:\Development\sss\pyenv\lib\base64.py", line 552, in decodebytes
_input_type_check(s)
  File "D:\Development\sss\pyenv\lib\base64.py", line 520, in 
_input_type_check
raise TypeError(msg) from err
TypeError: expected bytes-like object, not str

>>> base64.decodebytes(dbins.user_pass.encode("utf-8"))
Traceback (most recent call last):
  File "", line 1, in 
  File "D:\Development\sss\pyenv\lib\base64.py", line 553, in decodebytes
return binascii.a2b_base64(s)
*binascii.Error: Incorrect padding*

Thanks,
Uday.

-- 
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 post to this group, send email to django-users@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/ffe9a87d-9c06-48af-a943-593d2879a00e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Problem How to increase the username filed size from 30 to 75

2013-05-25 Thread uday kumar
I tried that but it still producing the error
Error: Ensure this value has at most 30 characters (it has 50).

*Thanks and Regards*
Uday Kumar G
*MSIT-IIIT
*
*e-mail: uday12ku...@gmail.com*
*mobile: +91-8886785550*


On Sat, May 25, 2013 at 5:37 PM, Emrah Atalay wrote:

> Hello,
>
> Before sync. import user, and set size
>
> from django.contrib.auth.models import User
> User._meta.get_field_by_name('username')[0].max_length = 75
> in any model which is in installed_apps list..
>
>
> 2013/5/25 uday kumar g 
>
>> Hi
>>
>> I am using the User model.
>> I want the username to be more than 30 characters.
>>
>> Is there anyway to change the size from 30 to 75.
>>
>>
>> --
>> 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 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.
>>
>>
>>
>
>  --
> 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 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.
>
>
>

-- 
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 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.




Problem How to increase the username filed size from 30 to 75

2013-05-25 Thread uday kumar g
Hi

I am using the User model. 
I want the username to be more than 30 characters. 

Is there anyway to change the size from 30 to 75.
 

-- 
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 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.




should i use django

2010-07-16 Thread uday
Hi,

   I need to design a simple web app that would mostly display data
from an xml file in different forms(like graphs,charts etc) after some
processing.I have to do this in two weeks
   I don't have any web development background.I am more of a systems
programmer and thus use C/C++ a lot.But since i have used and liked
python i turned to django.Have i made the right choice ? Is django too
much complexity for what i want to do ? Are there lighter options that
i can turn to ?

Udayan

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.