#!/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?
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?
cj
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
Mirco
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:
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
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
Georgev:
prasobh S
Model is empty. Iam save directly to the media directory
Himalaya
try this something like this, in past i used this method and it worked fine for me
Anonymous
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
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?
Mirco
Frederic
Balakrishnan
Im new for django...
Mirco
Mirco
Balakrishnan
Engr. Humble
Mirco
Balakrishnan
Balakrishnan
Ty for this info...
Mirco
Balakrishnan
Balakrishnan
Mirco
Balakrishnan
👍...
Shivam
@iqbal bro i want them in a variable to send
Shivam
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
Mirco
Anonymous
How can i install django
mohammad
mohammad
mohammad
Step 1
pip install python
mohammad