#!/bin/sh Inَactive
what is your settings for static files
Teutranian
defaults
Teutranian
/static/
#!/bin/sh Inَactive
/static/
can u show the app directory structure?
Teutranian
https://ibb.co/MyH3XZh
Teutranian
<img class="card-img-top" src='../../static/base/household-icon-14.png' alt="Card image cap">
Teutranian
worked
Teutranian
but is quite bad way
Uday
Can gunicorn redirect http to https?
Mirco
Can gunicorn redirect http to https?
Set it on nginx/apache and set Django settings
Uday
Set it on nginx/apache and set Django settings
I have too many redirects error on my site. The nginx conf file looks fine and also the error occured when I reload gunicorn job
Uday
I can share the conf file if you can help me with that
Arezoo
How can i serve web app flutter in django server?
Arezoo
Why?
cj
Why?
because those are two totally different technologies, what you can do is use APIs to communicate each other
Arezoo
Web app flutter works in browser.i want to use instead of html files django
Heigler Rocha
Web app flutter works in browser.i want to use instead of html files django
It doesn't work like that. Dart will generate html/js/css files with its own engine and Django renders html in server side also using its own engine, you can't mix both this way. Like Cj said, you should expose an API and in flutter's side consume it through Dio package for instance.
Uday
https://pastebin.com/5CJzzgVh This is my conf file content, I have too many redirects error and my http is also not redirected to https.
ken
hi. anyone using bootstrap with django? need help for bootstrap... best guide suggestions?
Georgev:
ken
Check the documentation of Bootstrap, it's very clear
thank you, I am actually looking for articles (use cases)
Parshant Singh
Can anyone suggest me best source, video tutorial or any channel to learn django?
Anonymous
when use @login_required(login_url='login') it keeps on redirecting me to login page even if my username and password is correct. i can login and it redirects properly when i comment out @login_required(login_url='login') Is there any other way that i restrict user from accessing a webpage if not logged in
Anonymous
This is my code in views.py
prasobh S
Any one please help me to correct the code
Himalaya
Okay okay, related_name given. Try. request.user.Publisher_User
@furkansid thank you so much for the help, I tried this and now code is working absolutely fine.
prasobh S
Myfile = request.FILES.get[file] fs= Filesystemstorage() filename = fs. save(Myfile.name, Myfile) Upload_url = fs.url(filename) This is a single file upload code anybody please tell me how to upload multiple files. Using forloop
prasobh S
Someone said I need to create a null array and append to the array.
Himalaya
can you share the model that you are using to save document or file?
Georgev:
Use a loginview class
prasobh S
Model is empty. Iam save directly to the media directory
Himalaya
Someone said I need to create a null array and append to the array.
https://docs.google.com/document/d/1f5C_04ZQW84KUsqN-Hp9rPOdZBetj8jVYm073gj9r_w/edit?usp=sharing
Himalaya
try this something like this, in past i used this method and it worked fine for me
Georgev:
Georgev:
{% if user.is_authenticated =! True %} < Show Your login> {%endif%}
Georgev:
False*
No
Hi! If up Django project in venv and stay Debug=True, google recaptcha v2 will be work. But if up Django project with use docker-compose, gunicorn, ngnix - google recaptcha returned “timeout-or-duplicate” What’s wrong with it?
Shivam
hi guys i am new here
Shivam
help me please
Shivam
how to get all the fields name from table
Shivam
help
Johnwick
how to get all the fields name from table
You Can open models.py and check the field names for yourself 🙄🙄
Engr. Humble
How can I create a username and password for my Project
Parshant Singh
Can anyone suggest me best source, video tutorial or any channel to learn django?
Doragonsureiyā
Can anyone suggest me best source, video tutorial or any channel to learn django?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Frederic
How can I create a username and password for my Project
Look at the manage.py createsuperuser command
Balakrishnan
Im new for django...
Mirco
Balakrishnan
nice
Is it easy ...
Balakrishnan
up 2 u
Ok...
Balakrishnan
Ty for this info...
Doragonsureiyā
Ty for this info...
You're welcome! 😊
Balakrishnan
!yw
i said Thank you..
Mirco
i said Thank you..
and I told u your'welcome
Balakrishnan
Mirco
Oh okok...
👍🏻
Balakrishnan
👍...
Shivam
@iqbal bro i want them in a variable to send
Teutranian
https://dpaste.org/8wHD I used this data and manage.py loaddata but when I try to log in through ffirst user it shows Please enter a correct PAN ID and password. Note that both fields may be case-sensitive.
Sergey
I try to save gif with sorl-thumbnail but in dir cache saved only one frame. How to fix that?
Ghorz
My Ajax POST produce empty query set, below is the pastebin https://pastebin.com/iCsmhYv4
Ghorz
I do not want to use jquery form.serialize because, there are child element that has to be processed before posting to the server.
Devu
Project table : User ( foreign key), name, description, date Task table : User ( foreign key), Project (foreign key), name, description, date I want to get list of task in ProjectSerializer... Plz help
Devu
Just add TaskSerializer inside ProjectSerializer
There r 2 seperate classes ProjectSerializer TaskSerializer
Anonymous
How can i install django
mohammad
How can i install django
pip install django
mohammad
Step 1 pip install python