Sheshadri
on line 2 and 18
Sari
thanks, but I changed it, still error with the same statement
Anonymous
Plz help me How to logout when session expires
Anonymous
hey unresolved import 'ecommerce.models'Python(unresolved-import)
Anonymous
how to solve this error?
Anish
Full time work from home Opening for python & django developer for US startup. 3 years of experience required.
Anish
Opportunity is for people based out of India
X
./manage.py collectstatic is giving me permission denied error
X
on the cpanel terminal while trying to deploy Django?
X
i think this issue is unresolved
Muflone
./manage.py collectstatic is giving me permission denied error
You have to write your static files where you have the write permission. This is not a Django issue
Aneesh
Django + mongo db is done with mongoengine ?
Igor
Hi! How can I register my_file.py in INSTALLED_APPS? my_file.py is next to manage.py
Igor
My problem is that I import into my_file.py from back.models import * and I get an error: Setting INSTALLED_APPS is required, but the settings are not configured. You must either define the DJANGO_SETTINGS_MODULE environment variable or call settings.configure () before accessing the settings. Therefore, I think I need to register my_file.py in INSTALLED_APPS. But how do I do this?
Igor
hmm, okey. How can I make it faster?
Doragonsureiyā
i cant send photo(((
Read the rules before any activity: @PythonRules
Igor
how can i send format / skeleton of my project?
Doragonsureiyā
how can i send format / skeleton of my project?
To share code or error tracebacks please use an online pasting service, here is a list of suggested sites: - https://del.dog - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev
Igor
aahah, no. How can i sent a photo or a do a text skeleton of my projects? Just like this: - my_project -file1 -file2
Doragonsureiyā
aahah, no. How can i sent a photo or a do a text skeleton of my projects? Just like this: - my_project -file1 -file2
To share code or error tracebacks please use an online pasting service, here is a list of suggested sites: - https://del.dog - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev
George
did u read our rules ?
He didnt have time
Igor
He didnt have time
no, i read the rules
Mirco
no, i read the rules
it's time to do it
Igor
and i have time
Igor
When I asked you a question, the participant answered that he wants to understand how my project works. I just want to understand how to do this. -my project: -file1 -file2 etc... I respect the time of others and read the rules.
SG
How to fetch current user information ?
SG
So i can add with query to save the data
Vinayak
How can I upload a document to rest api and save it's response to Database in django
Sheshadri
How can I upload a document to rest api and save it's response to Database in django
create a file field, use "multipart/form-data" as headers when you are doing POST Request
Pavel
Hi everyone. How to use date.today() in queryset filter in urls.py with Django Generic ListView. How to get today date (not server start date) UPD: ListView.as_view(queryset=....filter(created_date=date.today())) there is the same date everytime
it's
Hello guys, I just complete django basic course . I complete some mini projects , now i want a new project like any website So please give me any project i would like to complete for FREE
Vinayak
create a file field, use "multipart/form-data" as headers when you are doing POST Request
I have created but I have a issue with auth token and csrf token each time I try to make a post request it say permission denied And how can I save the response to Database
Sheshadri
I need to use it in urls, not in models
what's the problem in using the above code in urls ?
Sheshadri
I have created but I have a issue with auth token and csrf token each time I try to make a post request it say permission denied And how can I save the response to Database
you need to Authenticate first .. you need to send "Authorization: Token string" in your headers as well. Go through token authentication in drf
Pavel
what's the problem in using the above code in urls ?
coz it passes the same date (start server date) 1. "created_at" = 2020-04-07 17:32:50.854360 2. "created_at" = 2020-04-07 17:32:50.854360 timeout between requests is about 30 seconds
Pavel
I need to pass now() every time when view is called
Vinayak
Sheshadri is there any Difference between x-auth-token and Authorization
Pavel
but python saves the same date coz urls.py executes 1 time (when server starts)
Sheshadri
but python saves the same date coz urls.py executes 1 time (when server starts)
then define your queryset in your views rather than in urls ?
Sheshadri
Sheshadri is there any Difference between x-auth-token and Authorization
dont think x-auth-token is the standard way(don't know that much about it) whereas Authorization is the standard way of authorizing via REST
Pavel
It's the same. (if it is class based view, cuz class executes 1 time). But if i do my filter in get_queryset() it works fine. But the question is how to use my specific 500-strings view with date.now() filter in another url. If i don't want to do another view
Sheshadri
its always better to use get_queryset when you have dynamic filters, why don't you point the other url also to the same view ?
Pavel
its always better to use get_queryset when you have dynamic filters, why don't you point the other url also to the same view ?
cuz it is the same view, the same behavior but less data. Just another url with the same behavior with less data
aravind
Hi guys I want build a django app Which support video chatting Can guys recomand me what are the libraries i can use
Sheshadri
cuz it is the same view, the same behavior but less data. Just another url with the same behavior with less data
then pass a parameter in the url like your-url/?data=300 and use it in your get_queryset like self.GET.get('data') and dynamically filter based on your url parameter
Vorke
Hello Everyone, is it a good approach to use Django forms and styling using widgets compared to using using HTML templates seperately?
Gil
Hello Everyone, is it a good approach to use Django forms and styling using widgets compared to using using HTML templates seperately?
It depends of your knowladge and your motivation. If you don't want to worry about forms, use crispyforms or default widgets... If you have time and motivations, handwrite your own , way not!
Gil
create imaginary apps, imaginary functions to a database, achieve to do testcases to all functions...
Anonymous
I need duo partner for rank push
aravind
Django Channels !!
Thanks for the reply, And can u please how can i use those djnago chanales
Toni
I want to add two model objects in a single ListView, how can I achieve this in simple way?
Toni
for example I want to show Album and Song Models in one ListView
cj
I want to add two model objects in a single ListView, how can I achieve this in simple way?
whether rewrite the get_queryset(...) function or do it manually in the get(...) function
Toni
whether rewrite the get_queryset(...) function or do it manually in the get(...) function
I used the get_queryset() and it worked, thank you once again :)
Nitish
please help me how to use tokens for authenticating an api request
Nitish
use DRF
i tried alot, also followed the drf doc but still in trouble
cj
i tried alot, also followed the drf doc but still in trouble
why? it's as simple as eating a cake 🤷🏻‍♂ read the docs again, it's not more than 3 lines of code
Nitish
why? it's as simple as eating a cake 🤷🏻‍♂ read the docs again, it's not more than 3 lines of code
just please tell me isAuthentication permission class is to authenticate token or just sessions?
Shubham
Hi This is related to django rest framework I want to send a blank form(serializer) to fill How do I do it?
cj
Hi This is related to django rest framework I want to send a blank form(serializer) to fill How do I do it?
with DRF you don't send anything to be filled on, you just expect to receive data 🤷🏻‍♂
Shubham
Ok
Shubham
Wait one more question
cj
Wait one more question
no, I have to go, bye
Shubham
You can answer later on If anyone knows plz do answer it