jūdê
Would you guys like a Django admin theme made with tailwind ?
Please drop🙏 and how to integrate as well (Readme)
Anonymous
Please drop🙏 and how to integrate as well (Readme)
I'm just thinking of ideas for the front-end of a project I'm working on
Anonymous
😹😹😹 why not ?
Mojo
I made a simple api (a todo list) using django. I can access the api when the request is from the same machine (ie: 127.0.0.1:8000/api). Out of curiosity, I'm wondering how I can access the api from a different device connected in the same LAN
Владислав
Guys, can anyone share the Keywords conclusion in detail from the description in the meta?
HamidReza Fekri
hey I put permission_required = 'auth.see_profile' for view of profile but when i log in and render to profile I got 403 error for normal user ????
Mojo
Deploy on heroku and find out
Found the solution. Had to run the server with: python manage.py runserver 0.0.0.0:8000 And access the api using the private ip (eg: 192.168.35.2:8000/api)
عبدالقادر
HamidReza Fekri
sure
tnx🙏🙏
عبدالقادر
tnx🙏🙏
one second ))
HRITIK
widget=forms.PasswordInput(attrs={'autocomplete':'current-password','class':'form-control'}), label=_("Password"),strip=False,widget=forms.PasswordInput(attrs= {'autocomplete':'current-password',
HRITIK
what diffence does strip=False and 'autocomplete':'current-password', will create
HamidReza Fekri
do you know any django tutorial for e-commerce website??
HRITIK
yeah I am also currently working in the same project with the help of video uploaded by geeky shows
HRITIK
plz someone ans my auestion
Rajeev
Django rest framework through api window inserts new record.. while using through mobile application gives error I.e. field is required... Please suggest something..
HamidReza Fekri
how to say only logged in users get model form in class view I don't want use function
Alex
how to say only logged in users get model form in class view I don't want use function
https://docs.djangoproject.com/en/3.2/topics/auth/default/#the-login-required-decorator or check it in your template, if you have one https://docs.djangoproject.com/en/3.2/topics/auth/default/#users
Shery
widget=forms.PasswordInput(attrs={'autocomplete':'current-password','class':'form-control'}), label=_("Password"),strip=False,widget=forms.PasswordInput(attrs= {'autocomplete':'current-password',
1. attrs is used to render the html tag: https://docs.djangoproject.com/en/3.2/ref/forms/widgets/#django.forms.Widget.attrs 2. strip depends of the class of field that you are using. you are not sharing which one is used, but take the CharField.strip as ex what could be doing: https://docs.djangoproject.com/en/3.2/ref/forms/fields/#django.forms.CharField.strip
Sherlock
when does some functions use parenthesis and when they don't, does django have any special pattern for this like timezone.now() uses and post.publish don't ? thanks in advance
Maxim
when does some functions use parenthesis and when they don't, does django have any special pattern for this like timezone.now() uses and post.publish don't ? thanks in advance
in model you need to initialize default parameter by timezone.now without parentheses next time don't make us guess what did you mean please
Doragonsureiyā
Rule 5️⃣: To share code or error tracebacks, use an online pasting service like: - https://del.dog - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev If you posted a wall of text, go back and delete it.
Rajeev
Manjunaath
That's how it's clean
Sherlock
That's a package ig
no, bhai i mean the text is in different style and code is in different style how to do that ? when to make text bolder in telegram i just press ctrl + B it becomes bold like this, what to use to make it look like python manage.py runserver 0.0.0.0:8000 (i just copy-pasted from above don't know how to actually write this way)
Elijah
Please, how can i or read through a CSV file from form and extract data to populate table, and fetch table data to json
Rajeev
error text?
Error for {circle: the field is required, panchayat: the field is required, mauza: the field is required}
Maxim
Error for {circle: the field is required, panchayat: the field is required, mauza: the field is required}
there are no fields in the request that are used in the code you either need to pass the fields in the request or set the default values in the get() method in lines 20-22
Sherlock
right click
got it, thank u
Elijah
Please, how can i read through a CSV file from form and extract data to populate table, and fetch table data to json
Bwaks
Yeah..
Hey does having two ListView class in the same view.py file a problem ........I have 1.class ArtistView(ListView): 2.class CategoryListView(ListView): .................. now am getting this error TemplateDoesNotExist category/category.html, artists/artist_list.html.............I dont know where artist_list.html is coming from.If i remain my previos artist.html to artist_list.html am not able to go to template for CatergoryListView help
Süleyman
I want to write djanjo ninja history api can you help me
Süleyman
I want to write date
Aravind
Any python backend developers here?
Anonymous
My app level static files are loading but not project level Whenever I try to access static files via localhost/static/css/... I can only access my app level static files and not project level. Here is my settings.py STATICFILES_DIRS = [ os.path.join(BASE_DIR, '/static'), os.path.join(BASE_DIR, '/myapp/static'), ] Kindly help
Axror
change your code as above
Sreekanth
Deploy on heroku and find out
We can deploy GitHub also?
Sreekanth
No
So that why GitHub used
Sreekanth
We can upload django project in GitHub so that anyone can access that link ?
Charly
Github is not for deploying apps
Charly
you store the code there, but can't run it
Sreekanth
you store the code there, but can't run it
Ok execution is provided in GitHub?
Praveen
Ok execution is provided in GitHub?
nope just you can store your project
Sreekanth
nope just you can store your project
But without execution why GitHub link is mentioned in resume..
Rohan
But without execution why GitHub link is mentioned in resume..
It shows organic development of your project
Rohan
It shows your able to manage your project properly.
Rohan
Read about github, it’s more than code storage.
Sreekanth
Understand
Sarp
I am working on a project and in that i have to set cookies but when i use set cookies i have to use httpresponse which redirect to a page with msg when cookies are set. But i want to set cookies and redirect to not msg but a html page. So is there any way to set cokkies and redirect to any template.
Rajeev
the error text says exactly what is wrong
I am providing all the things but unable to figure out the exact issue.. here is my complete serializer, view and front end flutter code with error.. https://dpaste.org/mnj5
Jitendra Kumar
How to use otp valid in 3 mins after it invalid ?
Jitendra Kumar
Please anyone
Elijah
How to use otp valid in 3 mins after it invalid ?
If you are using Django otp pass interval=180 as a positional argument
Elijah
By default it will look for the template at the template dir/ namespace/article_list.html
You will have to point it to where you placed it in the template instance on the view
$ A C H ! N
Create an application that has two apps. 1. User with user and Post model User : first_name, last_name, email, password, username Post : user, text, created_at, updated_at Foreign key relationship exists between User and Post on Model level not on Database level. 2. Products app with Product model. Product : name, weight, price, created_at, updated_at Both of the apps should use two different databases. Create a form that an authenticated user can use to create a post. Note: Register all models on admin dashboard.