progress bar and upload big file and protect files

2020-03-04 Thread Alaydyn Gholechragh
Hi
I search a lot in Google to find best methods for uploads big file with 
progressbar to my site and i can't find any solution
And other things for protecting my file (zip or rar) from Anonymous user.. 
Because I want to create a web site for selling some files

Please help me and give me best example and methods 

-- 
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/15d70b91-accf-4a54-bd24-f6715f072513%40googlegroups.com.


Re: progress bar and upload big file and protect files

2020-03-06 Thread Alaydyn Gholechragh
tqdm not work for web it is for consol or windwos or mac ...

On Wednesday, March 4, 2020 at 8:31:24 PM UTC+3:30, jlgimeno71 wrote:
>
>
>
> On Wed, Mar 4, 2020 at 8:40 AM Alaydyn Gholechragh  > wrote:
>
>> Hi
>> I search a lot in Google to find best methods for uploads big file with 
>> progressbar to my site and i can't find any solution
>> And other things for protecting my file (zip or rar) from Anonymous 
>> user.. Because I want to create a web site for selling some files
>>
>> Please help me and give me best example and methods 
>>
>> -- 
>> 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/15d70b91-accf-4a54-bd24-f6715f072513%40googlegroups.com
>> .
>>
>
> There's a package you can check out called tqdm.  It's on PyPI here:  
> https://pypi.org/project/tqdm/. <https://pypi.org/project/tqdm/>
>
> There's good docs there.  Integrating it I leave as an exercise to you.
>
> -Jorge
>

-- 
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/ed5373ca-1592-4bb4-9c6e-32fe59888bd7%40googlegroups.com.


Django-React with webpack or create-react-app

2020-03-07 Thread Alaydyn Gholechragh
hi 
I want to use Django and react together but there is one problem , I don't 
know it is good I make react application with  "webpack and bundler "  or  
"creat-react-app "??

which is better ???

-- 
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/e813b99f-1ec4-456a-8110-09be009ff4d3%40googlegroups.com.


Re: Django-React with webpack or create-react-app

2020-03-07 Thread Alaydyn Gholechragh
thanks for answer  but I think to build react from  'create-app-react' 
create a folder with name  'build' and I can't change it and config is hard 
for work them together

On Saturday, March 7, 2020 at 1:07:44 PM UTC+3:30, Ronit Mishra wrote:
>
> Start with `creat-react-app`.. webpack and bundler are task runners that 
> bundle your code for production. `creat-react-app` has a bundler program 
> inbuilt. Once you're comfortable with React and you're easily able to 
> communicate between Django and React components, then you might wanna look 
> into improvising your production build for your react code. You should 
> explore external bundlers for your React application after that. 
>
> On Sat, Mar 7, 2020 at 2:52 PM Alaydyn Gholechragh  > wrote:
>
>> hi 
>> I want to use Django and react together but there is one problem , I 
>> don't know it is good I make react application with  "webpack and bundler 
>> "  or  "creat-react-app "??
>>
>> which is better ???
>>
>> -- 
>> 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/e813b99f-1ec4-456a-8110-09be009ff4d3%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/e813b99f-1ec4-456a-8110-09be009ff4d3%40googlegroups.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/993da381-f9ce-4e70-a1f8-209be6585329%40googlegroups.com.


ListAPIView in Django Rest Framework not return correct translation

2020-03-07 Thread Alaydyn Gholechragh
hi
this my code :
class BookListAPIView(ListAPIView):
   queryset = Book.objects.all()
   serializer_class = Bookserializer

and django.po and compiled is :
msgid "title"
msgstr "عنوان"

#: .\app\models.py:13
msgid "price"
msgstr "قیمت"


and result is for http://127.0.0.1:8000/fa/ :

[
{
"id": 1,
"title": "تست",
"price": "90"
}]


in result "title" and "price" not changed they should be  "عنوان" and 
"قیمت": 

i create a view for create new  object :

class BookCreateAPIView(CreateAPIView):
queryset = Book.objects.all()
serializer_class = BookCreateserializer

and translation for "title" and "price" worked correctly they are  "عنوان" 
and "قیمت": but i dont know why not work for ListAPIView  

-- 
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/b6509200-0ca2-4eec-b917-0335c549f0e3%40googlegroups.com.


Django DFR How can i use Translation ?

2020-03-08 Thread Alaydyn Gholechragh
I Use this Document translation 
 and 
translate my fields but in DRF name of fields not translate just value of 
fields are translate ??

DFR Response in en :

{
  id:1
  name:'ali'

}

and in fa:
{
  id:1
  name:'علی'

}

but i want to fa:
{
  id:1
  'نام':'علی'

}

'name' should be 'نام'?
msgid "name"
msgstr "نام"





-- 
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/63a1f026-ec0d-4936-9616-b7cf6d88e5d1%40googlegroups.com.


Translations & Internationalization in Django Rest Framework

2020-03-10 Thread Alaydyn Gholechragh
hi

which component I can use for translation(Internationalization) in  Django 
Rest Framework ?? easy and with best documents and examples ??

-- 
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/1f16cbdb-469e-4928-b971-0f6303703a90%40googlegroups.com.


Re: Translations & Internationalization in Django Rest Framework

2020-03-10 Thread Alaydyn Gholechragh
Django translations is good for static value but for new value in database?

-- 
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/af12fc81-a78a-468c-a610-aba203185465%40googlegroups.com.


Best config and extension for visual studio code

2019-12-28 Thread Alaydyn Gholechragh
Hi 
I want to use visual studio code for programming python and Django and react 
for this purpose i want to know what is best config for vscode : 
extension,themes,settings,fonts,linter, etc

Thanks for your help

-- 
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/5490e89a-06aa-46c3-b495-7f54be63e6f5%40googlegroups.com.