Sumit
yeah now it is used in web
Enigma
U can use javascript for that....
can you tell me how? i know nothing of js
Sumit
but how can i deal with it when i am developing it for mobile application
😇ANGELO™️🎧
Sumit
No, django to develop backend , for mobile I am using flutter
âshîsh
but how can i deal with it when i am developing it for mobile application
Use Django as backend sever and generate API. Then fetch these API to your app
😇ANGELO™️🎧
I am using this only.
I thought firebase would've been the best option personally
Sumit
but when i am doing this without csrf extempt then i am getting error
âshîsh
I am using this only.
DRF will be helpful to generate API
Sumit
I am uing graphql for api
âshîsh
Sumit
so how can i get csrf token when i am using it for mobile client
😇ANGELO™️🎧
Csrf is required while submitting any data.
Yes it is. As I said for both "Post" and "get" command
Sumit
That I know.
Sumit
But what happens in browser is that when it requests web page from server it comes with that but in mobile it is not like that , probabbly
âshîsh
so how can i get csrf token when i am using it for mobile client
There's a famous website which answers your all remaining queries. I think u already knew about that website
Ason
can you help me send a tutorial link to create a portfolio on django
Rushabh
can you tell me how? i know nothing of js
Go and search javascript onload function...
Sumit
There's a famous website which answers your all remaining queries. I think u already knew about that website
I don't know , where i can get my answer without waiting at least a day?
Sumit
it's not a website
Sumit
isn't that?
âshîsh
Google is a website. As u search inside your browser www. Google . Com
Sumit
ok..
Tukhtamurod
But what happens in browser is that when it requests web page from server it comes with that but in mobile it is not like that , probabbly
you can get the csrf_token using django.middleware.csrf.get_token(), retrieve it and save it to localStorage or sessionStorage or somewhere in your client app
Enigma
can anyone help me with Alias?
Anonymous
Anonymous
You feel you are better than others.. don't you
âshîsh
Vxvek
Is there any docs available for import export in templates
Vxvek
How to implement import export in templates not in django admin
Enigma
can anyone pleeease tell me how to set up an alias??
Doragonsureiyā
can anyone pleeease tell me how to set up an alias??
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
Anonymous
Isn't called markleft?
Ashutosh
can anyone pleeease tell me how to set up an alias??
Are you talking about database aliases(access level) , you can set via overriding a method inside django models.
Anonymous
hello! i give a api for login to android developer i have a problem with token always the same for every user how to solve ?
Anonymous
i cant filter token
Anonymous
how to solve this
Sai
How to send the total row count from DRF to frontend real-time
Jal ⬡
hi guys
Jal ⬡
in my code i get error , please i need help
Jal ⬡
https://es.stackoverflow.com/questions/440043/django-con-python-3-x-carro-object-has-no-attribute-agregar
Jal ⬡
this is the link of my error , i don't understand where is the error
djigit0s
tell me how to get the absolute url to a file in the model? Did so @property def get_absolute_file_url(self): request = HttpRequest() return request.build_absolute_uri(self.file.url) throws error KeyError: 'SERVER_NAME'
lychnobite
Hi guys .I created model .How to delete model in database?
djigit0s
u cannot use the request inside models
how to do it differently absolute ulr?
Mirco
how to do it differently absolute ulr?
https://levelup.gitconnected.com/django-quick-tips-get-absolute-url-1c22321f806b
Mirco
and remember this sentence: if anything can be done in the back end, DO IT and keep templates to their true and primary purpose
Zey
Can we create an pdf automatically with some details coming from database and send that to user
Mr. Marlega
Can we create a digital certificate in pdf format
Enigma
!ot
what?
Enigma
Are you talking about database aliases(access level) , you can set via overriding a method inside django models.
no i want to put a text file into the root of a website for confirmtaion of my domain
Mirco
what?
https://t.me/django/151084
Enigma
infect i want to do this line "If you are running apache, set up an alias in apache's httpd.conf:"
Mirco
.
if u did not explain what u mean with alias, we cannot know which goal u wanna achieve Now that u have mentioned Apache, is clearer
Enigma
https://stackoverflow.com/questions/5927843/django-how-to-put-a-static-file-under-root-directory
Enigma
this question is exactly what i want
Mirco
actually i don't know what alias is |:
alias has often the same meaning if u know for example what an alias is in Linux shell language anyway for example the alias needed for Django is for /static and /media in Apache conf
Agent Q
Anyone know about this
https://docs.djangoproject.com/en/3.1/howto/outputting-pdf/
Anonymous
Can anyone please tell me a link how to generate multiple barcodes in pdf using python
Anonymous
From django I mean
Agent Q
Can anyone please tell me a link how to generate multiple barcodes in pdf using python
Use python-barcode to generate the barcodes then use reportlabs for the pdf https://docs.djangoproject.com/en/3.1/howto/outputting-pdf/