jūdê
Doragonsureiyā
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
Daniel
Владислав
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)
Daniel
HamidReza Fekri
عبدالقادر
HamidReza Fekri
عبدالقادر
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..
Alex
HamidReza Fekri
how to say only logged in users get model form in class view I don't want use function
HamidReza Fekri
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
Sherlock
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
Rajeev
Sherlock
Maxim
Sherlock
Manjunaath
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)
Maxim
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
Doragonsureiyā
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?
Elijah
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
Axror
change your code as above
Sreekanth
Charly
Sreekanth
No
So that why GitHub used
Rohan
Sreekanth
We can upload django project in GitHub so that anyone can access that link ?
Charly
Charly
Github is not for deploying apps
Charly
you store the code there, but can't run it
Sreekanth
Charly
Rohan
Rohan
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.
Anonymous
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
Hansric
Jitendra Kumar
How to use otp valid in 3 mins after it invalid ?
Jitendra Kumar
Please anyone
Elijah
Elijah
$ 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.