tk
Or project on restaurant website
Xyz
Artyom
in values you can get foreign object's field like 'address__city_name'
Tkanks for suggest, I tried this: def report(request):
reportt = Renters.objects.select_related('renter')
reportt.values('name','snameplp','fnameplp','patronymicplp','identity_doc',
'serial_doc', 'number_doc','ogrn','inn','subject','city',
'street','house','housing')
return djqscsv.render_to_csv_response(reportt)
Artyom
and result is .csv with only Renters objects. +I had to define relation_name in the model.
.
Joshua Rebelo
Any secure coding practices or guidelines specific for Django
.
Joshua Rebelo
Thanks
Joshua Rebelo
But I also wanted to know is anyone would want to add to it based on experience
Artyom
all is ok. I did it. @manstein1887 thanks for help.
.
Anonymous
I want to learn jQuery
But only the parts what are needed for Django
Is there any book or website?
To be more specific the book uses Django for their backend codes
cj
Anonymous
I didn't understand
My question is not clear?
Sorry
cj
I didn't understand
My question is not clear?
Sorry
jQuery is a library to be used in the front-end, it doesn't matter if you're using Django or any other framework in the back-end
Django is a framework to be used in the back-end, it doesn't matter whatever libraries you're gonna use in the front-end
Can you use both to make a web app? yes you can, just work on each one independently 🙂
Anonymous
I know that
cj
there aren't "parts needed for Django" in jQuery 🤷🏻♂️
Anonymous
I know
Anonymous
Let me try to say my question in other words
cj
there aren't specific books/websites for jQuery and Django (as one thing)
Anonymous
A book that it's subject is jQuery
In that book or tutorial there are subjects that need backend coding to teach you jQuery
In those parts this book uses Django as backend framework
Because I know Django and I'm learning django
Akash
Anonymous
Ashik
Any one have new ideas for an attendance record system for staffs in an organization
Namitha
How do I refer to an individual element from a ManytoMany relationship in django
Namitha
?
Guillermo
Namitha
lemme try that.Thankya
Python2411
Hi guys
Python2411
I got an issue on the Deployment of Saleor
Python2411
Saleor is a package in Django used for e-Commerce
Python2411
My Issue is about the Secret Key, I have made : python manage.py migrate and my Terminal output me that My secret key is empty but My secret key is not empty in Settings.py
Python2411
I have take ss of my seetings.py (where is the secretkey value), the issue and my level at the deployment of Saleor
Python2411
Those ss are in this folder : http://www.mediafire.com/folder/hcc5z0q28zsxa/Saleor's_issue
cj
Python2411
I'm new and my english isn't very very good... I talk french currently. And English, I'm not bad
Python2411
cj
How plz ?
1. Set an environment variable the proper way.
2. Get back the os.environ.get('SECRET_KEY') line
3. profit and be happy
Python2411
prope way ?
cj
yes
Anonymous
Jhon
Hi group, I have a question, I make a web application with DJango, I use phthonanywhere like host, and I try to publish in GoDaddy domain.
In the help say, configure the DNS, I configure but I can’t see my web aplication
Do you know how deploy the app in godaddy and python anywhere ?
Thanks
Daniel
hi people, I from Colombia
Daniel
I deployed my project in digitalOcean ... and I set up the serverblock so that it serves me the static files and shows them well, but I have a route for the API ... so: www.ejemplo.com.co/api/clientes/ 1 but I get page 404 .. any ideas about it to be able to solve this? ... thanks for the time
Alexander
Alexander
(And make GraphQL or/and RESTful API on Django backend side)
Anonymous
Anonymous
If I want to use Ajax (by Ajax I mean processing requests and sending responses without refreshing) I'd definitely will need JavaScript and a js framework?
Right?
cj
Alexander
You need make fetch request from js-based client side to Django-based API on server side and process json data
Alexander
fetch or axios
cj
Daniel
location = /favicon.ico { access_log off; log_not_found off; }
location /static/ {
alias /home/encargo/admin-web/admin-webstatic/;
}
location / {
include proxy_params;
proxy_pass http://unix:/run/gunicorn.sock;
}
This is the blockserver
cj
what about urls.py files in the project?
Eddie
Hey guys
Eddie
Am about creating a django project that's works like an mlm anyone created an mlm with django?
Eddie
Also anyone used django and vuejs before am now starting so will be needing guidancw
Daniel
Mirco
Eddie
Mirco
syedj
In django how can i use scheduler to call an api with arguments periodically
Code9
GNU/Matt
syedj
GNU/Matt
Well, you can actually set the web server to run a specific script over a determined period of time, btw i don't know whether it works for django
GNU/Matt
I have tried with PHP scripts only tough
GNU/Matt
GNU/Matt
First of all you need to set up a real web server like nginx or Apache
GNU/Matt
Or at least use nginx as a rproxy
GNU/Matt
Then you have a full working HTTP 1.1 Server with full functionalities
syedj
Let me explain what I have written